Skip to content

Intermact API Reference / @intermact/core / snapshotToSVG

Function: snapshotToSVG()

snapshotToSVG(snapshot, options): string

Defined in: packages/core/src/serialize/svg.ts:50

Render a single 2D snapshot into a standalone SVG document string.

Parameters

snapshot

RenderSnapshot

options

SvgSnapshotOptions

Returns

string

Intermact v1.0 — 文档覆盖 Phase-1 / Phase-2 / Phase-3(全阶段)