@svgsketch/core 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +500 -4
- package/dist/index.d.ts +500 -4
- package/dist/index.js +11 -11
- package/dist/index.mjs +11 -11
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -306,6 +306,38 @@ interface SerializedAnimationTimeline {
|
|
|
306
306
|
* import time.
|
|
307
307
|
*/
|
|
308
308
|
transformBaseValue?: string;
|
|
309
|
+
/**
|
|
310
|
+
* For `property === 'domAttribute'` tracks: the SVG attribute name
|
|
311
|
+
* to write on the target element each frame (`cx`, `cy`, `r`, `x`,
|
|
312
|
+
* `y`, `width`, `height`, `opacity`, `fill-opacity`, `fill`,
|
|
313
|
+
* `stroke`, `d`, etc.). Generic carrier for `<animate>` / `<set>`
|
|
314
|
+
* inside `<clipPath>` / `<mask>` defs that the editor doesn't
|
|
315
|
+
* decompose into per-attribute first-class tracks. Set jointly with
|
|
316
|
+
* `domAttributeValueType` so the manager knows how to interpolate
|
|
317
|
+
* the raw keyframe values.
|
|
318
|
+
* @see SVG Animations §3.5
|
|
319
|
+
*/
|
|
320
|
+
domAttribute?: string;
|
|
321
|
+
/**
|
|
322
|
+
* For `property === 'domAttribute'` tracks: how to interpolate the
|
|
323
|
+
* keyframe values. `'number'` → numeric tween; `'color'` → RGB
|
|
324
|
+
* channel tween via the existing color interp; `'string'` →
|
|
325
|
+
* discrete (no interpolation, holds each keyframe until the next).
|
|
326
|
+
* Determined at import time from the source `<animate>`'s
|
|
327
|
+
* `attributeName` (geometry → number, paint → color, others →
|
|
328
|
+
* string). `<set>` always produces `'string'` regardless of attr.
|
|
329
|
+
*/
|
|
330
|
+
domAttributeValueType?: 'number' | 'color' | 'string';
|
|
331
|
+
/**
|
|
332
|
+
* SMIL `calcMode` (SVG Animations §2.10) — controls interpolation
|
|
333
|
+
* between keyframes. Persisted because it changes how the SMIL
|
|
334
|
+
* exporter materializes the track: `'discrete'` round-trips a
|
|
335
|
+
* single-keyframe track as `<set>` and a multi-keyframe track as one
|
|
336
|
+
* `<set>` per keyframe, while the absent/`'linear'` form emits a
|
|
337
|
+
* single `<animate values="…">`. Without this field, set-semantics
|
|
338
|
+
* tracks degrade to interpolated `<animate>` after save/reload.
|
|
339
|
+
*/
|
|
340
|
+
calcMode?: 'linear' | 'discrete' | 'paced' | 'spline';
|
|
309
341
|
keyframes: {
|
|
310
342
|
time: number;
|
|
311
343
|
value: number | string;
|
|
@@ -437,6 +469,15 @@ interface LinearGradient {
|
|
|
437
469
|
* element's bbox-normalised [0, 1] space. See `GradientUnits`.
|
|
438
470
|
*/
|
|
439
471
|
gradientUnits?: GradientUnits;
|
|
472
|
+
/**
|
|
473
|
+
* SVG 2 §13.9 `color-interpolation` — color space for stop
|
|
474
|
+
* interpolation. Spec applies the property to gradient elements;
|
|
475
|
+
* `linearRGB` produces physically-linear blends, `sRGB` (the spec
|
|
476
|
+
* initial value) produces the perceptual blends most authors expect.
|
|
477
|
+
* Round-trip the attribute when authored so re-export does not
|
|
478
|
+
* silently shift mid-tone colors.
|
|
479
|
+
*/
|
|
480
|
+
colorInterpolation?: 'auto' | 'sRGB' | 'linearRGB';
|
|
440
481
|
/**
|
|
441
482
|
* Original `id` from the imported source SVG. Runtime `id` is always
|
|
442
483
|
* a fresh GUID (to keep editor uniqueness invariants), but `sourceId`
|
|
@@ -472,6 +513,8 @@ interface RadialGradient {
|
|
|
472
513
|
* `r`/`ry` are in document user space. See `GradientUnits`.
|
|
473
514
|
*/
|
|
474
515
|
gradientUnits?: GradientUnits;
|
|
516
|
+
/** See `LinearGradient.colorInterpolation`. */
|
|
517
|
+
colorInterpolation?: 'auto' | 'sRGB' | 'linearRGB';
|
|
475
518
|
/** See `LinearGradient.sourceId`. */
|
|
476
519
|
sourceId?: string;
|
|
477
520
|
}
|
|
@@ -1162,6 +1205,50 @@ interface ShapeMetadata {
|
|
|
1162
1205
|
role: AriaRole;
|
|
1163
1206
|
ariaLabel: string;
|
|
1164
1207
|
customData: Record<string, string>;
|
|
1208
|
+
/**
|
|
1209
|
+
* Generic ARIA attribute bag — every `aria-*` attribute *except*
|
|
1210
|
+
* `aria-label` (which has its own dedicated field for the metadata
|
|
1211
|
+
* panel's back-compat path). Keys are the full attribute name, e.g.
|
|
1212
|
+
* `'aria-labelledby'`, `'aria-describedby'`, `'aria-hidden'`.
|
|
1213
|
+
*
|
|
1214
|
+
* Spec: SVG 2 §5.12.3 — "All aria- attributes" are valid on every SVG
|
|
1215
|
+
* element. Stored verbatim so the full WAI-ARIA surface round-trips.
|
|
1216
|
+
*/
|
|
1217
|
+
aria?: Record<string, string>;
|
|
1218
|
+
/**
|
|
1219
|
+
* Per-element `lang` / `xml:lang` value (SVG 2 §5.11.3). Authored
|
|
1220
|
+
* `xml:lang` is preferred but `lang` is accepted as a fallback. Emit
|
|
1221
|
+
* as `xml:lang` per spec recommendation.
|
|
1222
|
+
*/
|
|
1223
|
+
lang?: string;
|
|
1224
|
+
/**
|
|
1225
|
+
* Per-element `tabindex` (SVG 2 §5.11.5). Stored as integer. Negative
|
|
1226
|
+
* values are valid (focusable but not in the default tab order).
|
|
1227
|
+
*/
|
|
1228
|
+
tabindex?: number;
|
|
1229
|
+
/** Per-element `autofocus` (SVG 2 §5.11.6). Boolean attribute. */
|
|
1230
|
+
autofocus?: boolean;
|
|
1231
|
+
/**
|
|
1232
|
+
* Per-element `xml:space` value (SVG 2 §5.11.4) for non-text shapes.
|
|
1233
|
+
* Text-bearing shapes (`Text`) own their own `xml:space` lifecycle
|
|
1234
|
+
* via the rich-text serializer.
|
|
1235
|
+
*/
|
|
1236
|
+
xmlSpace?: 'default' | 'preserve';
|
|
1237
|
+
/**
|
|
1238
|
+
* Foreign-namespaced or prefixed attributes preserved verbatim for
|
|
1239
|
+
* round-trip (SVG 2 §5.10 — "elements and attributes from foreign
|
|
1240
|
+
* namespaces ... must be ignored for rendering ... [but] preserved
|
|
1241
|
+
* when the SVG document is loaded and saved"). Covers `inkscape:`,
|
|
1242
|
+
* `sodipodi:`, `serif:`, `figma:`, and any other authoring-tool
|
|
1243
|
+
* markers, plus arbitrary user-defined namespaces. Stored as a list
|
|
1244
|
+
* (rather than a record) to preserve ordering and to permit multiple
|
|
1245
|
+
* attributes with the same local name across different namespaces.
|
|
1246
|
+
*/
|
|
1247
|
+
foreignAttrs?: Array<{
|
|
1248
|
+
name: string;
|
|
1249
|
+
namespaceURI: string | null;
|
|
1250
|
+
value: string;
|
|
1251
|
+
}>;
|
|
1165
1252
|
/**
|
|
1166
1253
|
* Hyperlink target — when set, the shape is rendered inside an SVG `<a>`
|
|
1167
1254
|
* element with `href="${linkUrl}"`. Round-trips through SVG import/export.
|
|
@@ -1254,6 +1341,19 @@ interface DocumentMetadata {
|
|
|
1254
1341
|
* `ShapeMetadata.rawDescription`; see there for the emit rule.
|
|
1255
1342
|
*/
|
|
1256
1343
|
rawDescription?: string;
|
|
1344
|
+
/**
|
|
1345
|
+
* Lossless carrier for HTML metadata elements (`<link>`, `<meta>`)
|
|
1346
|
+
* that appeared as direct children of the root `<svg>`. Stored as a
|
|
1347
|
+
* serialized string of one or more elements in document order.
|
|
1348
|
+
*
|
|
1349
|
+
* Spec: SVG 2 §5.9 — "The HTML elements `meta`, `link` and `style`
|
|
1350
|
+
* may appear inside the `svg` element". `<style>` is consumed by
|
|
1351
|
+
* the CSS parser; `<link>` (often used for external stylesheets)
|
|
1352
|
+
* and `<meta>` (charset, viewport hints, OpenGraph) round-trip
|
|
1353
|
+
* verbatim through this field so downstream tooling that produced
|
|
1354
|
+
* them sees its data preserved.
|
|
1355
|
+
*/
|
|
1356
|
+
rawHtmlMetadata?: string;
|
|
1257
1357
|
/**
|
|
1258
1358
|
* Decimal precision for coordinate values when the document is
|
|
1259
1359
|
* serialized — file save, cloud sync, undo capture, and SVG export.
|
|
@@ -1796,7 +1896,40 @@ interface SerializedShape {
|
|
|
1796
1896
|
opacity?: number;
|
|
1797
1897
|
blendMode?: string;
|
|
1798
1898
|
shapeRendering?: 'auto' | 'optimizeSpeed' | 'crispEdges' | 'geometricPrecision';
|
|
1899
|
+
textRendering?: 'auto' | 'optimizeSpeed' | 'optimizeLegibility' | 'geometricPrecision';
|
|
1900
|
+
imageRendering?: 'auto' | 'optimizeSpeed' | 'optimizeQuality' | 'crisp-edges' | 'pixelated' | 'smooth' | 'high-quality';
|
|
1901
|
+
colorRendering?: 'auto' | 'optimizeSpeed' | 'optimizeQuality';
|
|
1902
|
+
/**
|
|
1903
|
+
* SVG `color-interpolation` (SVG 2 §13.9). Selects the color space —
|
|
1904
|
+
* sRGB or linearized RGB — used for *non-filter* color operations:
|
|
1905
|
+
* gradient-stop interpolation, SMIL color animation interpolation,
|
|
1906
|
+
* and the compositing/blending of graphics elements. The
|
|
1907
|
+
* filter-pipeline analogue is `color-interpolation-filters`
|
|
1908
|
+
* (carried separately on filter chains as `filterColorInterpolation`).
|
|
1909
|
+
* Spec initial value: `sRGB`. Authors who pick `linearRGB` get
|
|
1910
|
+
* physically-linear stop interpolation; missing this attribute on
|
|
1911
|
+
* round-trip silently shifts mid-tone gradient colors.
|
|
1912
|
+
*/
|
|
1913
|
+
colorInterpolation?: 'auto' | 'sRGB' | 'linearRGB';
|
|
1914
|
+
/**
|
|
1915
|
+
* SVG `display` presentation attribute as authored on the source
|
|
1916
|
+
* element. Distinct from `visible` (editor's layer-hide boolean,
|
|
1917
|
+
* which writes inline `style="display:none"`): `display: 'none'`
|
|
1918
|
+
* here carries the author's intent through round-trip as an XML
|
|
1919
|
+
* attribute (`<rect display="none"/>`), preserving SVG 2 §3.2.2
|
|
1920
|
+
* semantics that `display:none` removes the element from the
|
|
1921
|
+
* rendering tree.
|
|
1922
|
+
*/
|
|
1923
|
+
display?: 'none';
|
|
1799
1924
|
metadata?: Partial<ShapeMetadata>;
|
|
1925
|
+
/**
|
|
1926
|
+
* Shape-scoped `<script>` elements (SVG 2 §15.9 allows scripts as
|
|
1927
|
+
* descendants of any container). Emitted as children of the shape's
|
|
1928
|
+
* exported element on save; preserved verbatim through .svgs round-trip,
|
|
1929
|
+
* undo/redo, copy/paste. Distinct from `HistorySnapshot.documentScripts`
|
|
1930
|
+
* which sits at the SVG root and runs in document order.
|
|
1931
|
+
*/
|
|
1932
|
+
scripts?: DocumentScript[];
|
|
1800
1933
|
groupId?: string;
|
|
1801
1934
|
cssClipPath?: string;
|
|
1802
1935
|
cssMaskProperties?: Record<string, string>;
|
|
@@ -1842,6 +1975,26 @@ interface SerializedShape {
|
|
|
1842
1975
|
* Only meaningful on `symbol-instance` shapes.
|
|
1843
1976
|
*/
|
|
1844
1977
|
instancePresentation?: Record<string, string>;
|
|
1978
|
+
/**
|
|
1979
|
+
* Inline children for container shape types (`hyperlink`, `switch`,
|
|
1980
|
+
* `container`, embedded `svg`). Each child is a self-contained
|
|
1981
|
+
* `SerializedShape` rendered nested inside the parent's element.
|
|
1982
|
+
*
|
|
1983
|
+
* Groups (`type === 'group'`) do NOT use this field — they store
|
|
1984
|
+
* children flat in `HistorySnapshot.shapes[]` and back-reference the
|
|
1985
|
+
* parent group via `state.groupId`. The two pickup paths exist
|
|
1986
|
+
* because groups predate the inline-children container model.
|
|
1987
|
+
*/
|
|
1988
|
+
children?: SerializedShape[];
|
|
1989
|
+
/** Legacy `xlink:href`, preserved alongside `href` for round-trip. */
|
|
1990
|
+
hrefXlink?: string;
|
|
1991
|
+
linkTarget?: '_self' | '_blank' | '_parent' | '_top' | string;
|
|
1992
|
+
linkRel?: string;
|
|
1993
|
+
linkDownload?: string;
|
|
1994
|
+
linkPing?: string;
|
|
1995
|
+
linkHreflang?: string;
|
|
1996
|
+
linkType?: string;
|
|
1997
|
+
linkReferrerPolicy?: string;
|
|
1845
1998
|
/**
|
|
1846
1999
|
* Id of the canvas shape this `shape-reference` (Linked Copy) targets.
|
|
1847
2000
|
* A Linked Copy renders as a live clone of another top-level shape and
|
|
@@ -2094,6 +2247,13 @@ interface SerializedGroup {
|
|
|
2094
2247
|
filter?: string;
|
|
2095
2248
|
cssFilter?: string;
|
|
2096
2249
|
mixBlendMode?: string;
|
|
2250
|
+
/**
|
|
2251
|
+
* CSS `isolation` (Compositing & Blending §6.1). CSS-only property —
|
|
2252
|
+
* no SVG presentation-attribute form, so it lives in inline style on
|
|
2253
|
+
* the group element. Round-tripped here so authored
|
|
2254
|
+
* `<g style="isolation:isolate">` survives serialize/restore.
|
|
2255
|
+
*/
|
|
2256
|
+
isolation?: string;
|
|
2097
2257
|
clipPath?: string;
|
|
2098
2258
|
mask?: string;
|
|
2099
2259
|
/**
|
|
@@ -2388,6 +2548,7 @@ interface CommonNodeProps {
|
|
|
2388
2548
|
gapLength: number;
|
|
2389
2549
|
dashOffset: number;
|
|
2390
2550
|
strokeDasharray: string | null;
|
|
2551
|
+
colorInterpolation: 'auto' | 'sRGB' | 'linearRGB' | null;
|
|
2391
2552
|
filters: unknown[];
|
|
2392
2553
|
filterColorInterpolation: 'auto' | 'sRGB' | 'linearRGB' | null;
|
|
2393
2554
|
filterUnits: 'userSpaceOnUse' | 'objectBoundingBox' | null;
|
|
@@ -3988,6 +4149,68 @@ declare abstract class ShapeBuilder<T extends ShapeBuilder<T>> {
|
|
|
3988
4149
|
cssClipPath(value: string): T;
|
|
3989
4150
|
/** Set CSS mask sub-properties (`mask-image`, `mask-mode`, etc.). */
|
|
3990
4151
|
cssMaskProperties(props: Record<string, string>): T;
|
|
4152
|
+
/**
|
|
4153
|
+
* SVG 2 §13.4 `vector-effect`. `non-scaling-stroke` keeps stroke width
|
|
4154
|
+
* constant under zoom and transforms (heavily used in CAD/diagram SVGs).
|
|
4155
|
+
*/
|
|
4156
|
+
vectorEffect(value: 'none' | 'non-scaling-stroke' | 'non-scaling-size' | 'non-rotation' | 'fixed-position'): T;
|
|
4157
|
+
/** CSS Transforms 2 `transform-box`. */
|
|
4158
|
+
transformBox(value: 'view-box' | 'fill-box' | 'stroke-box' | 'content-box' | 'border-box'): T;
|
|
4159
|
+
/** SVG 2 §13.10 `paint-order` (e.g. `'stroke fill'`, `'fill stroke markers'`). */
|
|
4160
|
+
paintOrder(value: string): T;
|
|
4161
|
+
/** Compositing & Blending 2 `mix-blend-mode` (e.g. `'multiply'`, `'screen'`). */
|
|
4162
|
+
blendMode(value: string): T;
|
|
4163
|
+
/**
|
|
4164
|
+
* SVG `visibility` attribute — paint-only hiding that preserves layout.
|
|
4165
|
+
* Distinct from `.visible(false)` which sets `display:none`.
|
|
4166
|
+
*/
|
|
4167
|
+
visibility(value: 'visible' | 'hidden' | 'collapse'): T;
|
|
4168
|
+
/** SVG 2 §13.6 `shape-rendering`. */
|
|
4169
|
+
shapeRendering(value: 'auto' | 'optimizeSpeed' | 'crispEdges' | 'geometricPrecision'): T;
|
|
4170
|
+
/** Color-interpolation hint for filter chains attached to this shape. */
|
|
4171
|
+
filterColorInterpolation(value: 'auto' | 'sRGB' | 'linearRGB'): T;
|
|
4172
|
+
/**
|
|
4173
|
+
* Suppress the shape-level `fill` so the `<use>` cascade can drive it
|
|
4174
|
+
* (used by symbol instances with `instancePresentation`).
|
|
4175
|
+
*/
|
|
4176
|
+
inheritFill(value?: boolean): T;
|
|
4177
|
+
/** Suppress the shape-level `stroke` so the `<use>` cascade can drive it. */
|
|
4178
|
+
inheritStroke(value?: boolean): T;
|
|
4179
|
+
/** SVG 2 §5.8.5 `systemLanguage` conditional-processing attribute (BCP 47 tag). */
|
|
4180
|
+
systemLanguage(tag: string): T;
|
|
4181
|
+
/** SVG 2 §5.8 `requiredExtensions` conditional-processing attribute. */
|
|
4182
|
+
requiredExtensions(value: string): T;
|
|
4183
|
+
/**
|
|
4184
|
+
* Reference a library-registered fill (gradient or pattern) by id.
|
|
4185
|
+
* The `kind` parameter tells the renderer which `<defs>` shape to expect;
|
|
4186
|
+
* it's the discriminator on the matching `LibraryDef` entry.
|
|
4187
|
+
* Mutually exclusive with `.fill()`/`.fillGradient()`/`.fillPattern()`.
|
|
4188
|
+
*/
|
|
4189
|
+
fillLibrary(id: string, kind?: 'linear-gradient' | 'radial-gradient' | 'pattern'): T;
|
|
4190
|
+
/** Reference a library-registered stroke (gradient or pattern) by id. */
|
|
4191
|
+
strokeLibrary(id: string, kind?: 'linear-gradient' | 'radial-gradient' | 'pattern'): T;
|
|
4192
|
+
/**
|
|
4193
|
+
* Reference one or more library-registered filters by id. The chain is
|
|
4194
|
+
* composed in order, then merged with any inline `.filter()`/`.dropShadow()`/etc.
|
|
4195
|
+
*/
|
|
4196
|
+
filterLibrary(...ids: string[]): T;
|
|
4197
|
+
/**
|
|
4198
|
+
* Reference a library-registered marker for the start vertex.
|
|
4199
|
+
* Distinct from the `Line`/`Path` `.markerStart()` preset accessors —
|
|
4200
|
+
* those set the `startEndpoint` preset, this points at a library def id.
|
|
4201
|
+
*/
|
|
4202
|
+
markerStartRef(id: string): T;
|
|
4203
|
+
/** Reference a library-registered marker for intermediate vertices. */
|
|
4204
|
+
markerMidRef(id: string): T;
|
|
4205
|
+
/** Reference a library-registered marker for the end vertex. */
|
|
4206
|
+
markerEndRef(id: string): T;
|
|
4207
|
+
/**
|
|
4208
|
+
* Bind a shape property to a template variable name. The variable must be
|
|
4209
|
+
* registered on the document via `Document.defineVariable(...)`. At export
|
|
4210
|
+
* time the property's serialized value is replaced by `{{varName}}`, which
|
|
4211
|
+
* `Document.toSVG({ variables })` then substitutes.
|
|
4212
|
+
*/
|
|
4213
|
+
bind(propertyName: string, variableName: string): T;
|
|
3991
4214
|
/** Set shape metadata (name, title, description, etc). */
|
|
3992
4215
|
metadata(meta: Partial<ShapeMetadata>): T;
|
|
3993
4216
|
/** Assign this shape to a group. */
|
|
@@ -4111,6 +4334,26 @@ declare class Text extends ShapeBuilder<Text> {
|
|
|
4111
4334
|
shapePadding(value: number): Text;
|
|
4112
4335
|
/** Set rich text data for per-segment styling. */
|
|
4113
4336
|
richTextData(data: RichTextData): Text;
|
|
4337
|
+
/**
|
|
4338
|
+
* Toggle rich-text rendering. When `true`, `richTextData` drives output and
|
|
4339
|
+
* the plain `text` field is treated as a fallback. When `false` (default),
|
|
4340
|
+
* the plain `text` field is rendered.
|
|
4341
|
+
*/
|
|
4342
|
+
useRichText(flag?: boolean): Text;
|
|
4343
|
+
/**
|
|
4344
|
+
* Set per-line position overrides. Used when imported `<tspan>` runs
|
|
4345
|
+
* carried explicit `x`/`y`/`dx`/`dy` lists that the editor must round-trip.
|
|
4346
|
+
*/
|
|
4347
|
+
linePositions(positions: {
|
|
4348
|
+
x?: number | null;
|
|
4349
|
+
y?: number | null;
|
|
4350
|
+
dx?: number;
|
|
4351
|
+
dy?: number;
|
|
4352
|
+
}[]): Text;
|
|
4353
|
+
/** SVG `textLength` attribute (target advance width). */
|
|
4354
|
+
textLength(value: number): Text;
|
|
4355
|
+
/** SVG `lengthAdjust` attribute (`spacing` or `spacingAndGlyphs`). */
|
|
4356
|
+
lengthAdjust(value: 'spacing' | 'spacingAndGlyphs'): Text;
|
|
4114
4357
|
}
|
|
4115
4358
|
declare abstract class PolygonShapeBuilder<T extends PolygonShapeBuilder<T>> extends ShapeBuilder<T> {
|
|
4116
4359
|
constructor(type: SerializedShape['type'], cx: number, cy: number, radius: number);
|
|
@@ -4173,6 +4416,166 @@ declare class Arrow extends PolygonShapeBuilder<Arrow> {
|
|
|
4173
4416
|
/** Set the arrow shaft width as a percent (0–100). */
|
|
4174
4417
|
shaftWidth(percent: number): Arrow;
|
|
4175
4418
|
}
|
|
4419
|
+
declare class Heart extends PolygonShapeBuilder<Heart> {
|
|
4420
|
+
constructor(cx: number, cy: number, radius: number);
|
|
4421
|
+
/** Set the lobe radius as a percent of the bounding circle (30–70). */
|
|
4422
|
+
lobeRadius(percent: number): Heart;
|
|
4423
|
+
/** Set the cleft (top notch) depth as a percent (10–50). */
|
|
4424
|
+
cleftDepth(percent: number): Heart;
|
|
4425
|
+
}
|
|
4426
|
+
declare class Lightning extends PolygonShapeBuilder<Lightning> {
|
|
4427
|
+
constructor(cx: number, cy: number, radius: number);
|
|
4428
|
+
/** Set the number of zigzag bend segments. */
|
|
4429
|
+
segments(n: number): Lightning;
|
|
4430
|
+
/** Set the horizontal sway as a percent (10–80). */
|
|
4431
|
+
jaggedness(percent: number): Lightning;
|
|
4432
|
+
/** Set the bolt ribbon thickness as a percent (10–60). */
|
|
4433
|
+
thickness(percent: number): Lightning;
|
|
4434
|
+
}
|
|
4435
|
+
declare class Cloud extends PolygonShapeBuilder<Cloud> {
|
|
4436
|
+
constructor(cx: number, cy: number, radius: number);
|
|
4437
|
+
/** Set the number of bumps around the cloud silhouette. */
|
|
4438
|
+
bumps(n: number): Cloud;
|
|
4439
|
+
/** Set the puffiness (bump radius) as a percent. */
|
|
4440
|
+
puffiness(percent: number): Cloud;
|
|
4441
|
+
}
|
|
4442
|
+
declare class SpeechBubble extends PolygonShapeBuilder<SpeechBubble> {
|
|
4443
|
+
constructor(cx: number, cy: number, radius: number);
|
|
4444
|
+
/** Set the tail angle in degrees (0 = right, 90 = down, etc.). */
|
|
4445
|
+
tailAngle(degrees: number): SpeechBubble;
|
|
4446
|
+
/** Set the tail length as a percent of the bounding radius. */
|
|
4447
|
+
tailLength(percent: number): SpeechBubble;
|
|
4448
|
+
/** Set the tail base width as a percent of the bounding radius. */
|
|
4449
|
+
tailWidth(percent: number): SpeechBubble;
|
|
4450
|
+
}
|
|
4451
|
+
/**
|
|
4452
|
+
* Mixin base for shape builders whose `state.children` is an inline array
|
|
4453
|
+
* of `SerializedShape`. Hyperlink, Switch, Container, NestedSvg all extend
|
|
4454
|
+
* this. The `.add()` method accepts another `ShapeBuilder` (its `.build()`
|
|
4455
|
+
* is called immediately) or a raw `SerializedShape`.
|
|
4456
|
+
*/
|
|
4457
|
+
declare abstract class ContainerShapeBuilder<T extends ContainerShapeBuilder<T>> extends ShapeBuilder<T> {
|
|
4458
|
+
/** Append a shape (builder or pre-built SerializedShape) as a child. */
|
|
4459
|
+
add(shape: ShapeBuilder<any> | SerializedShape): T;
|
|
4460
|
+
/** Append multiple children in a single call. */
|
|
4461
|
+
addAll(...shapes: (ShapeBuilder<any> | SerializedShape)[]): T;
|
|
4462
|
+
/** Replace the children array wholesale. */
|
|
4463
|
+
children(shapes: (ShapeBuilder<any> | SerializedShape)[]): T;
|
|
4464
|
+
}
|
|
4465
|
+
declare class Hyperlink extends ContainerShapeBuilder<Hyperlink> {
|
|
4466
|
+
constructor(href?: string);
|
|
4467
|
+
/** Set the link target URL (`href` attribute). */
|
|
4468
|
+
href(value: string): Hyperlink;
|
|
4469
|
+
/** Set the legacy `xlink:href` (kept for round-trip with SVG 1.1 sources). */
|
|
4470
|
+
hrefXlink(value: string): Hyperlink;
|
|
4471
|
+
/** Set the link target window — `'_self'`, `'_blank'`, etc. */
|
|
4472
|
+
target(value: '_self' | '_blank' | '_parent' | '_top' | string): Hyperlink;
|
|
4473
|
+
/** Set the `download` attribute (file name hint for download links). */
|
|
4474
|
+
download(value: string): Hyperlink;
|
|
4475
|
+
/** Set the `rel` attribute (e.g. `'noopener noreferrer'`). */
|
|
4476
|
+
rel(value: string): Hyperlink;
|
|
4477
|
+
/** Set the `ping` attribute (space-separated URLs notified on click). */
|
|
4478
|
+
ping(value: string): Hyperlink;
|
|
4479
|
+
/** Set the `hreflang` attribute. */
|
|
4480
|
+
hreflang(value: string): Hyperlink;
|
|
4481
|
+
/** Set the `type` attribute (MIME type hint for the destination). */
|
|
4482
|
+
type(value: string): Hyperlink;
|
|
4483
|
+
/** Set the `referrerpolicy` attribute. */
|
|
4484
|
+
referrerPolicy(value: string): Hyperlink;
|
|
4485
|
+
}
|
|
4486
|
+
declare class Switch extends ContainerShapeBuilder<Switch> {
|
|
4487
|
+
constructor();
|
|
4488
|
+
}
|
|
4489
|
+
/**
|
|
4490
|
+
* Generic container shape: emits `<g>` wrapping inline children. Distinct
|
|
4491
|
+
* from the editor's `Group` system, which uses flat-with-`groupId` storage —
|
|
4492
|
+
* use this when programmatically composing a document where you want the
|
|
4493
|
+
* children persisted under their parent rather than in the flat shapes array.
|
|
4494
|
+
*/
|
|
4495
|
+
declare class Container extends ContainerShapeBuilder<Container> {
|
|
4496
|
+
constructor();
|
|
4497
|
+
}
|
|
4498
|
+
declare class View extends ShapeBuilder<View> {
|
|
4499
|
+
constructor(viewBox?: {
|
|
4500
|
+
x: number;
|
|
4501
|
+
y: number;
|
|
4502
|
+
width: number;
|
|
4503
|
+
height: number;
|
|
4504
|
+
});
|
|
4505
|
+
/** Set the viewBox (x, y, width, height) the view exposes. */
|
|
4506
|
+
viewBox(x: number, y: number, width: number, height: number): View;
|
|
4507
|
+
/** Human-readable name (round-tripped as `data-view-name`). */
|
|
4508
|
+
name(value: string): View;
|
|
4509
|
+
/** SVG 2 `preserveAspectRatio` (e.g. `'xMidYMid meet'`). */
|
|
4510
|
+
preserveAspectRatio(value: string): View;
|
|
4511
|
+
/** Legacy `zoomAndPan` attribute (`'disable' | 'magnify'`). */
|
|
4512
|
+
zoomAndPan(value: 'disable' | 'magnify'): View;
|
|
4513
|
+
/** SVG `viewTarget` attribute. */
|
|
4514
|
+
viewTarget(value: string): View;
|
|
4515
|
+
/** Mark this view as the canonical "home" view of the document. */
|
|
4516
|
+
asHome(value?: boolean): View;
|
|
4517
|
+
}
|
|
4518
|
+
declare class NestedSvg extends ContainerShapeBuilder<NestedSvg> {
|
|
4519
|
+
constructor(x?: number, y?: number, width?: number, height?: number);
|
|
4520
|
+
/** Set the position on the parent canvas. */
|
|
4521
|
+
position(x: number, y: number): NestedSvg;
|
|
4522
|
+
/** Set width and height on the parent canvas. */
|
|
4523
|
+
size(width: number, height: number): NestedSvg;
|
|
4524
|
+
/** Set the `viewBox` (the inner coordinate system). */
|
|
4525
|
+
viewBox(x: number, y: number, width: number, height: number): NestedSvg;
|
|
4526
|
+
/** SVG 2 `preserveAspectRatio` for the nested viewport. */
|
|
4527
|
+
preserveAspectRatio(value: string): NestedSvg;
|
|
4528
|
+
/** Mark this as the root SVG element (rare; typically only one per document). */
|
|
4529
|
+
asRoot(value?: boolean): NestedSvg;
|
|
4530
|
+
}
|
|
4531
|
+
declare class ShapeReference extends ShapeBuilder<ShapeReference> {
|
|
4532
|
+
constructor(targetShapeId?: string);
|
|
4533
|
+
/** ID of the shape this reference clones. */
|
|
4534
|
+
target(shapeId: string): ShapeReference;
|
|
4535
|
+
/** Offset from the source's reference point (mapped to `<use x>`/`<use y>`). */
|
|
4536
|
+
offset(x: number, y: number): ShapeReference;
|
|
4537
|
+
/** Override the rendered width/height (mapped to `<use width>`/`<use height>`). */
|
|
4538
|
+
size(width: number, height: number): ShapeReference;
|
|
4539
|
+
}
|
|
4540
|
+
declare abstract class MediaShapeBuilder<T extends MediaShapeBuilder<T>> extends ShapeBuilder<T> {
|
|
4541
|
+
/** Position on the canvas. */
|
|
4542
|
+
position(x: number, y: number): T;
|
|
4543
|
+
/** Bounding-box width/height of the foreignObject wrapper. */
|
|
4544
|
+
size(width: number, height: number): T;
|
|
4545
|
+
/** Source URL or data URI. */
|
|
4546
|
+
src(href: string): T;
|
|
4547
|
+
/** MIME type hint (e.g. `'video/mp4'`, `'audio/mpeg'`). */
|
|
4548
|
+
mimeType(value: string): T;
|
|
4549
|
+
/** Source duration in seconds (set by the editor on `loadedmetadata`). */
|
|
4550
|
+
naturalDuration(seconds: number): T;
|
|
4551
|
+
/** Timeline offset where playback starts. */
|
|
4552
|
+
begin(seconds: number): T;
|
|
4553
|
+
/** Source-relative in/out trim (seconds). */
|
|
4554
|
+
trim(start: number, end: number): T;
|
|
4555
|
+
volume(value: number): T;
|
|
4556
|
+
muted(value?: boolean): T;
|
|
4557
|
+
loop(value?: boolean): T;
|
|
4558
|
+
playbackRate(value: number): T;
|
|
4559
|
+
/** Convenience volume ramps applied live by the sync controller. */
|
|
4560
|
+
fade(inDuration: number, outDuration: number): T;
|
|
4561
|
+
/** SVG conditional-processing `systemLanguage` (BCP 47 tag). */
|
|
4562
|
+
language(tag: string): T;
|
|
4563
|
+
}
|
|
4564
|
+
declare class Video extends MediaShapeBuilder<Video> {
|
|
4565
|
+
constructor(href?: string);
|
|
4566
|
+
/** First-frame thumbnail URL or data URI. */
|
|
4567
|
+
poster(href: string): Video;
|
|
4568
|
+
/** Crop window in source-pixel space. */
|
|
4569
|
+
sourceRect(rect: {
|
|
4570
|
+
x: number;
|
|
4571
|
+
y: number;
|
|
4572
|
+
width: number;
|
|
4573
|
+
height: number;
|
|
4574
|
+
}): Video;
|
|
4575
|
+
}
|
|
4576
|
+
declare class Audio extends MediaShapeBuilder<Audio> {
|
|
4577
|
+
constructor(href?: string);
|
|
4578
|
+
}
|
|
4176
4579
|
declare class Path extends ShapeBuilder<Path> {
|
|
4177
4580
|
constructor(points?: (Point | PathPoint)[]);
|
|
4178
4581
|
/** Set the spline points. */
|
|
@@ -4193,6 +4596,15 @@ declare class Path extends ShapeBuilder<Path> {
|
|
|
4193
4596
|
markerEnd(style: EndpointStyle): Path;
|
|
4194
4597
|
/** Convenience: set both markers. */
|
|
4195
4598
|
markers(start: EndpointStyle, end: EndpointStyle): Path;
|
|
4599
|
+
/**
|
|
4600
|
+
* Resolve this path to its SVG `d` attribute string. Useful for path-morph
|
|
4601
|
+
* animations: the `d` track property accepts a `d` string per keyframe, and
|
|
4602
|
+
* SMIL interpolates between matching command sequences character-by-character.
|
|
4603
|
+
*
|
|
4604
|
+
* The output uses the same geometry pipeline as `Document.toSVG()`, so the
|
|
4605
|
+
* animated values match the static render of the same path exactly.
|
|
4606
|
+
*/
|
|
4607
|
+
toD(): string;
|
|
4196
4608
|
}
|
|
4197
4609
|
declare class Polyline extends ShapeBuilder<Polyline> {
|
|
4198
4610
|
constructor(points?: Point[]);
|
|
@@ -4518,6 +4930,16 @@ declare class Document {
|
|
|
4518
4930
|
viewBox?: string;
|
|
4519
4931
|
thumbnail?: string;
|
|
4520
4932
|
groups?: SerializedGroup[];
|
|
4933
|
+
/** SVG-element form: `'symbol'` (the default) or `'group'` (`<defs><g>`). */
|
|
4934
|
+
defKind?: 'symbol' | 'group';
|
|
4935
|
+
/** Wrapper attributes from a source `<g id>` def root, when `defKind === 'group'`. */
|
|
4936
|
+
wrapperAttrs?: Record<string, string>;
|
|
4937
|
+
/** Named variant axes, e.g. `[{ name: 'color', values: ['red', 'blue'] }]`. */
|
|
4938
|
+
variantAxes?: SerializedVariantAxis[];
|
|
4939
|
+
/** Variant shape arrays keyed by canonical `axis=val,…` string. */
|
|
4940
|
+
variants?: Record<string, SerializedShape[]>;
|
|
4941
|
+
/** Per-variant thumbnails keyed by canonical variant string. */
|
|
4942
|
+
variantThumbnails?: Record<string, string>;
|
|
4521
4943
|
}): string;
|
|
4522
4944
|
/**
|
|
4523
4945
|
* Place a symbol instance on the canvas.
|
|
@@ -4525,14 +4947,88 @@ declare class Document {
|
|
|
4525
4947
|
* @param symbolId - The ID of the symbol definition.
|
|
4526
4948
|
* @param x - X position.
|
|
4527
4949
|
* @param y - Y position.
|
|
4528
|
-
* @param
|
|
4529
|
-
* @param height - Instance height (
|
|
4950
|
+
* @param widthOrOptions - Instance width, or an options bag.
|
|
4951
|
+
* @param height - Instance height (only when `widthOrOptions` is a number).
|
|
4530
4952
|
*/
|
|
4531
|
-
placeSymbolInstance(symbolId: string, x: number, y: number,
|
|
4953
|
+
placeSymbolInstance(symbolId: string, x: number, y: number, widthOrOptions?: number | {
|
|
4954
|
+
width?: number;
|
|
4955
|
+
height?: number;
|
|
4956
|
+
/** Selected variant key, e.g. `'color=red,size=large'`. */
|
|
4957
|
+
variantKey?: string;
|
|
4958
|
+
/** Per-inner-shape state patches applied to this instance only. */
|
|
4959
|
+
symbolOverrides?: Record<string, Partial<SerializedShape['state']>>;
|
|
4960
|
+
/** Per-instance attribute cascade applied to the `<use>` element (SVG 2 §5.5.4). */
|
|
4961
|
+
instancePresentation?: Record<string, string>;
|
|
4962
|
+
}, height?: number): Document;
|
|
4532
4963
|
/** Remove a symbol definition by ID. */
|
|
4533
4964
|
removeSymbol(id: string): boolean;
|
|
4534
4965
|
/** Get all symbol definitions. */
|
|
4535
4966
|
get symbols(): readonly SerializedSymbolDef[];
|
|
4967
|
+
/**
|
|
4968
|
+
* Register a marker definition. Shapes can then reference the marker by
|
|
4969
|
+
* id via `.markerStartRef(id)` / `.markerMidRef(id)` / `.markerEndRef(id)`.
|
|
4970
|
+
*
|
|
4971
|
+
* @returns The marker library def id.
|
|
4972
|
+
*/
|
|
4973
|
+
defineMarker(name: string, shapes: (ShapeBuilder<any> | SerializedShape)[], options?: {
|
|
4974
|
+
viewBox?: string;
|
|
4975
|
+
refX?: number;
|
|
4976
|
+
refY?: number;
|
|
4977
|
+
markerWidth?: number;
|
|
4978
|
+
markerHeight?: number;
|
|
4979
|
+
markerUnits?: 'strokeWidth' | 'userSpaceOnUse';
|
|
4980
|
+
orient?: 'auto' | 'auto-start-reverse' | number;
|
|
4981
|
+
thumbnail?: string;
|
|
4982
|
+
groups?: SerializedGroup[];
|
|
4983
|
+
}): string;
|
|
4984
|
+
/**
|
|
4985
|
+
* Register a reusable filter chain. Shapes reference it via `.filterLibrary(id)`.
|
|
4986
|
+
*
|
|
4987
|
+
* @returns The filter library def id.
|
|
4988
|
+
*/
|
|
4989
|
+
defineFilter(name: string, filters: ShapeFilter[], options?: {
|
|
4990
|
+
colorInterpolation?: 'auto' | 'sRGB' | 'linearRGB';
|
|
4991
|
+
filterUnits?: 'userSpaceOnUse' | 'objectBoundingBox';
|
|
4992
|
+
primitiveUnits?: 'userSpaceOnUse' | 'objectBoundingBox';
|
|
4993
|
+
x?: string;
|
|
4994
|
+
y?: string;
|
|
4995
|
+
width?: string;
|
|
4996
|
+
height?: string;
|
|
4997
|
+
thumbnail?: string;
|
|
4998
|
+
}): string;
|
|
4999
|
+
/**
|
|
5000
|
+
* Register a reusable linear gradient. Shapes reference it via `.fillLibrary(id)`.
|
|
5001
|
+
*
|
|
5002
|
+
* @returns The library def id.
|
|
5003
|
+
*/
|
|
5004
|
+
defineLinearGradientLibrary(name: string, gradient: LinearGradientBuilder | LinearGradient, options?: {
|
|
5005
|
+
thumbnail?: string;
|
|
5006
|
+
}): string;
|
|
5007
|
+
/**
|
|
5008
|
+
* Register a reusable radial gradient. Shapes reference it via `.fillLibrary(id, 'radial-gradient')`.
|
|
5009
|
+
*
|
|
5010
|
+
* @returns The library def id.
|
|
5011
|
+
*/
|
|
5012
|
+
defineRadialGradientLibrary(name: string, gradient: RadialGradientBuilder | RadialGradient, options?: {
|
|
5013
|
+
thumbnail?: string;
|
|
5014
|
+
}): string;
|
|
5015
|
+
/**
|
|
5016
|
+
* Register a reusable pattern. Shapes reference it via `.fillLibrary(id, 'pattern')`.
|
|
5017
|
+
*
|
|
5018
|
+
* @returns The library def id.
|
|
5019
|
+
*/
|
|
5020
|
+
definePatternLibrary(name: string, pattern: PatternBuilder | PatternFill, options?: {
|
|
5021
|
+
thumbnail?: string;
|
|
5022
|
+
}): string;
|
|
5023
|
+
/** Remove a library def (marker / filter / gradient / pattern) by id. */
|
|
5024
|
+
removeLibraryDef(id: string): boolean;
|
|
5025
|
+
/** Read-only view of every registered library def. */
|
|
5026
|
+
get library(): readonly LibraryDef[];
|
|
5027
|
+
/**
|
|
5028
|
+
* Push a library def, lazily initializing `_snapshot.library` and
|
|
5029
|
+
* deduplicating by id (last write wins).
|
|
5030
|
+
*/
|
|
5031
|
+
private _pushLibraryDef;
|
|
4536
5032
|
/**
|
|
4537
5033
|
* Add a clip group.
|
|
4538
5034
|
*
|
|
@@ -4751,4 +5247,4 @@ declare class Document {
|
|
|
4751
5247
|
private _ensureMetadata;
|
|
4752
5248
|
}
|
|
4753
5249
|
|
|
4754
|
-
export { type AnimatablePropertyDescriptor, type AnimationKeyframe, type AnimationTimeline, type AnimationTrack, type AnimationTrigger, type AnimationTriggerType, type AnyNodeProps, type ArcParams$1 as ArcParams, type AriaRole, Arrow, type ArrowNodeProps, BUILTIN_MARKER_ID_MAP, type BaseFilter, type BaseFilterPrimitive, type BlackAndWhiteFilter, type BlurQuality, type BrightnessFilter, CURRENT_SCHEMA_VERSION, type ChannelPainterFilter, Circle, type CircleNodeProps, type CodeFormat, type CodegenOptions, type CommonNodeProps, type ConnectionDirection, type ConnectionPoint, type ContouringDiscreteFilter, type ContouringTableFilter, type ContrastFilter, type CornerShapeValue, type CreateDocumentOptions, type CreateShapeOptions, Cross, type CrossNodeProps, type CrumpledPlasticFilter, type CustomPatternDef, type CycleBehavior, DEFAULT_COORDINATE_PRECISION, type DiffuseLightingFilter, Document, type DocumentMetadata, type DocumentNodeProps, type DocumentOptions, type DocumentScript, type DocumentStyle, type DropShadowFilter, type DuotoneFilter, EASING_CURVES, EVENT_TRIGGER_OPTIONS, EasingType, Ellipse, type EllipseNodeProps, type EmbossFilter, type ExtractedVariables, type FeBlendPrimitive, type FeColorMatrixPrimitive, type FeComponentTransferPrimitive, type FeCompositePrimitive, type FeConvolveMatrixPrimitive, type FeDiffuseLightingPrimitive, type FeDisplacementMapPrimitive, type FeDropShadowPrimitive, type FeFloodPrimitive, type FeGaussianBlurPrimitive, type FeImagePrimitive, type FeMergePrimitive, type FeMorphologyPrimitive, type FeOffsetPrimitive, type FeSpecularLightingPrimitive, type FeTilePrimitive, type FeTurbulencePrimitive, type FillType, type FilmGrainFilter, type FilterBlendMode, type FilterLibraryDef, type FilterLightSource, type FilterPrimitive, type FilterPrimitiveType, type FilterType, type GaussianBlurFilter, Gear, type GearNodeProps, type GlowFilter, type GouacheFilter, type GradientDefinition, type GradientSpreadMethod, type GradientStop, type GradientUnits, type GrayscaleFilter, type GroupNodeProps, type Guide, type HistorySnapshot, type HueRotateFilter, type ImageAttribution, type ImageNodeProps, ImageShape, type InkBlotFilter, type InnerGlowFilter, type InnerShadowFilter, type InvertFilter, LIBRARY_EMIT_ORDER, type LibraryDef, type LibraryDefBase, type LibraryDefOfKind, type LibraryKind, type LicenseType, type LightSource, Line, type LineEndpointValue, type LineNodeProps, type LinearEasingPoint, type LinearGradient, LinearGradientBuilder, type LinearGradientLibraryDef, type LinkTarget, MARKER_HEIGHT, MARKER_VIEWBOX, MARKER_WIDTH, MAX_COORDINATE_PRECISION, MIGRATIONS, type MarkerDescriptor, type MarkerLibraryDef, type Measurement, type Migration, type MorphologyFilter, type MorphologyOperator, type MotionBlurFilter, NGon, type NGonNodeProps, type NodeTypePropsMap, type NoiseFilter, type OpacityFilter, type OutlineFilter, type OutlinePosition, type ParseOptions, Path, PathCurveType, type PathNodeProps, type PathPoint, PathPointType, PatternBuilder, type PatternElement, type PatternFill, type PatternLibraryDef, type PatternParams, type PatternSvgContentResult, type PatternType, type PixelateFilter, type Point, type PointLightFilter, type PolygonBaseNodeProps, Polyline, type PolylineNodeProps, type RadialGradient, RadialGradientBuilder, type RadialGradientLibraryDef, type RawSvgFilter, Rectangle, type RectangleNodeProps, type RenderOptions, type RichTextData, type RichTextLine, type RichTextSegment, type RichTextSegmentStyle, type RiddledFilter, Ring, type RingNodeProps, type RoundEdgesFilter, type SaturateFilter, type SegmentCurveType, type SepiaFilter, type SerializedAnimationTimeline, type SerializedClipMaskGroup, type SerializedGroup, type SerializedMarkerDef, type SerializedShape, type SerializedSymbolDef, type SerializedVariantAxis, type SerializedViewbox, ShapeBuilder, type ShapeFilter, type ShapeMetadata, type SharpenFilter, type SpecularLightingFilter, Spiral, type SpiralNodeProps, type SpotLightFilter, Square, type SquareNodeProps, Star, type StarNodeProps, type StepPosition, type StepsParams, type StringifyOptions, type StrokeType, type SvgPrimitiveChainFilter, type SymbolInstanceNodeProps, type SymbolLibraryDef, type TemplateVariable, type TemplateVariableMode, type TemplateVariableSource, type TemplateVariableType, Text, type TextNodeProps, Timeline, Track, type TransferFunc, Triangle, type TriangleNodeProps, type ValidationError, type ValidationResult, type VariableMap, type Viewbox, type WarpFilter, type WarpType, type WatercolorFilter, type XrayFilter, collectReferencedLibraryIds, computeArrowVertices, computeCloudPath, computeCrossVertices, computeDashArray, computeGearPath, computeGearVertices, computeHeartPath, computeLightningVertices, computePolygonVertices, computeRectanglePath, computeRingPath, computeSpeechBubbleVertices, computeSpiralPath, computeSplinePath, computeStarVertices, createDocument, createShape, createViewbox, defaultVariableMode, escXml, extractVariables, filterAttr, generateCode, generateCssCode, generateD3Code, generateId, generatePatternSvgContent, generateReactCode, generateSvgCode, generateVueCode, getBuiltInMarkerDefs, getEasingCubicBezier, getEffectivePrecision, getMarkerDescriptors, getPatternElements, linearGradient, migrateSnapshot, parseDocument, parseVariableArgs, pattern, radialGradient, renderAnimationElements, renderBuiltinMarkerDefs, renderCircle, renderEllipse, renderFilterDefs, renderFilterLibraryDef, renderFilterPrimitive, renderFilterPrimitivesForType, renderImage, renderLibraryDef, renderLibraryDefs, renderLine, renderLinearGradientLibraryDef, renderMarkerLibraryDef, renderPatternLibraryDef, renderPolygonShape, renderPolyline, renderRadialGradientLibraryDef, renderRectangle, renderReferencedLibraryDefs, renderShape, renderSpline, renderSvgPrimitiveChainFilter, renderSymbolLibraryDef, renderText, renderToSvg, roundCoord, roundNumberString, roundSerializedShape, roundSnapshot, stringifyDocument, substituteString, substituteVariables, validateSnapshot, verticesToPath };
|
|
5250
|
+
export { type AnimatablePropertyDescriptor, type AnimationKeyframe, type AnimationTimeline, type AnimationTrack, type AnimationTrigger, type AnimationTriggerType, type AnyNodeProps, type ArcParams$1 as ArcParams, type AriaRole, Arrow, type ArrowNodeProps, Audio, BUILTIN_MARKER_ID_MAP, type BaseFilter, type BaseFilterPrimitive, type BlackAndWhiteFilter, type BlurQuality, type BrightnessFilter, CURRENT_SCHEMA_VERSION, type ChannelPainterFilter, Circle, type CircleNodeProps, Cloud, type CodeFormat, type CodegenOptions, type CommonNodeProps, type ConnectionDirection, type ConnectionPoint, Container, ContainerShapeBuilder, type ContouringDiscreteFilter, type ContouringTableFilter, type ContrastFilter, type CornerShapeValue, type CreateDocumentOptions, type CreateShapeOptions, Cross, type CrossNodeProps, type CrumpledPlasticFilter, type CustomPatternDef, type CycleBehavior, DEFAULT_COORDINATE_PRECISION, type DiffuseLightingFilter, Document, type DocumentMetadata, type DocumentNodeProps, type DocumentOptions, type DocumentScript, type DocumentStyle, type DropShadowFilter, type DuotoneFilter, EASING_CURVES, EVENT_TRIGGER_OPTIONS, EasingType, Ellipse, type EllipseNodeProps, type EmbossFilter, type ExtractedVariables, type FeBlendPrimitive, type FeColorMatrixPrimitive, type FeComponentTransferPrimitive, type FeCompositePrimitive, type FeConvolveMatrixPrimitive, type FeDiffuseLightingPrimitive, type FeDisplacementMapPrimitive, type FeDropShadowPrimitive, type FeFloodPrimitive, type FeGaussianBlurPrimitive, type FeImagePrimitive, type FeMergePrimitive, type FeMorphologyPrimitive, type FeOffsetPrimitive, type FeSpecularLightingPrimitive, type FeTilePrimitive, type FeTurbulencePrimitive, type FillType, type FilmGrainFilter, type FilterBlendMode, type FilterLibraryDef, type FilterLightSource, type FilterPrimitive, type FilterPrimitiveType, type FilterType, type GaussianBlurFilter, Gear, type GearNodeProps, type GlowFilter, type GouacheFilter, type GradientDefinition, type GradientSpreadMethod, type GradientStop, type GradientUnits, type GrayscaleFilter, type GroupNodeProps, type Guide, Heart, type HistorySnapshot, type HueRotateFilter, Hyperlink, type ImageAttribution, type ImageNodeProps, ImageShape, type InkBlotFilter, type InnerGlowFilter, type InnerShadowFilter, type InvertFilter, LIBRARY_EMIT_ORDER, type LibraryDef, type LibraryDefBase, type LibraryDefOfKind, type LibraryKind, type LicenseType, type LightSource, Lightning, Line, type LineEndpointValue, type LineNodeProps, type LinearEasingPoint, type LinearGradient, LinearGradientBuilder, type LinearGradientLibraryDef, type LinkTarget, MARKER_HEIGHT, MARKER_VIEWBOX, MARKER_WIDTH, MAX_COORDINATE_PRECISION, MIGRATIONS, type MarkerDescriptor, type MarkerLibraryDef, type Measurement, type Migration, type MorphologyFilter, type MorphologyOperator, type MotionBlurFilter, NGon, type NGonNodeProps, NestedSvg, type NodeTypePropsMap, type NoiseFilter, type OpacityFilter, type OutlineFilter, type OutlinePosition, type ParseOptions, Path, PathCurveType, type PathNodeProps, type PathPoint, PathPointType, PatternBuilder, type PatternElement, type PatternFill, type PatternLibraryDef, type PatternParams, type PatternSvgContentResult, type PatternType, type PixelateFilter, type Point, type PointLightFilter, type PolygonBaseNodeProps, Polyline, type PolylineNodeProps, type RadialGradient, RadialGradientBuilder, type RadialGradientLibraryDef, type RawSvgFilter, Rectangle, type RectangleNodeProps, type RenderOptions, type RichTextData, type RichTextLine, type RichTextSegment, type RichTextSegmentStyle, type RiddledFilter, Ring, type RingNodeProps, type RoundEdgesFilter, type SaturateFilter, type SegmentCurveType, type SepiaFilter, type SerializedAnimationTimeline, type SerializedClipMaskGroup, type SerializedGroup, type SerializedMarkerDef, type SerializedShape, type SerializedSymbolDef, type SerializedVariantAxis, type SerializedViewbox, ShapeBuilder, type ShapeFilter, type ShapeMetadata, ShapeReference, type SharpenFilter, type SpecularLightingFilter, SpeechBubble, Spiral, type SpiralNodeProps, type SpotLightFilter, Square, type SquareNodeProps, Star, type StarNodeProps, type StepPosition, type StepsParams, type StringifyOptions, type StrokeType, type SvgPrimitiveChainFilter, Switch, type SymbolInstanceNodeProps, type SymbolLibraryDef, type TemplateVariable, type TemplateVariableMode, type TemplateVariableSource, type TemplateVariableType, Text, type TextNodeProps, Timeline, Track, type TransferFunc, Triangle, type TriangleNodeProps, type ValidationError, type ValidationResult, type VariableMap, Video, View, type Viewbox, type WarpFilter, type WarpType, type WatercolorFilter, type XrayFilter, collectReferencedLibraryIds, computeArrowVertices, computeCloudPath, computeCrossVertices, computeDashArray, computeGearPath, computeGearVertices, computeHeartPath, computeLightningVertices, computePolygonVertices, computeRectanglePath, computeRingPath, computeSpeechBubbleVertices, computeSpiralPath, computeSplinePath, computeStarVertices, createDocument, createShape, createViewbox, defaultVariableMode, escXml, extractVariables, filterAttr, generateCode, generateCssCode, generateD3Code, generateId, generatePatternSvgContent, generateReactCode, generateSvgCode, generateVueCode, getBuiltInMarkerDefs, getEasingCubicBezier, getEffectivePrecision, getMarkerDescriptors, getPatternElements, linearGradient, migrateSnapshot, parseDocument, parseVariableArgs, pattern, radialGradient, renderAnimationElements, renderBuiltinMarkerDefs, renderCircle, renderEllipse, renderFilterDefs, renderFilterLibraryDef, renderFilterPrimitive, renderFilterPrimitivesForType, renderImage, renderLibraryDef, renderLibraryDefs, renderLine, renderLinearGradientLibraryDef, renderMarkerLibraryDef, renderPatternLibraryDef, renderPolygonShape, renderPolyline, renderRadialGradientLibraryDef, renderRectangle, renderReferencedLibraryDefs, renderShape, renderSpline, renderSvgPrimitiveChainFilter, renderSymbolLibraryDef, renderText, renderToSvg, roundCoord, roundNumberString, roundSerializedShape, roundSnapshot, stringifyDocument, substituteString, substituteVariables, validateSnapshot, verticesToPath };
|