Import accepts canonical canvas document JSON.
Namespaced custom element fields stay serializable and preserve page ownership.
SVG export is vector output; PNG export rasterizes the current scene.
Image export requires resolved image sources before drawing.
createVectorPageSvg and createVectorProjectPageSvgs export one SVG per page.
importPaperProjectJson from @pixxl-tools/candraw/legacy converts paper.js project exports (the JSON the equals app saves) into a CanvasDocument without paper.js.
Layers and groups flatten with composed matrices; paths keep their handles; shapes, point text and data URL rasters are converted.
Gradients, dash arrays, blend modes, clip masks and symbols are approximated or dropped, and every case is listed in warnings.
CandrawEditor opens these files with File → Open (readDrawingFile accepts the paper.js JSON array); the status links to a Conversion notes dialog with the warnings, and onOpen receives them with the file name.