Draw multiple SVG on one stage and export to single SVG (React)

Viewed 270

I'm using the react-konva package and would like to draw multiple SVG files on one stage with multiple layers and export all of them to one single SVG file.

I could only find the "Path" component which didn't accept my SVG files. How can I fix that?

And is there any way to export the whole stage to one SVG file?

1 Answers

If you want to display SVG on canvas you should read SVG on Canvas with Konva Tutorial.

Konva doesn't support exporting into SVG format. If you want to export into SVG, you may need to write your own export tool. The tool should read the structure of your canvas scene and generate similar SVG output.

Related