EffEPi / fabric.curvedText

Allows you to create curved text - extension to fabric.js
43 stars 41 forks source link

node.js question #34

Open yury-ivaniutsenka opened 7 years ago

yury-ivaniutsenka commented 7 years ago

Hi. Does it work on node.js?

ungureanuliviu commented 7 years ago

Try to copy curved-text.js in your node project root. in app.js add

var curvedText = require('./curved-text.js');

Afterwards use it normally:

var curvedText = new fabric.CurvedText("Your Text", {
        left: 10,
        top: 20,
        radius: 100,
        effect: 'curved'     
    });
canvas.add(curvedText).renderAll();