1.0.0 • Published 6 years ago

vue-trianglify v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

vue-trianglify

A Vue component for generating awesome polygonal art. It uses the Trianglify library, which you can check out here.

Usage

First, install the package:

npm install vue-trianglify
# or
yarn add vue-trianglify

Currently, the package only supports usage as an imported component, so you don't want to use it in multiple places if you're bundling.

<template>
  <div>
    <trianglify/>
  </div>
</template>

<script>
import {Trianglify} from 'vue-trianglify'

export default {
  components: {
    Trianglify
  }
}
</script>

Note the destructured import. If you don't do this, Vue will tell you that the trianglify component is missing a template or render function.

Documentation

Props documentation to come.

Caveats

I don't know how to use the canvas output option with a Vue component, so I'm going to wait on implementing that. If you know how to add it, by all means, please do.

1.0.0

6 years ago

0.0.10

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago

0.0.0

6 years ago