svgdotjs / svgdotjs.github.io

Documentation and website for SVG.js

Home Page:http://svgjs.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

added `ax(), ay(), amove()` to change texts x and y values directly

Fuzzyma opened this issue · comments

This methods are available on Text to move the text directly by its x and y attributes (without magic going on). It is defined in the sugar module

let text = canvas.text('some Text')
text.amove(100, 100)