weasel API - v0.8.0
    Preparing search index...

    Interface SvgIngestOptions

    Options for the kit image/svg+xml content handler, threaded from SceneCanvas's ingestion={{ svg }} prop.

    interface SvgIngestOptions {
        unpack?: SvgUnpacker;
    }
    Index

    Properties

    Properties

    unpack?: SvgUnpacker

    Parse dropped/pasted/picked SVG files into native scene nodes (path / text leaves under containers mirroring the source <g> structure) instead of the default single embedded-image node.

    Pass unpackSvgFiles from @weasel-js/svg:

    import { unpackSvgFiles } from '@weasel-js/svg';
    <SceneCanvas ingestion={{ svg: { unpack: unpackSvgFiles } }} />

    It is injected rather than flagged on with true because the SVG parser lives in @weasel-js/svg, which depends on this package — core importing it back would make the two mutually dependent and unpublishable separately. Passing the function keeps the parser out of core's bundle for consumers who never unpack.