Closed PiotrFr closed 11 months ago
Were you able to figure out where things go wrong?
Release 3.0.16
Release 3.1.0
Release 3.0.16
https://jsfiddle.net/Piotrf/wsfnjhmr/37
Release 3.1.2
https://jsfiddle.net/Piotrf/wsfnjhmr/41
The reason this is happning is, that x()
moves the bounding box of the element. The bbox x value of the tspan is 12 in your fiddle. Calling x(0)
will attempt to move the bounding box to 0 (which means the tspan -12). However, this ofc fails on a tspan.
To do what you want, use ax()
instead which does not do any magic and instead just moves the anchor:
Bug report
Fiddle
Release 3.0.16 give
<tspan x="0">
https://jsfiddle.net/Piotrf/xfamqp1e/3/ Release 3.1.0 give<tspan x="2.96875">
https://jsfiddle.net/Piotrf/arnbd0v5/1/Explanation