StringTune-3D/Docs

API Reference

SVG Parser

Public SVGParser and SVGSynchronizer exports for SVG-to-geometry workflows and runtime syncing.

Type
API reference
Status
Advanced
Scope
API only
Activation
SVGParser.fromString(...)

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.

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