svgdotjs / svg.js

The lightweight library for manipulating and animating SVG
https://svgjs.dev
Other
11.01k stars 1.07k forks source link

Moving an hidden text element does not work as expected. #1208

Closed schlecky closed 11 months ago

schlecky commented 3 years ago

Bug report

Fiddle

See this fiddle

Explanation

Fuzzyma commented 3 years ago

Text movemt requires the bounding box function of the brrowser which is only available if the element is visible. We try to do our best to make the elemet visible when it is required in the lib but that doesnt always work out properly so you are better off just not hiding the text element you are using (or you use amove instead which does not require the bbox)