Closed grsjst closed 4 years ago
Thats not a bug. When you create a textpath with the textPath method you are creating a <text>
element with a <textPath>
element in it. The return value of the method is the textPath. When you move it out of the <text>
element, it disappears. You have to move the whole text.
You can get it by calling parent()
.
Bug report
Fiddle
This fiddle illustrates the problem (note it is SVG.js v3.0.13, but the same happens in v3.0.16: https://jsfiddle.net/xbfejms1/
Explanation
What is the behaviour you expect? the textPath should remain visible despite being part of a group
What is happening instead? adding the textPath to a group makes it disappear
What error message are you getting? none