svgdotjs / svg.js

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

I used requestAnimationFrame to achieve smooth rendering, but I have a problem. #1176

Closed mengbo-ji closed 3 years ago

mengbo-ji commented 3 years ago

For support questions, please use stackoverflow with the tag svg.js or head to our chat over at gitter, if you have a bug report or feature request, use those templates. image image image

I am looping through the addNode SVG.G above to render my node. For the first rendering, the performance is improved a lot, so there is no need to wait for loading... But I may have a question, how is the svg rendered to add nodes? eg: The first time is a1, the second time is a2 or a1 + a2? q: If it is the second rendering, it may have a great impact on performance

Fuzzyma commented 3 years ago

I am not sure I understand what you want. svg.js just manipulates the dom by calling appendChild or insertBefore

mengbo-ji commented 3 years ago

I am not sure I understand what you want. svg.js just manipulates the dom by calling appendChild or insertBefore

thank you this is what i want