Feature Request: Native SVG Export
It would be great to have native SVG export support in Konva, for example:
const svg = stage.toSVG();
Konva currently provides several canvas/raster export options, but no way to export a Stage or Node tree as actual vector graphics.
For applications such as product configurators, technical drawings, diagrams, and other graphics that are later used in printable PDFs, vector output is an important requirement. Raster exports can work, but they lose one of the main advantages needed for print workflows: resolution-independent output.
Ideally, common Konva nodes such as shapes, lines, paths, text, images, and groups could be converted to their corresponding SVG representation, including transforms and styling where possible.
For us, this is becoming an essential feature when choosing a 2D rendering library. For new projects that require high-quality PDF output, we currently have to consider alternatives such as Fabric.js specifically because native SVG export is available there.
Even if not every Canvas-specific feature could be represented perfectly, supporting the common subset of Konva nodes would already be extremely valuable.
Source: konvajs/konva