1.1.4 • Published 1 year ago

vue-arc-text v1.1.4

Weekly downloads
8
License
MIT
Repository
-
Last release
1 year ago

vue-arc-text

Wrapper Library of arc-text to curve any text font on the web directly with Vue.

NPM licence Build Status JavaScript Style Guide semantic-release

Install

npm install --save vue-arc-text

Examples

Here

Usage

<template>
  <vue-arc-text ref="arctext" :text=text :arc=+arc :direction=direction :className="classFont"></vue-arc-text>
</template>
<script>
  import VueArcText from './Vue-arc-text.vue'
  export default {
    components: { VueArcText },
    data () {
    return {
        text: '',
        direction: 1,
        arc: 150
      }
    },
  }
</script>

Params

ParameterTypeDefaultDescription
textstringText you want to curve
arcnumber150Angle you want to curve
directionnumber11 is clockwise mode and -1 is counter-clockwise mode
classstringto add class into Component

Function

You can access to update function to force the update of component.

for example:

  const arcText = this.$refs['arctext']; //get the element by reference. the reference name is referenced by refs in the tag element.
  arcText.update() // now you can force the update.

Author

Alex Marcos Gutierrez

License

MIT © alex marcos <alexsbd1@gmail.com>(https://github.com/alex marcos <alexsbd1@gmail.com>)

1.1.1

1 year ago

0.0.1

1 year ago

1.1.0

1 year ago

1.0.0

1 year ago

1.1.4

1 year ago

1.1.2

1 year ago

1.1.3

6 years ago