ArcText
Is a Library to curve any text font on the web.
Installation
$ npm i arc-text --save
In a browser:
Load ES module:
;
API
- ArcText
- new ArcText(elem, [splitter])
- .arc(value) ⇒
ArcText
- .arc() ⇒
number
- .direction(value) ⇒
ArcText
- .direction() ⇒
number
- .forceWidth(value) ⇒
ArcText
- .forceWidth() ⇒
boolean
- .forceHeight(value) ⇒
ArcText
- .forceHeight() ⇒
boolean
- .refresh() ⇒
ArcText
- .destroy() ⇒
ArcText
Examples
Arc-text radius
const arcText = document; // Set the radius to 150 pixels.arcText;
Arc-text get radius
const arcText = document; // get the radius to 150 pixels.arcText;
Arc-text direction
const arcText = document; // Set the direction to counter-clockwise.arcText; // Set the direction to clockwise.arcText; // get the direction.arcText;
Inspired
this library is inspired in CircleType
Author
Alex Marcos Gutierrez
License
MI