Closed Thomas1664 closed 4 years ago
Since text gets placed by its bounding box (upper left corner) rather by its base line, svg.js can only handle numbers as parameters and no percentage values. However, you can use ax(), ay(), amove()
to do that or just set the x and y attrs yourself with attr('x', '50%')
Bug report
When I try to apply relative positioning (e.g. 50%) to a text element, the position is gets reset to 0.
Fiddle
My fiddle
Explanation