From d822207a1008091775e1a15435e707719eebb2c4 Mon Sep 17 00:00:00 2001 From: Willy Date: Sun, 10 May 2026 00:31:27 -0500 Subject: [PATCH 1/2] feat(scene): add SVG file import as a new SceneSvg object type MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Introduces a first-class `svg` scene object that stores raw SVG markup and renders it via a data-URL `` tag (browser-sandboxed, no script execution). Adds an SVG file picker to the uploads panel that was previously a "Coming soon" stub. - `avnac-scene.ts`: new `SceneSvg` type, `'svg'` in `SceneObjectType` and `SceneObject` union, parse / clone / displayName cases - `avnac-document.ts`: re-exports `SceneSvg` - `avnac-scene-render.ts`: `svgMarkupToDataUrl` helper + `case 'svg'` in `drawSceneObject` — export pipeline works without further changes - `object-view.tsx`: live editor renders SVG objects via `` data URL - `editor-uploads-panel.tsx`: SVG file picker with DOMParser-based size detection, parseerror guard, and regex sanitizer (strips `