Smako
How do I manipulate heavy SVG files?
Other solutions I've tried were "@svgdotjs/svg.js" with "svgPanZoom" and "Konva".
With all of them, I've noticed some problems:
- Konva: Changing the properties of svg elements requires redrawing the entire canvas rendering. Firstly, performance-wise, I don't think it's great (you tell me). Secondly, each time the rendering is redrawn, the position of the rendering (moved with the mouse) is reset.
- @svgdotjs/svg.js: Modifying the properties of svg elements is not a problem. But when using svg.js, the svg element is manipulated directly and rendering jerks.
If you're more comfortable with one of these libraries than I am, I'm all ears. Or any other solution.
9 replies