You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

vue-arc-text

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-arc-text

vue around text components

1.1.4
latest
npmnpm
Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

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>)

Keywords

vue-arc-text

FAQs

Package last updated on 25 Apr 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.