API Reference
SVG Parser
Public SVGParser and SVGSynchronizer exports for SVG-to-geometry workflows and runtime syncing.
SVG Parser
The package exposes SVGParser so SVG workflows can be prepared outside the live runtime when needed.
Public API
SVGParser.fromElement(svgEl)SVGParser.fromString(svgString)
Both return parsed path data and viewBox information when parsing succeeds.
Related runtime piece
SVGSynchronizer is the exported sync strategy used by the runtime for live SVG objects.
When to use it directly
Use the parser directly when you need:
- pre-validation of SVG assets
- custom tooling around path extraction
- a shared preprocessing step before runtime registration