@open-pencil/scene-graph 0.16.0-beta.2 → 0.16.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/color.d.ts CHANGED
@@ -5,6 +5,12 @@ import { DocumentColorSpace, Fill, OkHCLColor, OkHCLColorSpace, OkHCLPayload, Sc
5
5
  declare function compositeOver(foreground: Color, background: Color, alpha?: number): Color;
6
6
  /** WCAG 2 contrast ratio of two colors, from 1 to 21; alpha is ignored, so composite first. */
7
7
  declare function contrastRatio(a: Pick<Color, 'r' | 'g' | 'b'>, b: Pick<Color, 'r' | 'g' | 'b'>): number;
8
+ /**
9
+ * `background` darkened just enough for light `text` to reach `ratio` on it, by scaling its
10
+ * channels toward black, which keeps its hue; returned as it is when the text already does.
11
+ * The default is white text at WCAG AA's 4.5:1 for normal text.
12
+ */
13
+ declare function darkenForContrast(background: Color, text?: Pick<Color, 'r' | 'g' | 'b'>, ratio?: number): Color;
8
14
  /** Black or white, whichever reads better on an opaque `background`. */
9
15
  declare function readableForeground(background: Pick<Color, 'r' | 'g' | 'b'>): Color;
10
16
  //#endregion
@@ -68,5 +74,5 @@ declare function colorToFill(color: string | Color): {
68
74
  };
69
75
  declare function colorDistance(c1: Color, c2: Color): number;
70
76
  //#endregion
71
- export { ColorIntentSpace, ColorPreviewOptions, OkHCLColor, OkHCLColorSpace, OkHCLPayload, RenderColorSpace, ResolvedRenderColor, clearNodeFillOkHCL, clearNodeStrokeOkHCL, colorDistance, colorToCSS, colorToCSSCompact, colorToDisplayCSS, colorToFill, colorToHex, colorToHex8, colorToHexRaw, colorToRgba255, compositeOver, contrastRatio, getDefaultRenderColorSpace, getFillOkHCL, getNodeOkHCLPayloads, getStrokeOkHCL, normalizeColor, okhclToRGBA, parseColor, parseDisplayableColor, parseOkHCLPayload, readableForeground, resolveNodeFillColor, resolveNodeStrokeColor, resolveOkHCLForPreview, resolveRGBAForPreview, rgba255ToColor, rgbaToOkHCL, serializeOkHCLPayload, setNodeFillOkHCL, setNodeStrokeOkHCL, tryParseColor };
77
+ export { ColorIntentSpace, ColorPreviewOptions, OkHCLColor, OkHCLColorSpace, OkHCLPayload, RenderColorSpace, ResolvedRenderColor, clearNodeFillOkHCL, clearNodeStrokeOkHCL, colorDistance, colorToCSS, colorToCSSCompact, colorToDisplayCSS, colorToFill, colorToHex, colorToHex8, colorToHexRaw, colorToRgba255, compositeOver, contrastRatio, darkenForContrast, getDefaultRenderColorSpace, getFillOkHCL, getNodeOkHCLPayloads, getStrokeOkHCL, normalizeColor, okhclToRGBA, parseColor, parseDisplayableColor, parseOkHCLPayload, readableForeground, resolveNodeFillColor, resolveNodeStrokeColor, resolveOkHCLForPreview, resolveRGBAForPreview, rgba255ToColor, rgbaToOkHCL, serializeOkHCLPayload, setNodeFillOkHCL, setNodeStrokeOkHCL, tryParseColor };
72
78
  //# sourceMappingURL=color.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"color.d.ts","names":[],"sources":["../src/color/contrast.ts","../src/color/management.ts","../src/color/normalize.ts","../src/color/index.ts"],"mappings":";;;;iBAMgB,cAAc,YAAY,OAAO,YAAY,OAAO,iBAAuB;;iBAW3E,cACd,GAAG,KAAK,yBACR,GAAG,KAAK;;iBASM,mBAAmB,YAAY,KAAK,0BAA0B;;;KCrBlE;KACA;UAEK;EACf,aAAa;EACb,qBAAqB;;UAGN;EACf,OAAO;EACP;EACA,aAAa;EACb,aAAa;EACb;;iBA0Ec,uBACd,OAAO,YACP,UAAU,sBACT;;;;;;iBA2Da,sBAAsB,gBAAgB;iBAStC,sBACd,OAAO,OACP,UAAU,sBACT;iBAaa,qBACd,MAAM,MACN,mBACA,MAAM,WACN,UAAU,sBACT;iBAMa,uBACd,QAAQ,QACR,qBACA,MAAM,WACN,UAAU,sBACT;iBAMa,kBAAkB,OAAO,OAAO,UAAU;iBAI1C,8BAA8B;;;iBC5M9B,eAAe,QAAQ,QAAQ,SAAS;;;;iBCUxC,cAAc,gBAAgB;;iBAa9B,WAAW,gBAAgB;iBAI3B,WAAW,OAAO;iBAIlB,YAAY,OAAO,OAAO;iBAM1B,cAAc,OAAO;iBAIrB,eAAe,OAAO;;;;;;iBAStB,WAAW,OAAO;iBAIlB,kBAAkB,OAAO;iBAOzB,eAAe,WAAW,WAAW,WAAW,aAAQ;iBAIxD,YAAY,gBAAgB;;;;;;;;;;;iBAY5B,cAAc,IAAI,OAAO,IAAI"}
1
+ {"version":3,"file":"color.d.ts","names":[],"sources":["../src/color/contrast.ts","../src/color/management.ts","../src/color/normalize.ts","../src/color/index.ts"],"mappings":";;;;iBAMgB,cAAc,YAAY,OAAO,YAAY,OAAO,iBAAuB;;iBAW3E,cACd,GAAG,KAAK,yBACR,GAAG,KAAK;;;;;;iBAaM,kBACd,YAAY,OACZ,OAAM,KAAK,yBACX,iBACC;;iBAoBa,mBAAmB,YAAY,KAAK,0BAA0B;;;KCjDlE;KACA;UAEK;EACf,aAAa;EACb,qBAAqB;;UAGN;EACf,OAAO;EACP;EACA,aAAa;EACb,aAAa;EACb;;iBA0Ec,uBACd,OAAO,YACP,UAAU,sBACT;;;;;;iBA2Da,sBAAsB,gBAAgB;iBAStC,sBACd,OAAO,OACP,UAAU,sBACT;iBAaa,qBACd,MAAM,MACN,mBACA,MAAM,WACN,UAAU,sBACT;iBAMa,uBACd,QAAQ,QACR,qBACA,MAAM,WACN,UAAU,sBACT;iBAMa,kBAAkB,OAAO,OAAO,UAAU;iBAI1C,8BAA8B;;;iBC5M9B,eAAe,QAAQ,QAAQ,SAAS;;;;iBCUxC,cAAc,gBAAgB;;iBAa9B,WAAW,gBAAgB;iBAI3B,WAAW,OAAO;iBAIlB,YAAY,OAAO,OAAO;iBAM1B,cAAc,OAAO;iBAIrB,eAAe,OAAO;;;;;;iBAStB,WAAW,OAAO;iBAIlB,kBAAkB,OAAO;iBAOzB,eAAe,WAAW,WAAW,WAAW,aAAQ;iBAIxD,YAAY,gBAAgB;;;;;;;;;;;iBAY5B,cAAc,IAAI,OAAO,IAAI"}
package/dist/color.js CHANGED
@@ -1,3 +1,3 @@
1
1
  import { clearNodeFillOkHCL, clearNodeStrokeOkHCL, colorDistance, colorToCSS, colorToCSSCompact, colorToDisplayCSS, colorToFill, colorToHex, colorToHex8, colorToHexRaw, colorToRgba255, getDefaultRenderColorSpace, getFillOkHCL, getNodeOkHCLPayloads, getStrokeOkHCL, normalizeColor, okhclToRGBA, parseColor, parseDisplayableColor, parseOkHCLPayload, resolveNodeFillColor, resolveNodeStrokeColor, resolveOkHCLForPreview, resolveRGBAForPreview, rgba255ToColor, rgbaToOkHCL, serializeOkHCLPayload, setNodeFillOkHCL, setNodeStrokeOkHCL, tryParseColor } from "./chunks/color/index.js";
2
- import { compositeOver, contrastRatio, readableForeground } from "./chunks/color/contrast.js";
3
- export { clearNodeFillOkHCL, clearNodeStrokeOkHCL, colorDistance, colorToCSS, colorToCSSCompact, colorToDisplayCSS, colorToFill, colorToHex, colorToHex8, colorToHexRaw, colorToRgba255, compositeOver, contrastRatio, getDefaultRenderColorSpace, getFillOkHCL, getNodeOkHCLPayloads, getStrokeOkHCL, normalizeColor, okhclToRGBA, parseColor, parseDisplayableColor, parseOkHCLPayload, readableForeground, resolveNodeFillColor, resolveNodeStrokeColor, resolveOkHCLForPreview, resolveRGBAForPreview, rgba255ToColor, rgbaToOkHCL, serializeOkHCLPayload, setNodeFillOkHCL, setNodeStrokeOkHCL, tryParseColor };
2
+ import { compositeOver, contrastRatio, darkenForContrast, readableForeground } from "./chunks/color/contrast.js";
3
+ export { clearNodeFillOkHCL, clearNodeStrokeOkHCL, colorDistance, colorToCSS, colorToCSSCompact, colorToDisplayCSS, colorToFill, colorToHex, colorToHex8, colorToHexRaw, colorToRgba255, compositeOver, contrastRatio, darkenForContrast, getDefaultRenderColorSpace, getFillOkHCL, getNodeOkHCLPayloads, getStrokeOkHCL, normalizeColor, okhclToRGBA, parseColor, parseDisplayableColor, parseOkHCLPayload, readableForeground, resolveNodeFillColor, resolveNodeStrokeColor, resolveOkHCLForPreview, resolveRGBAForPreview, rgba255ToColor, rgbaToOkHCL, serializeOkHCLPayload, setNodeFillOkHCL, setNodeStrokeOkHCL, tryParseColor };
@@ -1,2 +1,2 @@
1
- import { VisualBounds, VisualBoundsNode, clipBoundsToPolygon, clipPolygon, computeAbsoluteBounds, computeBounds, computeDescendantVisualBounds, computeVisualBounds, degToRad, effectOverflow, geometryBlobBounds, geometryCommandCoordCount, intersectVisualBounds, nodeVisualBounds, polygonVertices, radToDeg, rotatePoint, rotatedBBox, rotatedCorners, strokeOverflow, unionVisualBounds } from "./types.js";
2
- export { VisualBounds, VisualBoundsNode, clipBoundsToPolygon, clipPolygon, computeAbsoluteBounds, computeBounds, computeDescendantVisualBounds, computeVisualBounds, degToRad, effectOverflow, geometryBlobBounds, geometryCommandCoordCount, intersectVisualBounds, nodeVisualBounds, polygonVertices, radToDeg, rotatePoint, rotatedBBox, rotatedCorners, strokeOverflow, unionVisualBounds };
1
+ import { StrokeCorners, VisualBounds, VisualBoundsNode, clipBoundsToPolygon, clipPolygon, computeAbsoluteBounds, computeBounds, computeDescendantVisualBounds, computeVisualBounds, degToRad, effectOverflow, geometryBlobBounds, geometryCommandCoordCount, intersectVisualBounds, nodeVisualBounds, polygonVertices, radToDeg, rotatePoint, rotatedBBox, rotatedCorners, strokeOverflow, unionVisualBounds } from "./types.js";
2
+ export { StrokeCorners, VisualBounds, VisualBoundsNode, clipBoundsToPolygon, clipPolygon, computeAbsoluteBounds, computeBounds, computeDescendantVisualBounds, computeVisualBounds, degToRad, effectOverflow, geometryBlobBounds, geometryCommandCoordCount, intersectVisualBounds, nodeVisualBounds, polygonVertices, radToDeg, rotatePoint, rotatedBBox, rotatedCorners, strokeOverflow, unionVisualBounds };
package/dist/images.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { computeImageHash } from "./images2.js";
2
- export { computeImageHash };
1
+ import { ImageMimeType, computeImageHash, imageMimeType } from "./images2.js";
2
+ export { ImageMimeType, computeImageHash, imageMimeType };
package/dist/images.js CHANGED
@@ -1,44 +1,27 @@
1
+ import { sha1 } from "@noble/hashes/legacy.js";
2
+ import { bytesToHex } from "@noble/hashes/utils.js";
1
3
  //#region src/images.ts
4
+ /**
5
+ * The name an image's bytes are stored under: the hex SHA-1 of the bytes, as Figma names images,
6
+ * so `.fig` files and the Figma clipboard can carry the name as it is. Documents saved before may
7
+ * hold images under other names; anything that hands images to Figma still checks.
8
+ */
2
9
  function computeImageHash(data) {
3
- let h1 = 2166136261;
4
- let h2 = 2166136261;
5
- let h3 = 2166136261;
6
- let h4 = 2166136261;
7
- let h5 = 2166136261;
8
- for (let i = 0; i < data.length; i++) {
9
- const b = data[i];
10
- switch (i % 5) {
11
- case 0:
12
- h1 ^= b;
13
- h1 = Math.imul(h1, 16777619) >>> 0;
14
- break;
15
- case 1:
16
- h2 ^= b;
17
- h2 = Math.imul(h2, 16777619) >>> 0;
18
- break;
19
- case 2:
20
- h3 ^= b;
21
- h3 = Math.imul(h3, 16777619) >>> 0;
22
- break;
23
- case 3:
24
- h4 ^= b;
25
- h4 = Math.imul(h4, 16777619) >>> 0;
26
- break;
27
- default:
28
- h5 ^= b;
29
- h5 = Math.imul(h5, 16777619) >>> 0;
30
- }
31
- }
32
- h5 = Math.imul(h5 ^ data.length, 16777619) >>> 0;
33
- return [
34
- h1,
35
- h2,
36
- h3,
37
- h4,
38
- h5
39
- ].map((hash) => hash.toString(16).padStart(8, "0")).join("");
10
+ return bytesToHex(sha1(data));
11
+ }
12
+ /**
13
+ * The media type of encoded image bytes, read from their signature, for writing them out as a
14
+ * data URL or file. Bytes with no known signature are reported as PNG, as image fills began.
15
+ */
16
+ function imageMimeType(data) {
17
+ if (data[0] === 255 && data[1] === 216 && data[2] === 255) return "image/jpeg";
18
+ if (data[0] === 71 && data[1] === 73 && data[2] === 70) return "image/gif";
19
+ const riff = data[0] === 82 && data[1] === 73 && data[2] === 70 && data[3] === 70;
20
+ const webp = data[8] === 87 && data[9] === 69 && data[10] === 66 && data[11] === 80;
21
+ if (riff && webp) return "image/webp";
22
+ return "image/png";
40
23
  }
41
24
  //#endregion
42
- export { computeImageHash };
25
+ export { computeImageHash, imageMimeType };
43
26
 
44
27
  //# sourceMappingURL=images.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"images.js","names":[],"sources":["../src/images.ts"],"sourcesContent":["export function computeImageHash(data: Uint8Array): string {\n let h1 = 0x811c9dc5 >>> 0\n let h2 = 0x811c9dc5 >>> 0\n let h3 = 0x811c9dc5 >>> 0\n let h4 = 0x811c9dc5 >>> 0\n let h5 = 0x811c9dc5 >>> 0\n for (let i = 0; i < data.length; i++) {\n const b = data[i]\n switch (i % 5) {\n case 0:\n h1 ^= b\n h1 = Math.imul(h1, 0x01000193) >>> 0\n break\n case 1:\n h2 ^= b\n h2 = Math.imul(h2, 0x01000193) >>> 0\n break\n case 2:\n h3 ^= b\n h3 = Math.imul(h3, 0x01000193) >>> 0\n break\n case 3:\n h4 ^= b\n h4 = Math.imul(h4, 0x01000193) >>> 0\n break\n default:\n h5 ^= b\n h5 = Math.imul(h5, 0x01000193) >>> 0\n break\n }\n }\n h5 = Math.imul(h5 ^ data.length, 0x01000193) >>> 0\n return [h1, h2, h3, h4, h5].map((hash) => hash.toString(16).padStart(8, '0')).join('')\n}\n"],"mappings":";AAAA,SAAgB,iBAAiB,MAA0B;CACzD,IAAI,KAAK;CACT,IAAI,KAAK;CACT,IAAI,KAAK;CACT,IAAI,KAAK;CACT,IAAI,KAAK;CACT,KAAK,IAAI,IAAI,GAAG,IAAI,KAAK,QAAQ,KAAK;EACpC,MAAM,IAAI,KAAK;EACf,QAAQ,IAAI,GAAZ;GACE,KAAK;IACH,MAAM;IACN,KAAK,KAAK,KAAK,IAAI,QAAU,MAAM;IACnC;GACF,KAAK;IACH,MAAM;IACN,KAAK,KAAK,KAAK,IAAI,QAAU,MAAM;IACnC;GACF,KAAK;IACH,MAAM;IACN,KAAK,KAAK,KAAK,IAAI,QAAU,MAAM;IACnC;GACF,KAAK;IACH,MAAM;IACN,KAAK,KAAK,KAAK,IAAI,QAAU,MAAM;IACnC;GACF;IACE,MAAM;IACN,KAAK,KAAK,KAAK,IAAI,QAAU,MAAM;EAEvC;CACF;CACA,KAAK,KAAK,KAAK,KAAK,KAAK,QAAQ,QAAU,MAAM;CACjD,OAAO;EAAC;EAAI;EAAI;EAAI;EAAI;CAAE,CAAC,CAAC,KAAK,SAAS,KAAK,SAAS,EAAE,CAAC,CAAC,SAAS,GAAG,GAAG,CAAC,CAAC,CAAC,KAAK,EAAE;AACvF"}
1
+ {"version":3,"file":"images.js","names":[],"sources":["../src/images.ts"],"sourcesContent":["import { sha1 } from '@noble/hashes/legacy.js'\nimport { bytesToHex } from '@noble/hashes/utils.js'\n\n/**\n * The name an image's bytes are stored under: the hex SHA-1 of the bytes, as Figma names images,\n * so `.fig` files and the Figma clipboard can carry the name as it is. Documents saved before may\n * hold images under other names; anything that hands images to Figma still checks.\n */\nexport function computeImageHash(data: Uint8Array): string {\n return bytesToHex(sha1(data))\n}\n\nexport type ImageMimeType = 'image/png' | 'image/jpeg' | 'image/gif' | 'image/webp'\n\n/**\n * The media type of encoded image bytes, read from their signature, for writing them out as a\n * data URL or file. Bytes with no known signature are reported as PNG, as image fills began.\n */\nexport function imageMimeType(data: Uint8Array): ImageMimeType {\n if (data[0] === 0xff && data[1] === 0xd8 && data[2] === 0xff) return 'image/jpeg'\n if (data[0] === 0x47 && data[1] === 0x49 && data[2] === 0x46) return 'image/gif'\n const riff = data[0] === 0x52 && data[1] === 0x49 && data[2] === 0x46 && data[3] === 0x46\n const webp = data[8] === 0x57 && data[9] === 0x45 && data[10] === 0x42 && data[11] === 0x50\n if (riff && webp) return 'image/webp'\n return 'image/png'\n}\n"],"mappings":";;;;;;;;AAQA,SAAgB,iBAAiB,MAA0B;CACzD,OAAO,WAAW,KAAK,IAAI,CAAC;AAC9B;;;;;AAQA,SAAgB,cAAc,MAAiC;CAC7D,IAAI,KAAK,OAAO,OAAQ,KAAK,OAAO,OAAQ,KAAK,OAAO,KAAM,OAAO;CACrE,IAAI,KAAK,OAAO,MAAQ,KAAK,OAAO,MAAQ,KAAK,OAAO,IAAM,OAAO;CACrE,MAAM,OAAO,KAAK,OAAO,MAAQ,KAAK,OAAO,MAAQ,KAAK,OAAO,MAAQ,KAAK,OAAO;CACrF,MAAM,OAAO,KAAK,OAAO,MAAQ,KAAK,OAAO,MAAQ,KAAK,QAAQ,MAAQ,KAAK,QAAQ;CACvF,IAAI,QAAQ,MAAM,OAAO;CACzB,OAAO;AACT"}
package/dist/images2.d.ts CHANGED
@@ -1,5 +1,16 @@
1
1
  //#region src/images.d.ts
2
+ /**
3
+ * The name an image's bytes are stored under: the hex SHA-1 of the bytes, as Figma names images,
4
+ * so `.fig` files and the Figma clipboard can carry the name as it is. Documents saved before may
5
+ * hold images under other names; anything that hands images to Figma still checks.
6
+ */
2
7
  declare function computeImageHash(data: Uint8Array): string;
8
+ type ImageMimeType = 'image/png' | 'image/jpeg' | 'image/gif' | 'image/webp';
9
+ /**
10
+ * The media type of encoded image bytes, read from their signature, for writing them out as a
11
+ * data URL or file. Bytes with no known signature are reported as PNG, as image fills began.
12
+ */
13
+ declare function imageMimeType(data: Uint8Array): ImageMimeType;
3
14
  //#endregion
4
- export { computeImageHash };
15
+ export { ImageMimeType, computeImageHash, imageMimeType };
5
16
  //# sourceMappingURL=images2.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"images2.d.ts","names":[],"sources":["../src/images.ts"],"mappings":";iBAAgB,iBAAiB,MAAM"}
1
+ {"version":3,"file":"images2.d.ts","names":[],"sources":["../src/images.ts"],"mappings":";;;;;;iBAQgB,iBAAiB,MAAM;KAI3B;;;;;iBAMI,cAAc,MAAM,aAAa"}
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { Color, GUID, Size, Vector } from "./primitives2.js";
2
- import { AUTO_LAYOUT_GRID_COUNT, ArcData, AutoLayoutDirection, AxisSizingMode, BEHAVIOUR_CONTRACTS, BEHAVIOUR_KINDS, Behaviour, BehaviourBooleanBinding, BehaviourContract, BehaviourInteractionStates, BehaviourKind, BehaviourNumberSettings, BehaviourPartContract, BehaviourSpec, BehaviourValueContract, BehaviourValueType, BindingScope, BlendMode, CODE_SYNTAX_PLATFORMS, COMMENT_SORTS, CanvasGuide, CharacterStyleOverride, CodeSyntaxPlatform, CollectedSceneMutation, CommentAuthor, CommentListOptions, CommentReply, CommentSort, CommentThread, CommittedGraphEventError, ComponentPropertyDefinition, ComponentPropertyReference, ComponentPropertyReferenceField, ComponentPropertyTarget, ComponentPropertyType, ConstraintType, DEFAULT_NUMBER_SETTINGS, DEFAULT_SLOT_SETTINGS, DerivedTextGlyph, DocumentColorSpace, DropTargetOptions, EXPORT_FORMAT_IDS, Effect, EnabledLibraryBinding, ExportFormatId, ExportSetting, FITTED_CONTAINER_TYPES, FONT_WEIGHT_NAMES, FigmaLayoutMetadata, FigmaSourcePayload, Fill, FillType, FontFamilyStyle, FontFeature, FontVariation, GeometryPath, GradientStop, GradientTransform, GraphTransferInput, GraphTransferPlan, GridPosition, GridTrack, GridTrackSizing, GroupFit, GroupFitOptions, HandleMirroring, HyperlinkTarget, ICON_NAME, ICON_PAINTS, INSTANCE_FOLLOWED_FIELDS, INSTANCE_OVERRIDE_FIELDS, INSTANCE_SYNC_FIELDS, INSTANCE_SYNC_PROPS, INSTANCE_SYNC_TEXT_PROPS, INTERACTION_STATES, Icon, IconPaint, ImageScaleMode, InstanceExposureIssue, InstanceOverrideField, InstanceOverrideReferenceMapper, InstanceOverrideState, InteractionState, LIST_BULLET, LayoutAlign, LayoutAlignSelf, LayoutCounterAlign, LayoutDirection, LayoutGrid, LayoutGuideLine, LayoutGuideSection, LayoutMode, LayoutSizing, LayoutSizingAxis, LayoutWrap, LeadingTrim, LibraryAssetIdentity, LibraryAssetSource, ListNumberFormat, MAX_EXPORT_SCALE, MAX_LIST_INDENTATION, MIN_EXPORT_SCALE, MODE_ATTRIBUTE_PATTERN, MaskType, MutationImpactListener, NodeChangeObserver, NodeCloneMode, NodeTransferReferences, NodeType, NoiseType, NumericNodeProperty, OPEN_PENCIL_PLUGIN_DATA, OPEN_PENCIL_PLUGIN_ID, PLAIN_PARAGRAPH, ParkedSlotContent, ParsedFontStyle, PatternAlignment, PatternTileType, PluginDataEntry, PluginDataField, PluginDataKey, PluginDataRole, PluginRelaunchDataEntry, ROOT_FONT_SIZE_PX, SHARED_TEXT_STYLE_FIELDS, SIZE_FIELDS, SceneGraph, SceneGraphEventHandlers, SceneGraphEvents, SceneMutationImpact, SceneNode, SerializedInstanceOverrideState, SerializedOverrideValue, ShaderComponent, ShaderPaint, ShaderPreset, SharedStyle, SharedStyleKind, SharedStyleType, SlotLimitViolation, SlotPropertyPatch, SlotScope, SlotSettings, SnapGuide, SnapResult, SourceLibraryPublication, SourceMetadata, StoredToken, Stroke, StrokeCap, StrokeJoin, StyleRun, StyleRunReferences, SymbolLink, TEXT_BINDABLE_FIELDS, TEXT_LAYOUT_FIELDS, TEXT_METRIC_FIELDS, TEXT_PARAGRAPH_SPACING_FIELDS, TEXT_SHAPING_FIELDS, TOKEN_UNITS, TRANSFORM_FIELDS, TextAlignVertical, TextAutoResize, TextBindableField, TextBoundVariables, TextCase, TextDecoration, TextDecorationStyle, TextDirection, TextListItem, TextListType, TextParagraphRange, TextParagraphSpacingField, TextParagraphStyle, TextPathData, TokenExpression, TokenUnit, VARIABLE_SCOPES, Variable, VariableCollection, VariableCollectionMode, VariableModeFallback, VariableModeMap, VariableScope, VariableTransferReferences, VariableType, VariableValue, VariantPropSpec, VectorNetwork, VectorRegion, VectorSegment, VectorVertex, VisualBounds, VisualBoundsNode, WindingRule, applyComponentPropertyValue, applyGraphTransfer, aspectRatioLockEditable, assignVariableBindingUnits, autoLayoutSizingFields, behaviourContract, behaviourFromSpec, behaviourOwner, behaviourProperties, behaviourSpecSchema, behaviourToSpec, booleanBinding, byCreatedAt, canCreateInstance, canCreateSlot, captureGraphCheckpoint, captureTransferredState, claimSlotContent, clampExportScale, clearInstanceOverrides, clearSlotContent, clipBoundsToPolygon, clipPolygon, cloneInstanceOverrideState, cloneNodeProps, cloneVectorNetwork, collectSceneMutation, commentAnchor, commentPosition, commentThreadNumbers, commentTimestamp, compareCanvasPosition, componentPropertyDefinitions, componentPropertyOwners, computeAbsoluteBounds, computeBounds, computeDescendantVisualBounds, computeSelectionBounds, computeSnap, computeVisualBounds, contentPluginData, copyDerivedGlyphs, copyEffect, copyEffects, copyFill, copyFills, copyGeometryPaths, copyInstanceComponentProps, copyLayoutGrids, copyStroke, copyStrokes, copyStyleRun, copyStyleRuns, createCommentReply, createCommentThread, createComponentPropertyId, createDefaultNode, createInstanceOverrideState, createSceneMutationImpact, createShaderPaint, createSlotProperty, createsComponentCycle, cycleSafeParent, defaultStrokeAlign, defaultVariant, degToRad, deleteCommentReply, deleteCommentThread, deleteInstanceOverride, deserializeInstanceOverrideState, detachOwnedSlotContent, editCommentThread, effectOverflow, emptyBehaviour, enforcedAspectRatio, exposableInstances, exposedInstances, fillSizingFields, findComponentPropertyTarget, findComponentPropertyTargets, findInstanceAncestor, findLayerByPath, findLiveCommentThread, fitEnclosingGroups, forEachInstanceOverride, formatListNumber, generateId, geometryBlobBounds, geometryCommandCoordCount, getAbsolutePosition, getAbsolutePositionFull, getAbsoluteRotation, getAxisAlignedBoundsInParent, getAxisAlignedWorldBounds, getInstanceOverride, getNodeLocalMatrix, getNodeRotationOrigin, getNodeWorldBounds, getParentToContainerMatrix, getParentWorldMatrix, getSharedStyles, getWorldHandles, getWorldMatrix, guessInteractionStates, guessOnOff, guideOwnersOnPage, hasBehaviour, hasInstanceOverride, hasNewerComments, hasParagraphSpacing, hasPluginData, hasSameCopySource, hasShaderPaint, hasTextList, iconGlyph, iconLayerName, iconNames, iconSchema, iconTintSchema, instanceExposureIssue, instanceMainComponent, instanceSlotFrames, intersectVisualBounds, isAutoGridCount, isExportFormatId, isIconModified, isModeAttributeName, isNumberRange, isNumericVariableBindingField, isPlacedIconName, isPluginDataEntry, isPreferredComponent, isShaderFrameCurrent, isTranslationOnly, isValidExportScale, jsonPluginDataField, layerPath, layoutGridCount, layoutGuideLines, layoutGuideSections, layoutSizing, layoutSizingError, layoutSizingInParent, layoutSizingOptions, layoutSizingUpdates, listCommentThreads, listNumberFormat, liveReplies, localTransformFromWorld, lockedAspectRatioTarget, markCopySource, mergeCommentThreads, mergeVectorNetworks, missingBindings, modesDefaultFirst, mutationLayoutScopeIds, newStrokeGeometry, nodeVisualBounds, nonPreferredLayers, normalizeFontFamily, normalizeFontStyleName, normalizeVectorNetwork, numberSettings, ownsSlotContent, paddingFromShorthand, paragraphCount, paragraphIndexAt, paragraphSpacingAt, paragraphStyleAt, paragraphStylesAfterEdit, paragraphStylesAfterTextChange, paragraphStylesInRange, paragraphStylesWithoutSpacing, parseAutoLayoutDirection, parseCounterAxisAlign, parseFontStyle, parseLayoutAlignSelf, parsePrimaryAxisAlign, partBinding, pluginDataEntry, polygonVertices, prepareGraphTransfer, prepareNodeTransfer, prepareVariableTransfer, radToDeg, readAllPluginData, readBehaviour, readComments, readIcon, readIconTint, readPluginData, readShaderPaints, recapturedAspectRatio, reconcileVariableBindings, recordInstanceOverride, recordSceneMutations, redoGroupFit, remapInstanceOverrideState, remapStyleRunReferences, removeComponentProperty, removeGraphTransfer, renameBehaviourProperties, replyToCommentThread, rescaleNodeTree, resetSlotContent, resolveCommentThread, resolveComponentPropertyValue, resolvedNumericBindings, resolvedPaintBindings, resolvedRunBindings, resolvedValueBindings, restingVariant, restoreOwnedSlotContent, rotatePoint, rotatedBBox, rotatedCorners, scaleGeometryPaths, scaleNodeChanges, serializeInstanceOverrideState, setIdSession, setInstanceOverride, shaderOfPaint, shaderPaintSchema, shaderPresetKey, shaderPresetSchema, sharedParagraphSpacing, sharedStyleRefKey, sharedStyleTypeForKind, sizeKeepingAspectRatio, slotLimitViolations, slotOwner, slotPropertyId, slotScope, strokeOverflow, styleDetachmentChanges, styleRunReferences, styleToVariant, styleToWeight, takesPartInThread, textAutoResizeFor, textBinding, textListItems, textParagraphRanges, textPluginDataField, tokenNumberFromUnit, tokenNumberInUnit, topLevelNumberDigits, transformGeometryBlob, transformGeometryPaths, transformVectorNetwork, trimParagraphStyles, undoGroupFit, unionVisualBounds, updateSlotProperty, validateVectorNetwork, variableBindingOwner, variablesResolvingThrough, variantDefaultValue, vectorNetworksEqual, weightToStyle, withAllPluginData, withBehaviour, withIcon, withIconTint, withIndentation, withListType, withLiveComments, withParagraphSpacing, withPluginData, withShaderPaints, withoutPluginData, writeComments } from "./types.js";
3
- import { computeImageHash } from "./images2.js";
2
+ import { AUTO_LAYOUT_GRID_COUNT, ArcData, AutoLayoutDirection, AxisSizingMode, BEHAVIOUR_CONTRACTS, BEHAVIOUR_KINDS, Behaviour, BehaviourBooleanBinding, BehaviourContract, BehaviourInteractionStates, BehaviourKind, BehaviourNumberSettings, BehaviourPartContract, BehaviourSpec, BehaviourValueContract, BehaviourValueType, BindingScope, BlendMode, CODE_SYNTAX_PLATFORMS, COMMENT_SORTS, CanvasGuide, CharacterStyleOverride, CodeSyntaxPlatform, CollectedSceneMutation, CommentAuthor, CommentListOptions, CommentReply, CommentSort, CommentThread, CommittedGraphEventError, ComponentPropertyDefinition, ComponentPropertyReference, ComponentPropertyReferenceField, ComponentPropertyTarget, ComponentPropertyType, ConstraintType, DEFAULT_NUMBER_SETTINGS, DEFAULT_SLOT_SETTINGS, DerivedTextGlyph, DocumentColorSpace, DropTargetOptions, EXPORT_FORMAT_IDS, Effect, EnabledLibraryBinding, ExportFormatId, ExportSetting, FITTED_CONTAINER_TYPES, FONT_WEIGHT_NAMES, FigmaLayoutMetadata, FigmaSourcePayload, Fill, FillType, FontFamilyStyle, FontFeature, FontVariation, GeometryPath, GradientStop, GradientTransform, GraphTransferInput, GraphTransferPlan, GridPosition, GridTrack, GridTrackSizing, GroupFit, GroupFitOptions, HandleMirroring, HyperlinkTarget, ICON_NAME, ICON_PAINTS, INSTANCE_FOLLOWED_FIELDS, INSTANCE_OVERRIDE_FIELDS, INSTANCE_SYNC_FIELDS, INSTANCE_SYNC_PROPS, INSTANCE_SYNC_TEXT_PROPS, INTERACTION_STATES, Icon, IconPaint, ImageScaleMode, InstanceExposureIssue, InstanceOverrideField, InstanceOverrideReferenceMapper, InstanceOverrideState, InteractionState, LIST_BULLET, LayoutAlign, LayoutAlignSelf, LayoutCounterAlign, LayoutDirection, LayoutGrid, LayoutGuideLine, LayoutGuideSection, LayoutMode, LayoutSizing, LayoutSizingAxis, LayoutWrap, LeadingTrim, LibraryAssetIdentity, LibraryAssetSource, ListNumberFormat, MAX_EXPORT_SCALE, MAX_LIST_INDENTATION, MIN_EXPORT_SCALE, MODE_ATTRIBUTE_PATTERN, MaskType, MutationImpactListener, NodeChangeObserver, NodeCloneMode, NodeTransferReferences, NodeType, NoiseType, NumericNodeProperty, OPEN_PENCIL_PLUGIN_DATA, OPEN_PENCIL_PLUGIN_ID, PLAIN_PARAGRAPH, ParkedSlotContent, ParsedFontStyle, PatternAlignment, PatternTileType, PluginDataEntry, PluginDataField, PluginDataKey, PluginDataRole, PluginRelaunchDataEntry, ROOT_FONT_SIZE_PX, SHARED_TEXT_STYLE_FIELDS, SIZE_FIELDS, SceneGraph, SceneGraphEventHandlers, SceneGraphEvents, SceneMutationImpact, SceneNode, SerializedInstanceOverrideState, SerializedOverrideValue, ShaderComponent, ShaderFrameEncoding, ShaderPaint, ShaderPreset, SharedStyle, SharedStyleKind, SharedStyleType, SlotLimitViolation, SlotPropertyPatch, SlotScope, SlotSettings, SnapGuide, SnapResult, SourceLibraryPublication, SourceMetadata, StoredToken, Stroke, StrokeCap, StrokeCorners, StrokeJoin, StyleRun, StyleRunReferences, SymbolLink, TEXT_BINDABLE_FIELDS, TEXT_LAYOUT_FIELDS, TEXT_METRIC_FIELDS, TEXT_PARAGRAPH_SPACING_FIELDS, TEXT_SHAPING_FIELDS, TOKEN_UNITS, TRANSFORM_FIELDS, TextAlignVertical, TextAutoResize, TextBindableField, TextBoundVariables, TextCase, TextDecoration, TextDecorationStyle, TextDirection, TextListItem, TextListType, TextParagraphRange, TextParagraphSpacingField, TextParagraphStyle, TextPathData, TokenExpression, TokenUnit, VARIABLE_SCOPES, Variable, VariableCollection, VariableCollectionMode, VariableModeFallback, VariableModeMap, VariableScope, VariableTransferReferences, VariableType, VariableValue, VariantPropSpec, VectorNetwork, VectorRegion, VectorSegment, VectorVertex, VisualBounds, VisualBoundsNode, WindingRule, applyComponentPropertyValue, applyGraphTransfer, aspectRatioLockEditable, assignVariableBindingUnits, autoLayoutSizingFields, behaviourContract, behaviourFromSpec, behaviourOwner, behaviourProperties, behaviourSpecSchema, behaviourToSpec, booleanBinding, byCreatedAt, canCreateInstance, canCreateSlot, captureGraphCheckpoint, captureTransferredState, claimSlotContent, clampExportScale, clearInstanceOverrides, clearSlotContent, clipBoundsToPolygon, clipPolygon, cloneInstanceOverrideState, cloneNodeProps, cloneVectorNetwork, collectSceneMutation, collectionsBoundIn, commentAnchor, commentPosition, commentThreadNumbers, commentTimestamp, compareCanvasPosition, componentPropertyDefinitions, componentPropertyOwners, computeAbsoluteBounds, computeBounds, computeDescendantVisualBounds, computeSelectionBounds, computeSnap, computeVisualBounds, contentPluginData, copyDerivedGlyphs, copyEffect, copyEffects, copyFill, copyFills, copyGeometryPaths, copyInstanceComponentProps, copyLayoutGrids, copyStroke, copyStrokes, copyStyleRun, copyStyleRuns, createCommentReply, createCommentThread, createComponentPropertyId, createDefaultNode, createInstanceOverrideState, createSceneMutationImpact, createShaderPaint, createSlotProperty, createsComponentCycle, cycleSafeParent, defaultStrokeAlign, defaultVariant, degToRad, deleteCommentReply, deleteCommentThread, deleteInstanceOverride, derivedAssetKey, derivedAssetVersion, deserializeInstanceOverrideState, detachOwnedSlotContent, editCommentThread, effectOverflow, emptyBehaviour, enforcedAspectRatio, exposableInstances, exposedInstances, fillSizingFields, findComponentPropertyTarget, findComponentPropertyTargets, findInstanceAncestor, findLayerByPath, findLiveCommentThread, fitEnclosingGroups, forEachInstanceOverride, formatListNumber, generateId, geometryBlobBounds, geometryCommandCoordCount, getAbsolutePosition, getAbsolutePositionFull, getAbsoluteRotation, getAxisAlignedBoundsInParent, getAxisAlignedWorldBounds, getInstanceOverride, getNodeLocalMatrix, getNodeRotationOrigin, getNodeWorldBounds, getParentToContainerMatrix, getParentWorldMatrix, getSharedStyles, getWorldHandles, getWorldMatrix, guessInteractionStates, guessOnOff, guideOwnersOnPage, hasBehaviour, hasInstanceOverride, hasNewerComments, hasParagraphSpacing, hasPluginData, hasSameCopySource, hasShaderPaint, hasTextList, iconGlyph, iconLayerName, iconNames, iconSchema, iconTintSchema, instanceExposureIssue, instanceMainComponent, instanceSlotFrames, intersectVisualBounds, isAutoGridCount, isExportFormatId, isIconModified, isLibraryCollection, isModeAttributeName, isNumberRange, isNumericVariableBindingField, isPlacedIconName, isPluginDataEntry, isPreferredComponent, isShaderFrameCurrent, isTranslationOnly, isValidExportScale, jsonPluginDataField, layerPath, layersUsingVariables, layoutGridCount, layoutGuideLines, layoutGuideSections, layoutSizing, layoutSizingError, layoutSizingInParent, layoutSizingOptions, layoutSizingUpdates, listCommentThreads, listNumberFormat, liveReplies, localTransformFromWorld, lockedAspectRatioTarget, markCopySource, mergeCommentThreads, mergeVectorNetworks, missingBindings, modesDefaultFirst, mutationLayoutScopeIds, newStrokeGeometry, nodeVisualBounds, nonPreferredLayers, normalizeFontFamily, normalizeFontStyleName, normalizeVectorNetwork, numberSettings, ownsSlotContent, paddingFromShorthand, paragraphCount, paragraphIndexAt, paragraphSpacingAt, paragraphStyleAt, paragraphStylesAfterEdit, paragraphStylesAfterTextChange, paragraphStylesInRange, paragraphStylesWithoutSpacing, parseAutoLayoutDirection, parseCounterAxisAlign, parseFontStyle, parseLayoutAlignSelf, parsePrimaryAxisAlign, partBinding, pluginDataEntry, polygonVertices, prepareGraphTransfer, prepareNodeTransfer, prepareVariableTransfer, radToDeg, readAllPluginData, readBehaviour, readComments, readIcon, readIconTint, readPluginData, readShaderPaints, recapturedAspectRatio, reconcileVariableBindings, recordInstanceOverride, recordSceneMutations, redoGroupFit, remapInstanceOverrideState, remapStyleRunReferences, removeComponentProperty, removeGraphTransfer, renameBehaviourProperties, replyToCommentThread, rescaleNodeTree, resetSlotContent, resolveCommentThread, resolveComponentPropertyValue, resolvedNumericBindings, resolvedPaintBindings, resolvedRunBindings, resolvedValueBindings, restingVariant, restoreOwnedSlotContent, rotatePoint, rotatedBBox, rotatedCorners, scaleGeometryPaths, scaleNodeChanges, serializeInstanceOverrideState, setIdSession, setInstanceOverride, shaderFrameEncoding, shaderFramePixels, shaderOfPaint, shaderPaintSchema, shaderPresetKey, shaderPresetSchema, sharedParagraphSpacing, sharedStyleRefKey, sharedStyleTypeForKind, sizeKeepingAspectRatio, slotLimitViolations, slotOwner, slotPropertyId, slotScope, strokeOverflow, styleDetachmentChanges, styleRunReferences, styleToVariant, styleToWeight, takesPartInThread, textAutoResizeFor, textBinding, textListItems, textParagraphRanges, textPluginDataField, tokenNumberFromUnit, tokenNumberInUnit, topLevelNumberDigits, transformGeometryBlob, transformGeometryPaths, transformVectorNetwork, trimParagraphStyles, undoGroupFit, unionVisualBounds, updateSlotProperty, validateVectorNetwork, variableBindingOwner, variableText, variablesResolvingThrough, variantDefaultValue, vectorNetworksEqual, weightToStyle, withAllPluginData, withBehaviour, withIcon, withIconTint, withIndentation, withListType, withLiveComments, withParagraphSpacing, withPluginData, withShaderPaints, withoutPluginData, writeComments } from "./types.js";
3
+ import { ImageMimeType, computeImageHash, imageMimeType } from "./images2.js";
4
4
  import { Mat3, Matrix } from "./matrix2.js";
5
5
  import { BLACK, DEFAULT_FONT_FAMILY, DEFAULT_STROKE_MITER_LIMIT, DEFAULT_STROKE_WEIGHT, TRANSPARENT, WHITE } from "./constants2.js";
6
6
  import { DEFAULT_HISTORY_LIMIT, UndoEntry, UndoManager, UndoManagerOptions } from "./undo2.js";
7
- export { AUTO_LAYOUT_GRID_COUNT, ArcData, AutoLayoutDirection, AxisSizingMode, BEHAVIOUR_CONTRACTS, BEHAVIOUR_KINDS, BLACK, type Behaviour, type BehaviourBooleanBinding, BehaviourContract, type BehaviourInteractionStates, BehaviourKind, type BehaviourNumberSettings, BehaviourPartContract, BehaviourSpec, BehaviourValueContract, BehaviourValueType, BindingScope, BlendMode, CODE_SYNTAX_PLATFORMS, COMMENT_SORTS, CanvasGuide, CharacterStyleOverride, CodeSyntaxPlatform, CollectedSceneMutation, type Color, CommentAuthor, CommentListOptions, CommentReply, CommentSort, CommentThread, CommittedGraphEventError, ComponentPropertyDefinition, ComponentPropertyReference, ComponentPropertyReferenceField, ComponentPropertyTarget, ComponentPropertyType, ConstraintType, DEFAULT_FONT_FAMILY, DEFAULT_HISTORY_LIMIT, DEFAULT_NUMBER_SETTINGS, DEFAULT_SLOT_SETTINGS, DEFAULT_STROKE_MITER_LIMIT, DEFAULT_STROKE_WEIGHT, DerivedTextGlyph, DocumentColorSpace, type DropTargetOptions, EXPORT_FORMAT_IDS, Effect, EnabledLibraryBinding, ExportFormatId, ExportSetting, FITTED_CONTAINER_TYPES, FONT_WEIGHT_NAMES, FigmaLayoutMetadata, FigmaSourcePayload, Fill, FillType, FontFamilyStyle, FontFeature, FontVariation, type GUID, GeometryPath, GradientStop, GradientTransform, type GraphTransferInput, type GraphTransferPlan, GridPosition, GridTrack, GridTrackSizing, GroupFit, GroupFitOptions, HandleMirroring, HyperlinkTarget, ICON_NAME, ICON_PAINTS, INSTANCE_FOLLOWED_FIELDS, INSTANCE_OVERRIDE_FIELDS, INSTANCE_SYNC_FIELDS, INSTANCE_SYNC_PROPS, INSTANCE_SYNC_TEXT_PROPS, INTERACTION_STATES, Icon, IconPaint, ImageScaleMode, type InstanceExposureIssue, InstanceOverrideField, InstanceOverrideReferenceMapper, InstanceOverrideState, InteractionState, LIST_BULLET, LayoutAlign, LayoutAlignSelf, LayoutCounterAlign, LayoutDirection, LayoutGrid, LayoutGuideLine, LayoutGuideSection, LayoutMode, LayoutSizing, LayoutSizingAxis, LayoutWrap, LeadingTrim, LibraryAssetIdentity, LibraryAssetSource, ListNumberFormat, MAX_EXPORT_SCALE, MAX_LIST_INDENTATION, MIN_EXPORT_SCALE, MODE_ATTRIBUTE_PATTERN, MaskType, type Mat3, MutationImpactListener, NodeChangeObserver, NodeCloneMode, type NodeTransferReferences, NodeType, NoiseType, NumericNodeProperty, OPEN_PENCIL_PLUGIN_DATA, OPEN_PENCIL_PLUGIN_ID, PLAIN_PARAGRAPH, ParkedSlotContent, ParsedFontStyle, PatternAlignment, PatternTileType, PluginDataEntry, PluginDataField, PluginDataKey, PluginDataRole, PluginRelaunchDataEntry, ROOT_FONT_SIZE_PX, SHARED_TEXT_STYLE_FIELDS, SIZE_FIELDS, SceneGraph, SceneGraphEventHandlers, SceneGraphEvents, SceneMutationImpact, SceneNode, SerializedInstanceOverrideState, SerializedOverrideValue, ShaderComponent, ShaderPaint, ShaderPreset, SharedStyle, SharedStyleKind, SharedStyleType, type Size, SlotLimitViolation, SlotPropertyPatch, SlotScope, SlotSettings, SnapGuide, SnapResult, SourceLibraryPublication, SourceMetadata, StoredToken, Stroke, StrokeCap, StrokeJoin, StyleRun, StyleRunReferences, SymbolLink, TEXT_BINDABLE_FIELDS, TEXT_LAYOUT_FIELDS, TEXT_METRIC_FIELDS, TEXT_PARAGRAPH_SPACING_FIELDS, TEXT_SHAPING_FIELDS, TOKEN_UNITS, TRANSFORM_FIELDS, TRANSPARENT, TextAlignVertical, TextAutoResize, TextBindableField, TextBoundVariables, TextCase, TextDecoration, TextDecorationStyle, TextDirection, TextListItem, TextListType, TextParagraphRange, TextParagraphSpacingField, TextParagraphStyle, TextPathData, TokenExpression, TokenUnit, Matrix as TransformMatrix, type UndoEntry, UndoManager, type UndoManagerOptions, VARIABLE_SCOPES, Variable, VariableCollection, VariableCollectionMode, type VariableModeFallback, VariableModeMap, VariableScope, type VariableTransferReferences, VariableType, VariableValue, VariantPropSpec, type Vector, VectorNetwork, VectorRegion, VectorSegment, VectorVertex, VisualBounds, VisualBoundsNode, WHITE, WindingRule, applyComponentPropertyValue, applyGraphTransfer, aspectRatioLockEditable, assignVariableBindingUnits, autoLayoutSizingFields, behaviourContract, behaviourFromSpec, behaviourOwner, behaviourProperties, behaviourSpecSchema, behaviourToSpec, booleanBinding, byCreatedAt, canCreateInstance, canCreateSlot, captureGraphCheckpoint, captureTransferredState, claimSlotContent, clampExportScale, clearInstanceOverrides, clearSlotContent, clipBoundsToPolygon, clipPolygon, cloneInstanceOverrideState, cloneNodeProps, cloneVectorNetwork, collectSceneMutation, commentAnchor, commentPosition, commentThreadNumbers, commentTimestamp, compareCanvasPosition, componentPropertyDefinitions, componentPropertyOwners, computeAbsoluteBounds, computeBounds, computeDescendantVisualBounds, computeImageHash, computeSelectionBounds, computeSnap, computeVisualBounds, contentPluginData, copyDerivedGlyphs, copyEffect, copyEffects, copyFill, copyFills, copyGeometryPaths, copyInstanceComponentProps, copyLayoutGrids, copyStroke, copyStrokes, copyStyleRun, copyStyleRuns, createCommentReply, createCommentThread, createComponentPropertyId, createDefaultNode, createInstanceOverrideState, createSceneMutationImpact, createShaderPaint, createSlotProperty, createsComponentCycle, cycleSafeParent, defaultStrokeAlign, defaultVariant, degToRad, deleteCommentReply, deleteCommentThread, deleteInstanceOverride, deserializeInstanceOverrideState, detachOwnedSlotContent, editCommentThread, effectOverflow, emptyBehaviour, enforcedAspectRatio, exposableInstances, exposedInstances, fillSizingFields, findComponentPropertyTarget, findComponentPropertyTargets, findInstanceAncestor, findLayerByPath, findLiveCommentThread, fitEnclosingGroups, forEachInstanceOverride, formatListNumber, generateId, geometryBlobBounds, geometryCommandCoordCount, getAbsolutePosition, getAbsolutePositionFull, getAbsoluteRotation, getAxisAlignedBoundsInParent, getAxisAlignedWorldBounds, getInstanceOverride, getNodeLocalMatrix, getNodeRotationOrigin, getNodeWorldBounds, getParentToContainerMatrix, getParentWorldMatrix, getSharedStyles, getWorldHandles, getWorldMatrix, guessInteractionStates, guessOnOff, guideOwnersOnPage, hasBehaviour, hasInstanceOverride, hasNewerComments, hasParagraphSpacing, hasPluginData, hasSameCopySource, hasShaderPaint, hasTextList, iconGlyph, iconLayerName, iconNames, iconSchema, iconTintSchema, instanceExposureIssue, instanceMainComponent, instanceSlotFrames, intersectVisualBounds, isAutoGridCount, isExportFormatId, isIconModified, isModeAttributeName, isNumberRange, isNumericVariableBindingField, isPlacedIconName, isPluginDataEntry, isPreferredComponent, isShaderFrameCurrent, isTranslationOnly, isValidExportScale, jsonPluginDataField, layerPath, layoutGridCount, layoutGuideLines, layoutGuideSections, layoutSizing, layoutSizingError, layoutSizingInParent, layoutSizingOptions, layoutSizingUpdates, listCommentThreads, listNumberFormat, liveReplies, localTransformFromWorld, lockedAspectRatioTarget, markCopySource, mergeCommentThreads, mergeVectorNetworks, missingBindings, modesDefaultFirst, mutationLayoutScopeIds, newStrokeGeometry, nodeVisualBounds, nonPreferredLayers, normalizeFontFamily, normalizeFontStyleName, normalizeVectorNetwork, numberSettings, ownsSlotContent, paddingFromShorthand, paragraphCount, paragraphIndexAt, paragraphSpacingAt, paragraphStyleAt, paragraphStylesAfterEdit, paragraphStylesAfterTextChange, paragraphStylesInRange, paragraphStylesWithoutSpacing, parseAutoLayoutDirection, parseCounterAxisAlign, parseFontStyle, parseLayoutAlignSelf, parsePrimaryAxisAlign, partBinding, pluginDataEntry, polygonVertices, prepareGraphTransfer, prepareNodeTransfer, prepareVariableTransfer, radToDeg, readAllPluginData, readBehaviour, readComments, readIcon, readIconTint, readPluginData, readShaderPaints, recapturedAspectRatio, reconcileVariableBindings, recordInstanceOverride, recordSceneMutations, redoGroupFit, remapInstanceOverrideState, remapStyleRunReferences, removeComponentProperty, removeGraphTransfer, renameBehaviourProperties, replyToCommentThread, rescaleNodeTree, resetSlotContent, resolveCommentThread, resolveComponentPropertyValue, resolvedNumericBindings, resolvedPaintBindings, resolvedRunBindings, resolvedValueBindings, restingVariant, restoreOwnedSlotContent, rotatePoint, rotatedBBox, rotatedCorners, scaleGeometryPaths, scaleNodeChanges, serializeInstanceOverrideState, setIdSession, setInstanceOverride, shaderOfPaint, shaderPaintSchema, shaderPresetKey, shaderPresetSchema, sharedParagraphSpacing, sharedStyleRefKey, sharedStyleTypeForKind, sizeKeepingAspectRatio, slotLimitViolations, slotOwner, slotPropertyId, slotScope, strokeOverflow, styleDetachmentChanges, styleRunReferences, styleToVariant, styleToWeight, takesPartInThread, textAutoResizeFor, textBinding, textListItems, textParagraphRanges, textPluginDataField, tokenNumberFromUnit, tokenNumberInUnit, topLevelNumberDigits, transformGeometryBlob, transformGeometryPaths, transformVectorNetwork, trimParagraphStyles, undoGroupFit, unionVisualBounds, updateSlotProperty, validateVectorNetwork, variableBindingOwner, variablesResolvingThrough, variantDefaultValue, vectorNetworksEqual, weightToStyle, withAllPluginData, withBehaviour, withIcon, withIconTint, withIndentation, withListType, withLiveComments, withParagraphSpacing, withPluginData, withShaderPaints, withoutPluginData, writeComments };
7
+ export { AUTO_LAYOUT_GRID_COUNT, ArcData, AutoLayoutDirection, AxisSizingMode, BEHAVIOUR_CONTRACTS, BEHAVIOUR_KINDS, BLACK, type Behaviour, type BehaviourBooleanBinding, BehaviourContract, type BehaviourInteractionStates, BehaviourKind, type BehaviourNumberSettings, BehaviourPartContract, BehaviourSpec, BehaviourValueContract, BehaviourValueType, BindingScope, BlendMode, CODE_SYNTAX_PLATFORMS, COMMENT_SORTS, CanvasGuide, CharacterStyleOverride, CodeSyntaxPlatform, CollectedSceneMutation, type Color, CommentAuthor, CommentListOptions, CommentReply, CommentSort, CommentThread, CommittedGraphEventError, ComponentPropertyDefinition, ComponentPropertyReference, ComponentPropertyReferenceField, ComponentPropertyTarget, ComponentPropertyType, ConstraintType, DEFAULT_FONT_FAMILY, DEFAULT_HISTORY_LIMIT, DEFAULT_NUMBER_SETTINGS, DEFAULT_SLOT_SETTINGS, DEFAULT_STROKE_MITER_LIMIT, DEFAULT_STROKE_WEIGHT, DerivedTextGlyph, DocumentColorSpace, type DropTargetOptions, EXPORT_FORMAT_IDS, Effect, EnabledLibraryBinding, ExportFormatId, ExportSetting, FITTED_CONTAINER_TYPES, FONT_WEIGHT_NAMES, FigmaLayoutMetadata, FigmaSourcePayload, Fill, FillType, FontFamilyStyle, FontFeature, FontVariation, type GUID, GeometryPath, GradientStop, GradientTransform, type GraphTransferInput, type GraphTransferPlan, GridPosition, GridTrack, GridTrackSizing, GroupFit, GroupFitOptions, HandleMirroring, HyperlinkTarget, ICON_NAME, ICON_PAINTS, INSTANCE_FOLLOWED_FIELDS, INSTANCE_OVERRIDE_FIELDS, INSTANCE_SYNC_FIELDS, INSTANCE_SYNC_PROPS, INSTANCE_SYNC_TEXT_PROPS, INTERACTION_STATES, Icon, IconPaint, ImageMimeType, ImageScaleMode, type InstanceExposureIssue, InstanceOverrideField, InstanceOverrideReferenceMapper, InstanceOverrideState, InteractionState, LIST_BULLET, LayoutAlign, LayoutAlignSelf, LayoutCounterAlign, LayoutDirection, LayoutGrid, LayoutGuideLine, LayoutGuideSection, LayoutMode, LayoutSizing, LayoutSizingAxis, LayoutWrap, LeadingTrim, LibraryAssetIdentity, LibraryAssetSource, ListNumberFormat, MAX_EXPORT_SCALE, MAX_LIST_INDENTATION, MIN_EXPORT_SCALE, MODE_ATTRIBUTE_PATTERN, MaskType, type Mat3, MutationImpactListener, NodeChangeObserver, NodeCloneMode, type NodeTransferReferences, NodeType, NoiseType, NumericNodeProperty, OPEN_PENCIL_PLUGIN_DATA, OPEN_PENCIL_PLUGIN_ID, PLAIN_PARAGRAPH, ParkedSlotContent, ParsedFontStyle, PatternAlignment, PatternTileType, PluginDataEntry, PluginDataField, PluginDataKey, PluginDataRole, PluginRelaunchDataEntry, ROOT_FONT_SIZE_PX, SHARED_TEXT_STYLE_FIELDS, SIZE_FIELDS, SceneGraph, SceneGraphEventHandlers, SceneGraphEvents, SceneMutationImpact, SceneNode, SerializedInstanceOverrideState, SerializedOverrideValue, ShaderComponent, ShaderFrameEncoding, ShaderPaint, ShaderPreset, SharedStyle, SharedStyleKind, SharedStyleType, type Size, SlotLimitViolation, SlotPropertyPatch, SlotScope, SlotSettings, SnapGuide, SnapResult, SourceLibraryPublication, SourceMetadata, StoredToken, Stroke, StrokeCap, StrokeCorners, StrokeJoin, StyleRun, StyleRunReferences, SymbolLink, TEXT_BINDABLE_FIELDS, TEXT_LAYOUT_FIELDS, TEXT_METRIC_FIELDS, TEXT_PARAGRAPH_SPACING_FIELDS, TEXT_SHAPING_FIELDS, TOKEN_UNITS, TRANSFORM_FIELDS, TRANSPARENT, TextAlignVertical, TextAutoResize, TextBindableField, TextBoundVariables, TextCase, TextDecoration, TextDecorationStyle, TextDirection, TextListItem, TextListType, TextParagraphRange, TextParagraphSpacingField, TextParagraphStyle, TextPathData, TokenExpression, TokenUnit, Matrix as TransformMatrix, type UndoEntry, UndoManager, type UndoManagerOptions, VARIABLE_SCOPES, Variable, VariableCollection, VariableCollectionMode, type VariableModeFallback, VariableModeMap, VariableScope, type VariableTransferReferences, VariableType, VariableValue, VariantPropSpec, type Vector, VectorNetwork, VectorRegion, VectorSegment, VectorVertex, VisualBounds, VisualBoundsNode, WHITE, WindingRule, applyComponentPropertyValue, applyGraphTransfer, aspectRatioLockEditable, assignVariableBindingUnits, autoLayoutSizingFields, behaviourContract, behaviourFromSpec, behaviourOwner, behaviourProperties, behaviourSpecSchema, behaviourToSpec, booleanBinding, byCreatedAt, canCreateInstance, canCreateSlot, captureGraphCheckpoint, captureTransferredState, claimSlotContent, clampExportScale, clearInstanceOverrides, clearSlotContent, clipBoundsToPolygon, clipPolygon, cloneInstanceOverrideState, cloneNodeProps, cloneVectorNetwork, collectSceneMutation, collectionsBoundIn, commentAnchor, commentPosition, commentThreadNumbers, commentTimestamp, compareCanvasPosition, componentPropertyDefinitions, componentPropertyOwners, computeAbsoluteBounds, computeBounds, computeDescendantVisualBounds, computeImageHash, computeSelectionBounds, computeSnap, computeVisualBounds, contentPluginData, copyDerivedGlyphs, copyEffect, copyEffects, copyFill, copyFills, copyGeometryPaths, copyInstanceComponentProps, copyLayoutGrids, copyStroke, copyStrokes, copyStyleRun, copyStyleRuns, createCommentReply, createCommentThread, createComponentPropertyId, createDefaultNode, createInstanceOverrideState, createSceneMutationImpact, createShaderPaint, createSlotProperty, createsComponentCycle, cycleSafeParent, defaultStrokeAlign, defaultVariant, degToRad, deleteCommentReply, deleteCommentThread, deleteInstanceOverride, derivedAssetKey, derivedAssetVersion, deserializeInstanceOverrideState, detachOwnedSlotContent, editCommentThread, effectOverflow, emptyBehaviour, enforcedAspectRatio, exposableInstances, exposedInstances, fillSizingFields, findComponentPropertyTarget, findComponentPropertyTargets, findInstanceAncestor, findLayerByPath, findLiveCommentThread, fitEnclosingGroups, forEachInstanceOverride, formatListNumber, generateId, geometryBlobBounds, geometryCommandCoordCount, getAbsolutePosition, getAbsolutePositionFull, getAbsoluteRotation, getAxisAlignedBoundsInParent, getAxisAlignedWorldBounds, getInstanceOverride, getNodeLocalMatrix, getNodeRotationOrigin, getNodeWorldBounds, getParentToContainerMatrix, getParentWorldMatrix, getSharedStyles, getWorldHandles, getWorldMatrix, guessInteractionStates, guessOnOff, guideOwnersOnPage, hasBehaviour, hasInstanceOverride, hasNewerComments, hasParagraphSpacing, hasPluginData, hasSameCopySource, hasShaderPaint, hasTextList, iconGlyph, iconLayerName, iconNames, iconSchema, iconTintSchema, imageMimeType, instanceExposureIssue, instanceMainComponent, instanceSlotFrames, intersectVisualBounds, isAutoGridCount, isExportFormatId, isIconModified, isLibraryCollection, isModeAttributeName, isNumberRange, isNumericVariableBindingField, isPlacedIconName, isPluginDataEntry, isPreferredComponent, isShaderFrameCurrent, isTranslationOnly, isValidExportScale, jsonPluginDataField, layerPath, layersUsingVariables, layoutGridCount, layoutGuideLines, layoutGuideSections, layoutSizing, layoutSizingError, layoutSizingInParent, layoutSizingOptions, layoutSizingUpdates, listCommentThreads, listNumberFormat, liveReplies, localTransformFromWorld, lockedAspectRatioTarget, markCopySource, mergeCommentThreads, mergeVectorNetworks, missingBindings, modesDefaultFirst, mutationLayoutScopeIds, newStrokeGeometry, nodeVisualBounds, nonPreferredLayers, normalizeFontFamily, normalizeFontStyleName, normalizeVectorNetwork, numberSettings, ownsSlotContent, paddingFromShorthand, paragraphCount, paragraphIndexAt, paragraphSpacingAt, paragraphStyleAt, paragraphStylesAfterEdit, paragraphStylesAfterTextChange, paragraphStylesInRange, paragraphStylesWithoutSpacing, parseAutoLayoutDirection, parseCounterAxisAlign, parseFontStyle, parseLayoutAlignSelf, parsePrimaryAxisAlign, partBinding, pluginDataEntry, polygonVertices, prepareGraphTransfer, prepareNodeTransfer, prepareVariableTransfer, radToDeg, readAllPluginData, readBehaviour, readComments, readIcon, readIconTint, readPluginData, readShaderPaints, recapturedAspectRatio, reconcileVariableBindings, recordInstanceOverride, recordSceneMutations, redoGroupFit, remapInstanceOverrideState, remapStyleRunReferences, removeComponentProperty, removeGraphTransfer, renameBehaviourProperties, replyToCommentThread, rescaleNodeTree, resetSlotContent, resolveCommentThread, resolveComponentPropertyValue, resolvedNumericBindings, resolvedPaintBindings, resolvedRunBindings, resolvedValueBindings, restingVariant, restoreOwnedSlotContent, rotatePoint, rotatedBBox, rotatedCorners, scaleGeometryPaths, scaleNodeChanges, serializeInstanceOverrideState, setIdSession, setInstanceOverride, shaderFrameEncoding, shaderFramePixels, shaderOfPaint, shaderPaintSchema, shaderPresetKey, shaderPresetSchema, sharedParagraphSpacing, sharedStyleRefKey, sharedStyleTypeForKind, sizeKeepingAspectRatio, slotLimitViolations, slotOwner, slotPropertyId, slotScope, strokeOverflow, styleDetachmentChanges, styleRunReferences, styleToVariant, styleToWeight, takesPartInThread, textAutoResizeFor, textBinding, textListItems, textParagraphRanges, textPluginDataField, tokenNumberFromUnit, tokenNumberInUnit, topLevelNumberDigits, transformGeometryBlob, transformGeometryPaths, transformVectorNetwork, trimParagraphStyles, undoGroupFit, unionVisualBounds, updateSlotProperty, validateVectorNetwork, variableBindingOwner, variableText, variablesResolvingThrough, variantDefaultValue, vectorNetworksEqual, weightToStyle, withAllPluginData, withBehaviour, withIcon, withIconTint, withIndentation, withListType, withLiveComments, withParagraphSpacing, withPluginData, withShaderPaints, withoutPluginData, writeComments };
package/dist/index.js CHANGED
@@ -1,11 +1,12 @@
1
- import { AUTO_LAYOUT_GRID_COUNT, DEFAULT_SLOT_SETTINGS, LIST_BULLET, ROOT_FONT_SIZE_PX, SHARED_TEXT_STYLE_FIELDS, SceneGraph, applyGraphTransfer, assignVariableBindingUnits, canCreateSlot, captureTransferredState, claimSlotContent, clearSlotContent, collectSceneMutation, computeSelectionBounds, computeSnap, createSceneMutationImpact, createShaderPaint, createSlotProperty, formatListNumber, generateId, getSharedStyles, hasShaderPaint, isAutoGridCount, isPreferredComponent, isShaderFrameCurrent, layoutGridCount, layoutGuideLines, layoutGuideSections, listNumberFormat, modesDefaultFirst, mutationLayoutScopeIds, nonPreferredLayers, prepareGraphTransfer, prepareNodeTransfer, prepareVariableTransfer, readShaderPaints, reconcileVariableBindings, recordSceneMutations, remapStyleRunReferences, removeGraphTransfer, rescaleNodeTree, resetSlotContent, resolvedNumericBindings, resolvedPaintBindings, resolvedRunBindings, resolvedValueBindings, setIdSession, shaderOfPaint, shaderPresetKey, sharedStyleRefKey, sharedStyleTypeForKind, slotLimitViolations, slotOwner, slotScope, styleDetachmentChanges, styleRunReferences, textListItems, tokenNumberFromUnit, tokenNumberInUnit, topLevelNumberDigits, updateSlotProperty, variableBindingOwner, variablesResolvingThrough, withShaderPaints } from "./chunks/index.js";
1
+ import { AUTO_LAYOUT_GRID_COUNT, DEFAULT_SLOT_SETTINGS, LIST_BULLET, ROOT_FONT_SIZE_PX, SHARED_TEXT_STYLE_FIELDS, SceneGraph, applyGraphTransfer, assignVariableBindingUnits, canCreateSlot, captureTransferredState, claimSlotContent, clearSlotContent, collectSceneMutation, collectionsBoundIn, computeSelectionBounds, computeSnap, createSceneMutationImpact, createShaderPaint, createSlotProperty, formatListNumber, generateId, getSharedStyles, hasShaderPaint, isAutoGridCount, isPreferredComponent, isShaderFrameCurrent, layersUsingVariables, layoutGridCount, layoutGuideLines, layoutGuideSections, listNumberFormat, modesDefaultFirst, mutationLayoutScopeIds, nonPreferredLayers, prepareGraphTransfer, prepareNodeTransfer, prepareVariableTransfer, readShaderPaints, reconcileVariableBindings, recordSceneMutations, remapStyleRunReferences, removeGraphTransfer, rescaleNodeTree, resetSlotContent, resolvedNumericBindings, resolvedPaintBindings, resolvedRunBindings, resolvedValueBindings, setIdSession, shaderFrameEncoding, shaderFramePixels, shaderOfPaint, shaderPresetKey, sharedStyleRefKey, sharedStyleTypeForKind, slotLimitViolations, slotOwner, slotScope, styleDetachmentChanges, styleRunReferences, textListItems, tokenNumberFromUnit, tokenNumberInUnit, topLevelNumberDigits, updateSlotProperty, variableBindingOwner, variableText, variablesResolvingThrough, withShaderPaints } from "./chunks/index.js";
2
2
  import { FITTED_CONTAINER_TYPES, clearInstanceOverrides, clipBoundsToPolygon, clipPolygon, cloneInstanceOverrideState, cloneNodeProps, cloneVectorNetwork, computeAbsoluteBounds, computeBounds, computeDescendantVisualBounds, computeVisualBounds, copyDerivedGlyphs, copyEffect, copyEffects, copyFill, copyFills, copyGeometryPaths, copyLayoutGrids, copyStroke, copyStrokes, copyStyleRun, copyStyleRuns, createDefaultNode, createInstanceOverrideState, defaultStrokeAlign, degToRad, deleteInstanceOverride, deserializeInstanceOverrideState, effectOverflow, forEachInstanceOverride, geometryBlobBounds, geometryCommandCoordCount, getInstanceOverride, hasSameCopySource, intersectVisualBounds, markCopySource, mergeVectorNetworks, newStrokeGeometry, nodeVisualBounds, normalizeVectorNetwork, polygonVertices, radToDeg, remapInstanceOverrideState, rotatePoint, rotatedBBox, rotatedCorners, scaleGeometryPaths, serializeInstanceOverrideState, setInstanceOverride, strokeOverflow, transformGeometryBlob, transformGeometryPaths, transformVectorNetwork, unionVisualBounds, validateVectorNetwork, vectorNetworksEqual } from "./chunks/color/index.js";
3
3
  import { BLACK, DEFAULT_FONT_FAMILY, DEFAULT_STROKE_MITER_LIMIT, DEFAULT_STROKE_WEIGHT, TRANSPARENT, WHITE } from "./chunks/color/contrast.js";
4
4
  import { DEFAULT_HISTORY_LIMIT, INSTANCE_FOLLOWED_FIELDS, INSTANCE_OVERRIDE_FIELDS, INSTANCE_SYNC_FIELDS, INSTANCE_SYNC_PROPS, INSTANCE_SYNC_TEXT_PROPS, MAX_LIST_INDENTATION, PLAIN_PARAGRAPH, TEXT_LAYOUT_FIELDS, TEXT_METRIC_FIELDS, TEXT_PARAGRAPH_SPACING_FIELDS, TEXT_SHAPING_FIELDS, UndoManager, applyComponentPropertyValue, aspectRatioLockEditable, autoLayoutSizingFields, canCreateInstance, componentPropertyDefinitions, componentPropertyOwners, copyInstanceComponentProps, createComponentPropertyId, createsComponentCycle, cycleSafeParent, detachOwnedSlotContent, enforcedAspectRatio, exposableInstances, exposedInstances, fillSizingFields, findComponentPropertyTarget, findComponentPropertyTargets, findInstanceAncestor, hasInstanceOverride, hasParagraphSpacing, hasTextList, instanceExposureIssue, instanceMainComponent, instanceSlotFrames, isNumericVariableBindingField, layoutSizing, layoutSizingError, layoutSizingInParent, layoutSizingOptions, layoutSizingUpdates, lockedAspectRatioTarget, ownsSlotContent, paragraphCount, paragraphIndexAt, paragraphSpacingAt, paragraphStyleAt, paragraphStylesAfterEdit, paragraphStylesAfterTextChange, paragraphStylesInRange, paragraphStylesWithoutSpacing, recapturedAspectRatio, recordInstanceOverride, removeComponentProperty, resolveComponentPropertyValue, restoreOwnedSlotContent, scaleNodeChanges, sharedParagraphSpacing, sizeKeepingAspectRatio, slotPropertyId, textAutoResizeFor, textParagraphRanges, trimParagraphStyles, withIndentation, withListType, withParagraphSpacing } from "./chunks/components/exposure.js";
5
- import { CODE_SYNTAX_PLATFORMS, DEFAULT_NUMBER_SETTINGS, EXPORT_FORMAT_IDS, ICON_NAME, ICON_PAINTS, MAX_EXPORT_SCALE, MIN_EXPORT_SCALE, MODE_ATTRIBUTE_PATTERN, OPEN_PENCIL_PLUGIN_DATA, OPEN_PENCIL_PLUGIN_ID, TEXT_BINDABLE_FIELDS, TOKEN_UNITS, VARIABLE_SCOPES, behaviourOwner, behaviourProperties, booleanBinding, clampExportScale, contentPluginData, emptyBehaviour, findLayerByPath, guessInteractionStates, hasBehaviour, hasPluginData, iconSchema, iconTintSchema, isExportFormatId, isModeAttributeName, isNumberRange, isPluginDataEntry, isValidExportScale, jsonPluginDataField, layerPath, missingBindings, numberSettings, partBinding, pluginDataEntry, readAllPluginData, readBehaviour, readPluginData, renameBehaviourProperties, shaderPaintSchema, shaderPresetSchema, textBinding, textPluginDataField, withAllPluginData, withBehaviour, withPluginData, withoutPluginData } from "./chunks/behaviours/layers.js";
5
+ import { CODE_SYNTAX_PLATFORMS, DEFAULT_NUMBER_SETTINGS, EXPORT_FORMAT_IDS, ICON_NAME, ICON_PAINTS, MAX_EXPORT_SCALE, MIN_EXPORT_SCALE, MODE_ATTRIBUTE_PATTERN, OPEN_PENCIL_PLUGIN_DATA, OPEN_PENCIL_PLUGIN_ID, TEXT_BINDABLE_FIELDS, TOKEN_UNITS, VARIABLE_SCOPES, behaviourOwner, behaviourProperties, booleanBinding, clampExportScale, contentPluginData, emptyBehaviour, findLayerByPath, guessInteractionStates, hasBehaviour, hasPluginData, iconSchema, iconTintSchema, isExportFormatId, isLibraryCollection, isModeAttributeName, isNumberRange, isPluginDataEntry, isValidExportScale, jsonPluginDataField, layerPath, missingBindings, numberSettings, partBinding, pluginDataEntry, readAllPluginData, readBehaviour, readPluginData, renameBehaviourProperties, shaderPaintSchema, shaderPresetSchema, textBinding, textPluginDataField, withAllPluginData, withBehaviour, withPluginData, withoutPluginData } from "./chunks/behaviours/layers.js";
6
6
  import { BEHAVIOUR_CONTRACTS, BEHAVIOUR_KINDS, INTERACTION_STATES, behaviourContract } from "./chunks/behaviours/kinds.js";
7
7
  import { SIZE_FIELDS, TRANSFORM_FIELDS } from "./chunks/fields/geometry.js";
8
- import { computeImageHash } from "./images.js";
8
+ import { derivedAssetKey, derivedAssetVersion } from "./chunks/asset-keys.js";
9
+ import { computeImageHash, imageMimeType } from "./images.js";
9
10
  import { COMMENT_SORTS, byCreatedAt, commentAnchor, commentPosition, commentThreadNumbers, commentTimestamp, createCommentReply, createCommentThread, deleteCommentReply, deleteCommentThread, editCommentThread, findLiveCommentThread, listCommentThreads, liveReplies, replyToCommentThread, resolveCommentThread, takesPartInThread } from "./chunks/comments/list.js";
10
11
  import { compareCanvasPosition, defaultVariant, restingVariant, variantDefaultValue } from "./chunks/components/variants.js";
11
12
  import { iconGlyph, iconLayerName, iconNames, isIconModified, isPlacedIconName, readIcon, readIconTint, withIcon, withIconTint } from "./chunks/icons/glyph.js";
@@ -19,4 +20,4 @@ import { guideOwnersOnPage } from "./guides.js";
19
20
  import { FONT_WEIGHT_NAMES, normalizeFontFamily, normalizeFontStyleName, parseFontStyle, styleToVariant, styleToWeight, weightToStyle } from "./chunks/font-style.js";
20
21
  import { CommittedGraphEventError } from "./chunks/buffered-events.js";
21
22
  import { captureGraphCheckpoint } from "./chunks/checkpoint.js";
22
- export { AUTO_LAYOUT_GRID_COUNT, BEHAVIOUR_CONTRACTS, BEHAVIOUR_KINDS, BLACK, CODE_SYNTAX_PLATFORMS, COMMENT_SORTS, CommittedGraphEventError, DEFAULT_FONT_FAMILY, DEFAULT_HISTORY_LIMIT, DEFAULT_NUMBER_SETTINGS, DEFAULT_SLOT_SETTINGS, DEFAULT_STROKE_MITER_LIMIT, DEFAULT_STROKE_WEIGHT, EXPORT_FORMAT_IDS, FITTED_CONTAINER_TYPES, FONT_WEIGHT_NAMES, ICON_NAME, ICON_PAINTS, INSTANCE_FOLLOWED_FIELDS, INSTANCE_OVERRIDE_FIELDS, INSTANCE_SYNC_FIELDS, INSTANCE_SYNC_PROPS, INSTANCE_SYNC_TEXT_PROPS, INTERACTION_STATES, LIST_BULLET, MAX_EXPORT_SCALE, MAX_LIST_INDENTATION, MIN_EXPORT_SCALE, MODE_ATTRIBUTE_PATTERN, OPEN_PENCIL_PLUGIN_DATA, OPEN_PENCIL_PLUGIN_ID, PLAIN_PARAGRAPH, ROOT_FONT_SIZE_PX, SHARED_TEXT_STYLE_FIELDS, SIZE_FIELDS, SceneGraph, TEXT_BINDABLE_FIELDS, TEXT_LAYOUT_FIELDS, TEXT_METRIC_FIELDS, TEXT_PARAGRAPH_SPACING_FIELDS, TEXT_SHAPING_FIELDS, TOKEN_UNITS, TRANSFORM_FIELDS, TRANSPARENT, Matrix as TransformMatrix, UndoManager, VARIABLE_SCOPES, WHITE, applyComponentPropertyValue, applyGraphTransfer, aspectRatioLockEditable, assignVariableBindingUnits, autoLayoutSizingFields, behaviourContract, behaviourFromSpec, behaviourOwner, behaviourProperties, behaviourSpecSchema, behaviourToSpec, booleanBinding, byCreatedAt, canCreateInstance, canCreateSlot, captureGraphCheckpoint, captureTransferredState, claimSlotContent, clampExportScale, clearInstanceOverrides, clearSlotContent, clipBoundsToPolygon, clipPolygon, cloneInstanceOverrideState, cloneNodeProps, cloneVectorNetwork, collectSceneMutation, commentAnchor, commentPosition, commentThreadNumbers, commentTimestamp, compareCanvasPosition, componentPropertyDefinitions, componentPropertyOwners, computeAbsoluteBounds, computeBounds, computeDescendantVisualBounds, computeImageHash, computeSelectionBounds, computeSnap, computeVisualBounds, contentPluginData, copyDerivedGlyphs, copyEffect, copyEffects, copyFill, copyFills, copyGeometryPaths, copyInstanceComponentProps, copyLayoutGrids, copyStroke, copyStrokes, copyStyleRun, copyStyleRuns, createCommentReply, createCommentThread, createComponentPropertyId, createDefaultNode, createInstanceOverrideState, createSceneMutationImpact, createShaderPaint, createSlotProperty, createsComponentCycle, cycleSafeParent, defaultStrokeAlign, defaultVariant, degToRad, deleteCommentReply, deleteCommentThread, deleteInstanceOverride, deserializeInstanceOverrideState, detachOwnedSlotContent, editCommentThread, effectOverflow, emptyBehaviour, enforcedAspectRatio, exposableInstances, exposedInstances, fillSizingFields, findComponentPropertyTarget, findComponentPropertyTargets, findInstanceAncestor, findLayerByPath, findLiveCommentThread, fitEnclosingGroups, forEachInstanceOverride, formatListNumber, generateId, geometryBlobBounds, geometryCommandCoordCount, getAbsolutePosition, getAbsolutePositionFull, getAbsoluteRotation, getAxisAlignedBoundsInParent, getAxisAlignedWorldBounds, getInstanceOverride, getNodeLocalMatrix, getNodeRotationOrigin, getNodeWorldBounds, getParentToContainerMatrix, getParentWorldMatrix, getSharedStyles, getWorldHandles, getWorldMatrix, guessInteractionStates, guessOnOff, guideOwnersOnPage, hasBehaviour, hasInstanceOverride, hasNewerComments, hasParagraphSpacing, hasPluginData, hasSameCopySource, hasShaderPaint, hasTextList, iconGlyph, iconLayerName, iconNames, iconSchema, iconTintSchema, instanceExposureIssue, instanceMainComponent, instanceSlotFrames, intersectVisualBounds, isAutoGridCount, isExportFormatId, isIconModified, isModeAttributeName, isNumberRange, isNumericVariableBindingField, isPlacedIconName, isPluginDataEntry, isPreferredComponent, isShaderFrameCurrent, isTranslationOnly, isValidExportScale, jsonPluginDataField, layerPath, layoutGridCount, layoutGuideLines, layoutGuideSections, layoutSizing, layoutSizingError, layoutSizingInParent, layoutSizingOptions, layoutSizingUpdates, listCommentThreads, listNumberFormat, liveReplies, localTransformFromWorld, lockedAspectRatioTarget, markCopySource, mergeCommentThreads, mergeVectorNetworks, missingBindings, modesDefaultFirst, mutationLayoutScopeIds, newStrokeGeometry, nodeVisualBounds, nonPreferredLayers, normalizeFontFamily, normalizeFontStyleName, normalizeVectorNetwork, numberSettings, ownsSlotContent, paddingFromShorthand, paragraphCount, paragraphIndexAt, paragraphSpacingAt, paragraphStyleAt, paragraphStylesAfterEdit, paragraphStylesAfterTextChange, paragraphStylesInRange, paragraphStylesWithoutSpacing, parseAutoLayoutDirection, parseCounterAxisAlign, parseFontStyle, parseLayoutAlignSelf, parsePrimaryAxisAlign, partBinding, pluginDataEntry, polygonVertices, prepareGraphTransfer, prepareNodeTransfer, prepareVariableTransfer, radToDeg, readAllPluginData, readBehaviour, readComments, readIcon, readIconTint, readPluginData, readShaderPaints, recapturedAspectRatio, reconcileVariableBindings, recordInstanceOverride, recordSceneMutations, redoGroupFit, remapInstanceOverrideState, remapStyleRunReferences, removeComponentProperty, removeGraphTransfer, renameBehaviourProperties, replyToCommentThread, rescaleNodeTree, resetSlotContent, resolveCommentThread, resolveComponentPropertyValue, resolvedNumericBindings, resolvedPaintBindings, resolvedRunBindings, resolvedValueBindings, restingVariant, restoreOwnedSlotContent, rotatePoint, rotatedBBox, rotatedCorners, scaleGeometryPaths, scaleNodeChanges, serializeInstanceOverrideState, setIdSession, setInstanceOverride, shaderOfPaint, shaderPaintSchema, shaderPresetKey, shaderPresetSchema, sharedParagraphSpacing, sharedStyleRefKey, sharedStyleTypeForKind, sizeKeepingAspectRatio, slotLimitViolations, slotOwner, slotPropertyId, slotScope, strokeOverflow, styleDetachmentChanges, styleRunReferences, styleToVariant, styleToWeight, takesPartInThread, textAutoResizeFor, textBinding, textListItems, textParagraphRanges, textPluginDataField, tokenNumberFromUnit, tokenNumberInUnit, topLevelNumberDigits, transformGeometryBlob, transformGeometryPaths, transformVectorNetwork, trimParagraphStyles, undoGroupFit, unionVisualBounds, updateSlotProperty, validateVectorNetwork, variableBindingOwner, variablesResolvingThrough, variantDefaultValue, vectorNetworksEqual, weightToStyle, withAllPluginData, withBehaviour, withIcon, withIconTint, withIndentation, withListType, withLiveComments, withParagraphSpacing, withPluginData, withShaderPaints, withoutPluginData, writeComments };
23
+ export { AUTO_LAYOUT_GRID_COUNT, BEHAVIOUR_CONTRACTS, BEHAVIOUR_KINDS, BLACK, CODE_SYNTAX_PLATFORMS, COMMENT_SORTS, CommittedGraphEventError, DEFAULT_FONT_FAMILY, DEFAULT_HISTORY_LIMIT, DEFAULT_NUMBER_SETTINGS, DEFAULT_SLOT_SETTINGS, DEFAULT_STROKE_MITER_LIMIT, DEFAULT_STROKE_WEIGHT, EXPORT_FORMAT_IDS, FITTED_CONTAINER_TYPES, FONT_WEIGHT_NAMES, ICON_NAME, ICON_PAINTS, INSTANCE_FOLLOWED_FIELDS, INSTANCE_OVERRIDE_FIELDS, INSTANCE_SYNC_FIELDS, INSTANCE_SYNC_PROPS, INSTANCE_SYNC_TEXT_PROPS, INTERACTION_STATES, LIST_BULLET, MAX_EXPORT_SCALE, MAX_LIST_INDENTATION, MIN_EXPORT_SCALE, MODE_ATTRIBUTE_PATTERN, OPEN_PENCIL_PLUGIN_DATA, OPEN_PENCIL_PLUGIN_ID, PLAIN_PARAGRAPH, ROOT_FONT_SIZE_PX, SHARED_TEXT_STYLE_FIELDS, SIZE_FIELDS, SceneGraph, TEXT_BINDABLE_FIELDS, TEXT_LAYOUT_FIELDS, TEXT_METRIC_FIELDS, TEXT_PARAGRAPH_SPACING_FIELDS, TEXT_SHAPING_FIELDS, TOKEN_UNITS, TRANSFORM_FIELDS, TRANSPARENT, Matrix as TransformMatrix, UndoManager, VARIABLE_SCOPES, WHITE, applyComponentPropertyValue, applyGraphTransfer, aspectRatioLockEditable, assignVariableBindingUnits, autoLayoutSizingFields, behaviourContract, behaviourFromSpec, behaviourOwner, behaviourProperties, behaviourSpecSchema, behaviourToSpec, booleanBinding, byCreatedAt, canCreateInstance, canCreateSlot, captureGraphCheckpoint, captureTransferredState, claimSlotContent, clampExportScale, clearInstanceOverrides, clearSlotContent, clipBoundsToPolygon, clipPolygon, cloneInstanceOverrideState, cloneNodeProps, cloneVectorNetwork, collectSceneMutation, collectionsBoundIn, commentAnchor, commentPosition, commentThreadNumbers, commentTimestamp, compareCanvasPosition, componentPropertyDefinitions, componentPropertyOwners, computeAbsoluteBounds, computeBounds, computeDescendantVisualBounds, computeImageHash, computeSelectionBounds, computeSnap, computeVisualBounds, contentPluginData, copyDerivedGlyphs, copyEffect, copyEffects, copyFill, copyFills, copyGeometryPaths, copyInstanceComponentProps, copyLayoutGrids, copyStroke, copyStrokes, copyStyleRun, copyStyleRuns, createCommentReply, createCommentThread, createComponentPropertyId, createDefaultNode, createInstanceOverrideState, createSceneMutationImpact, createShaderPaint, createSlotProperty, createsComponentCycle, cycleSafeParent, defaultStrokeAlign, defaultVariant, degToRad, deleteCommentReply, deleteCommentThread, deleteInstanceOverride, derivedAssetKey, derivedAssetVersion, deserializeInstanceOverrideState, detachOwnedSlotContent, editCommentThread, effectOverflow, emptyBehaviour, enforcedAspectRatio, exposableInstances, exposedInstances, fillSizingFields, findComponentPropertyTarget, findComponentPropertyTargets, findInstanceAncestor, findLayerByPath, findLiveCommentThread, fitEnclosingGroups, forEachInstanceOverride, formatListNumber, generateId, geometryBlobBounds, geometryCommandCoordCount, getAbsolutePosition, getAbsolutePositionFull, getAbsoluteRotation, getAxisAlignedBoundsInParent, getAxisAlignedWorldBounds, getInstanceOverride, getNodeLocalMatrix, getNodeRotationOrigin, getNodeWorldBounds, getParentToContainerMatrix, getParentWorldMatrix, getSharedStyles, getWorldHandles, getWorldMatrix, guessInteractionStates, guessOnOff, guideOwnersOnPage, hasBehaviour, hasInstanceOverride, hasNewerComments, hasParagraphSpacing, hasPluginData, hasSameCopySource, hasShaderPaint, hasTextList, iconGlyph, iconLayerName, iconNames, iconSchema, iconTintSchema, imageMimeType, instanceExposureIssue, instanceMainComponent, instanceSlotFrames, intersectVisualBounds, isAutoGridCount, isExportFormatId, isIconModified, isLibraryCollection, isModeAttributeName, isNumberRange, isNumericVariableBindingField, isPlacedIconName, isPluginDataEntry, isPreferredComponent, isShaderFrameCurrent, isTranslationOnly, isValidExportScale, jsonPluginDataField, layerPath, layersUsingVariables, layoutGridCount, layoutGuideLines, layoutGuideSections, layoutSizing, layoutSizingError, layoutSizingInParent, layoutSizingOptions, layoutSizingUpdates, listCommentThreads, listNumberFormat, liveReplies, localTransformFromWorld, lockedAspectRatioTarget, markCopySource, mergeCommentThreads, mergeVectorNetworks, missingBindings, modesDefaultFirst, mutationLayoutScopeIds, newStrokeGeometry, nodeVisualBounds, nonPreferredLayers, normalizeFontFamily, normalizeFontStyleName, normalizeVectorNetwork, numberSettings, ownsSlotContent, paddingFromShorthand, paragraphCount, paragraphIndexAt, paragraphSpacingAt, paragraphStyleAt, paragraphStylesAfterEdit, paragraphStylesAfterTextChange, paragraphStylesInRange, paragraphStylesWithoutSpacing, parseAutoLayoutDirection, parseCounterAxisAlign, parseFontStyle, parseLayoutAlignSelf, parsePrimaryAxisAlign, partBinding, pluginDataEntry, polygonVertices, prepareGraphTransfer, prepareNodeTransfer, prepareVariableTransfer, radToDeg, readAllPluginData, readBehaviour, readComments, readIcon, readIconTint, readPluginData, readShaderPaints, recapturedAspectRatio, reconcileVariableBindings, recordInstanceOverride, recordSceneMutations, redoGroupFit, remapInstanceOverrideState, remapStyleRunReferences, removeComponentProperty, removeGraphTransfer, renameBehaviourProperties, replyToCommentThread, rescaleNodeTree, resetSlotContent, resolveCommentThread, resolveComponentPropertyValue, resolvedNumericBindings, resolvedPaintBindings, resolvedRunBindings, resolvedValueBindings, restingVariant, restoreOwnedSlotContent, rotatePoint, rotatedBBox, rotatedCorners, scaleGeometryPaths, scaleNodeChanges, serializeInstanceOverrideState, setIdSession, setInstanceOverride, shaderFrameEncoding, shaderFramePixels, shaderOfPaint, shaderPaintSchema, shaderPresetKey, shaderPresetSchema, sharedParagraphSpacing, sharedStyleRefKey, sharedStyleTypeForKind, sizeKeepingAspectRatio, slotLimitViolations, slotOwner, slotPropertyId, slotScope, strokeOverflow, styleDetachmentChanges, styleRunReferences, styleToVariant, styleToWeight, takesPartInThread, textAutoResizeFor, textBinding, textListItems, textParagraphRanges, textPluginDataField, tokenNumberFromUnit, tokenNumberInUnit, topLevelNumberDigits, transformGeometryBlob, transformGeometryPaths, transformVectorNetwork, trimParagraphStyles, undoGroupFit, unionVisualBounds, updateSlotProperty, validateVectorNetwork, variableBindingOwner, variableText, variablesResolvingThrough, variantDefaultValue, vectorNetworksEqual, weightToStyle, withAllPluginData, withBehaviour, withIcon, withIconTint, withIndentation, withListType, withLiveComments, withParagraphSpacing, withPluginData, withShaderPaints, withoutPluginData, writeComments };
package/dist/types.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Color, GUID, Matrix, Rect, Vector } from "./primitives2.js";
1
+ import { Color, GUID, Matrix, Rect, Size, Vector } from "./primitives2.js";
2
2
  import { Mat3 } from "./matrix2.js";
3
3
  import * as v from "valibot";
4
4
  import { Emitter } from "nanoevents";
@@ -80,6 +80,11 @@ declare function assignVariableBindingUnits(graph: SceneGraph, node: SceneNode,
80
80
  * whose stored value differs. A width or height an instance overrides keeps its own value.
81
81
  */
82
82
  declare function resolvedNumericBindings(graph: SceneGraph, node: SceneNode, fallback?: VariableModeFallback): Partial<SceneNode>;
83
+ /**
84
+ * The text a variable bound to text content shows: a string as it is, and a number or boolean
85
+ * as Figma writes it, since Figma lets either be text content.
86
+ */
87
+ declare function variableText(value: VariableValue | undefined): string | undefined;
83
88
  /**
84
89
  * The text and visibility a node's string and boolean bindings resolve to in its mode, for the
85
90
  * fields whose stored value differs. Text or visibility an instance overrides, which typing in a
@@ -106,6 +111,16 @@ type BindingScope = {
106
111
  };
107
112
  /** These variables and every variable that aliases one of them, at any depth and in any mode. */
108
113
  declare function variablesResolvingThrough(graph: SceneGraph, ids: Iterable<string>): Set<string>;
114
+ /**
115
+ * The collections whose variables the layers in these subtrees resolve: those they bind, and
116
+ * those the bound variables alias, so a mode set on the subtrees can change what they show.
117
+ */
118
+ declare function collectionsBoundIn(graph: SceneGraph, roots: Iterable<string>): Set<string>;
119
+ /**
120
+ * The layers a change to these variables reaches: those binding one of them, or a variable that
121
+ * aliases one, on the layer itself or on its characters.
122
+ */
123
+ declare function layersUsingVariables(graph: SceneGraph, ids: Iterable<string>): SceneNode[];
109
124
  /**
110
125
  * Resolve live numeric, text, and visibility bindings, numbers in scene units, without authoring
111
126
  * instance overrides. A scope limits it to the layers a change can reach, so layers whose saved
@@ -410,6 +425,21 @@ declare function deleteInstanceOverride(state: InstanceOverrideState, instanceId
410
425
  declare function clearInstanceOverrides(state: InstanceOverrideState): void;
411
426
  declare function forEachInstanceOverride(state: InstanceOverrideState, callback: (nodeId: string, field: InstanceOverrideField, value: unknown) => void): void;
412
427
  //#endregion
428
+ //#region src/asset-keys.d.ts
429
+ /**
430
+ * A key shaped as Figma's asset keys, 40 hex digits, derived from `seed` so the same seed always
431
+ * gives the same key. The Figma clipboard names variables and collections by key; one made in
432
+ * OpenPencil has none, so copying it gives it this one, and copying it again gives the same.
433
+ */
434
+ declare function derivedAssetKey(seed: string): string;
435
+ /**
436
+ * A version shaped as Figma's asset versions, `session:local`, derived from `content` so that
437
+ * copying an unchanged asset again gives the same version and copying a changed one gives another.
438
+ * Figma keeps the first value it pasted for a key and version, so a version that stayed the same
439
+ * across an edit would bring the old value back.
440
+ */
441
+ declare function derivedAssetVersion(content: string): string;
442
+ //#endregion
413
443
  //#region src/components/properties.d.ts
414
444
  interface ComponentPropertyTarget {
415
445
  node: SceneNode;
@@ -777,6 +807,21 @@ declare function isShaderFrameCurrent(shader: ShaderPaint, size: {
777
807
  height: number;
778
808
  }): boolean;
779
809
  //#endregion
810
+ //#region src/shaders/still.d.ts
811
+ /** The pixels a frame for a layer of `size` is drawn at. */
812
+ declare function shaderFramePixels(size: Size): Size;
813
+ interface ShaderFrameEncoding {
814
+ type: 'image/jpeg' | 'image/png';
815
+ /** For `canvas.toBlob` and `toDataURL`; PNG takes none. */
816
+ quality?: number;
817
+ }
818
+ /**
819
+ * The encoding a frame with these RGBA pixels is stored in: JPEG when every pixel is opaque, which
820
+ * is about 25 times smaller than PNG for a shader, and PNG when any pixel lets the layer behind
821
+ * show through, which JPEG cannot keep.
822
+ */
823
+ declare function shaderFrameEncoding(rgba: ArrayLike<number>): ShaderFrameEncoding;
824
+ //#endregion
780
825
  //#region src/behaviours/layers.d.ts
781
826
  /** Whether an instance's main component, or its set, has a behaviour. */
782
827
  declare function hasBehaviour(graph: SceneGraph, node: SceneNode): boolean;
@@ -1123,11 +1168,11 @@ declare const INSTANCE_SYNC_PROPS: (keyof SceneNode)[];
1123
1168
  * instance ("This property cannot be overridden in an instance"), so its copies always follow.
1124
1169
  * A layer in an auto layout flow takes its position from the layout instead.
1125
1170
  */
1126
- declare const INSTANCE_FOLLOWED_FIELDS: readonly ["x", "y", "rotation", "flipX", "flipY", "horizontalConstraint", "verticalConstraint", "layoutPositioning", "isMask", "maskType", "arcData", "pointCount", "starInnerRadius"];
1171
+ declare const INSTANCE_FOLLOWED_FIELDS: readonly ["x", "y", "rotation", "flipX", "flipY", "horizontalConstraint", "verticalConstraint", "layoutPositioning", "counterAxisAlignContent", "isMask", "maskType", "arcData", "pointCount", "starInnerRadius"];
1127
1172
  /** Fields an edit to a layer inside an instance records as that instance's override. */
1128
1173
  declare const INSTANCE_OVERRIDE_FIELDS: readonly [...(keyof SceneNode)[], "name", "text", "fontSize", "fontWeight", "fontFamily", "italic", "textDirection", "letterSpacing", "lineHeight", "textCase", "textDecoration", "textDecorationStyle", "textDecorationThickness", "textUnderlineOffset", "textDecorationFills", "textDecorationSkipInk", "textAlignHorizontal", "textAlignVertical", "textAutoResize", "textTruncation", "maxLines", "leadingTrim", "paragraphSpacing", "paragraphIndent", "listSpacing", "hangingList", "fontVariations", "fontFeatures", "styleRuns", "textParagraphs", "layoutGrow", "layoutAlignSelf", "locked", "visible"];
1129
1174
  /** Fields a component's layer gives the copies of it in every instance. */
1130
- declare const INSTANCE_SYNC_FIELDS: readonly [...(keyof SceneNode)[], "name", "text", "fontSize", "fontWeight", "fontFamily", "italic", "textDirection", "letterSpacing", "lineHeight", "textCase", "textDecoration", "textDecorationStyle", "textDecorationThickness", "textUnderlineOffset", "textDecorationFills", "textDecorationSkipInk", "textAlignHorizontal", "textAlignVertical", "textAutoResize", "textTruncation", "maxLines", "leadingTrim", "paragraphSpacing", "paragraphIndent", "listSpacing", "hangingList", "fontVariations", "fontFeatures", "styleRuns", "textParagraphs", "layoutGrow", "layoutAlignSelf", "locked", "visible", "x", "y", "rotation", "flipX", "flipY", "horizontalConstraint", "verticalConstraint", "layoutPositioning", "isMask", "maskType", "arcData", "pointCount", "starInnerRadius"];
1175
+ declare const INSTANCE_SYNC_FIELDS: readonly [...(keyof SceneNode)[], "name", "text", "fontSize", "fontWeight", "fontFamily", "italic", "textDirection", "letterSpacing", "lineHeight", "textCase", "textDecoration", "textDecorationStyle", "textDecorationThickness", "textUnderlineOffset", "textDecorationFills", "textDecorationSkipInk", "textAlignHorizontal", "textAlignVertical", "textAutoResize", "textTruncation", "maxLines", "leadingTrim", "paragraphSpacing", "paragraphIndent", "listSpacing", "hangingList", "fontVariations", "fontFeatures", "styleRuns", "textParagraphs", "layoutGrow", "layoutAlignSelf", "locked", "visible", "x", "y", "rotation", "flipX", "flipY", "horizontalConstraint", "verticalConstraint", "layoutPositioning", "counterAxisAlignContent", "isMask", "maskType", "arcData", "pointCount", "starInnerRadius"];
1131
1176
  //#endregion
1132
1177
  //#region src/instances.d.ts
1133
1178
  declare function copyInstanceComponentProps(component: SceneNode): Partial<SceneNode>;
@@ -1552,7 +1597,12 @@ declare function polygonVertices(node: {
1552
1597
  type: string;
1553
1598
  starInnerRadius: number;
1554
1599
  }): Vector[];
1555
- declare function strokeOverflow(strokes?: Stroke[], fallbackCap?: StrokeCap, network?: VectorNetwork | null): number;
1600
+ /** A layer's stroke join and miter limit, for the tips mitered path corners reach. */
1601
+ interface StrokeCorners {
1602
+ strokeJoin?: StrokeJoin;
1603
+ strokeMiterLimit?: number;
1604
+ }
1605
+ declare function strokeOverflow(strokes?: Stroke[], fallbackCap?: StrokeCap, network?: VectorNetwork | null, corners?: StrokeCorners): number;
1556
1606
  declare function effectOverflow(effects?: Effect[]): {
1557
1607
  left: number;
1558
1608
  right: number;
@@ -1573,7 +1623,7 @@ declare function computeVisualBounds(nodes: Iterable<{
1573
1623
  strokeCap?: StrokeCap;
1574
1624
  vectorNetwork?: VectorNetwork | null;
1575
1625
  effects?: Effect[];
1576
- }>, getAbsolutePosition: (id: string) => Vector): Rect;
1626
+ } & StrokeCorners>, getAbsolutePosition: (id: string) => Vector): Rect;
1577
1627
  interface VisualBoundsNode {
1578
1628
  id: string;
1579
1629
  width: number;
@@ -2582,6 +2632,8 @@ interface VariableCollectionMode {
2582
2632
  * at-rule prelude (`@media (max-width: 640px)`). Absent means the default for its axis.
2583
2633
  */
2584
2634
  condition?: string;
2635
+ /** Where Figma lists the mode, as the file saved it; Figma orders a collection's modes by it. */
2636
+ sortPosition?: string;
2585
2637
  }
2586
2638
  interface VariableCollection {
2587
2639
  id: string;
@@ -2596,10 +2648,19 @@ interface VariableCollection {
2596
2648
  */
2597
2649
  modeAttribute?: string;
2598
2650
  pluginData?: PluginDataEntry[];
2651
+ /**
2652
+ * Published library key, for a collection the file copies from a library. Such a collection
2653
+ * belongs to the library: Figma lists it with the library's, not the file's own.
2654
+ */
2655
+ key?: string;
2656
+ /** Published library version, which references by key carry with it. */
2657
+ version?: string;
2599
2658
  }
2659
+ /** Whether a collection is a library's copy, which takes no variables or modes of the file's. */
2660
+ declare function isLibraryCollection(collection: Pick<VariableCollection, 'key'>): boolean;
2600
2661
  /** An HTML attribute name a stylesheet can select on unescaped: `data-theme`, `theme`. */
2601
2662
  declare const MODE_ATTRIBUTE_PATTERN: RegExp;
2602
2663
  declare function isModeAttributeName(name: string): boolean;
2603
2664
  //#endregion
2604
- export { AUTO_LAYOUT_GRID_COUNT, ArcData, AutoLayoutDirection, AxisSizingMode, BEHAVIOUR_CONTRACTS, BEHAVIOUR_KINDS, Behaviour, BehaviourBooleanBinding, BehaviourContract, BehaviourInteractionStates, BehaviourKind, BehaviourNumberSettings, BehaviourPartContract, BehaviourSpec, BehaviourValueContract, BehaviourValueType, BindingScope, BlendMode, CODE_SYNTAX_PLATFORMS, COMMENT_SORTS, CONTAINER_TYPES, CanvasGuide, CharacterStyleOverride, CodeSyntaxPlatform, CollectedSceneMutation, CommentAuthor, CommentListOptions, CommentReply, CommentSort, CommentThread, CommittedGraphEventError, ComponentPropertyDefinition, ComponentPropertyReference, ComponentPropertyReferenceField, ComponentPropertyTarget, ComponentPropertyType, ConstraintType, DEFAULT_NUMBER_SETTINGS, DEFAULT_SLOT_SETTINGS, DerivedTextGlyph, DocumentColorSpace, DropTargetOptions, EXPORT_FORMAT_IDS, Effect, EnabledLibraryBinding, ExportFormatId, ExportSetting, FITTED_CONTAINER_TYPES, FONT_WEIGHT_NAMES, FigmaLayoutMetadata, FigmaSourcePayload, Fill, FillType, FontFamilyStyle, FontFeature, FontVariation, GeometryPath, GradientStop, GradientTransform, GraphTransferInput, GraphTransferPlan, GridPosition, GridTrack, GridTrackSizing, GroupFit, GroupFitOptions, HandleMirroring, HyperlinkTarget, ICON_NAME, ICON_PAINTS, INSTANCE_FOLLOWED_FIELDS, INSTANCE_OVERRIDE_FIELDS, INSTANCE_SYNC_FIELDS, INSTANCE_SYNC_PROPS, INSTANCE_SYNC_TEXT_PROPS, INTERACTION_STATES, Icon, IconPaint, ImageScaleMode, InstanceExposureIssue, InstanceOverrideField, InstanceOverrideReferenceMapper, InstanceOverrideState, InteractionState, LIST_BULLET, LayoutAlign, LayoutAlignSelf, LayoutCounterAlign, LayoutDirection, LayoutGrid, LayoutGuideLine, LayoutGuideSection, LayoutMode, LayoutSizing, LayoutSizingAxis, LayoutWrap, LeadingTrim, LibraryAssetIdentity, LibraryAssetSource, ListNumberFormat, MAX_EXPORT_SCALE, MAX_LIST_INDENTATION, MIN_EXPORT_SCALE, MODE_ATTRIBUTE_PATTERN, MaskType, MutationImpactListener, NodeChangeObserver, NodeCloneMode, NodePreviewObserver, NodeTransferReferences, NodeType, NoiseType, NormalizableVectorNetwork, NumericNodeProperty, OPEN_PENCIL_PLUGIN_DATA, OPEN_PENCIL_PLUGIN_ID, OkHCLColor, OkHCLColorSpace, OkHCLPayload, PLAIN_PARAGRAPH, ParkedSlotContent, ParsedFontStyle, PatternAlignment, PatternTileType, PluginDataEntry, PluginDataField, PluginDataKey, PluginDataRole, PluginRelaunchDataEntry, ROOT_FONT_SIZE_PX, SHARED_TEXT_STYLE_FIELDS, SIZE_FIELDS, SceneGraph, SceneGraphEventHandlers, SceneGraphEvents, SceneMutationImpact, SceneNode, SerializedInstanceOverrideState, SerializedOverrideValue, ShaderComponent, ShaderPaint, ShaderPreset, SharedStyle, SharedStyleKind, SharedStyleType, SlotLimitViolation, SlotPropertyPatch, SlotScope, SlotSettings, SnapGuide, SnapResult, SourceLibraryPublication, SourceMetadata, StoredToken, Stroke, StrokeCap, StrokeJoin, StyleRun, StyleRunReferences, SwapInstanceOptions, SymbolLink, TEXT_BINDABLE_FIELDS, TEXT_LAYOUT_FIELDS, TEXT_METRIC_FIELDS, TEXT_PARAGRAPH_SPACING_FIELDS, TEXT_SHAPING_FIELDS, TOKEN_UNITS, TRANSFORM_FIELDS, TextAlignVertical, TextAutoResize, TextBindableField, TextBoundVariables, TextCase, TextDecoration, TextDecorationStyle, TextDirection, TextListItem, TextListType, TextParagraphRange, TextParagraphSpacingField, TextParagraphStyle, TextPathData, TokenExpression, TokenUnit, VARIABLE_SCOPES, Variable, VariableCollection, VariableCollectionMode, VariableModeFallback, VariableModeMap, VariableScope, VariableTransferReferences, VariableType, VariableValue, VariantPropSpec, VectorNetwork, VectorRegion, VectorSegment, VectorVertex, VisualBounds, VisualBoundsNode, WindingRule, addCollection, addMode, addVariable, applyComponentPropertyValue, applyGraphTransfer, aspectRatioLockEditable, assignVariableBindingUnits, autoLayoutSizingFields, behaviourContract, behaviourFromSpec, behaviourOwner, behaviourProperties, behaviourSpecSchema, behaviourToSpec, bindVariable, booleanBinding, byCreatedAt, canCreateInstance, canCreateSlot, captureGraphCheckpoint, captureTransferredState, claimSlotContent, clampExportScale, clearInstanceOverrides, clearNodeFillOkHCL, clearNodeStrokeOkHCL, clearSlotContent, clipBoundsToPolygon, clipPolygon, cloneInstanceOverrideState, cloneNodeProps, cloneVectorNetwork, collectSceneMutation, commentAnchor, commentPosition, commentThreadNumbers, commentTimestamp, compareCanvasPosition, componentPropertyDefinitions, componentPropertyOwners, computeAbsoluteBounds, computeBounds, computeDescendantVisualBounds, computeSelectionBounds, computeSnap, computeVisualBounds, contentPluginData, copyDerivedGlyphs, copyEffect, copyEffects, copyFill, copyFills, copyGeometryPaths, copyInstanceComponentProps, copyLayoutGrids, copyStroke, copyStrokes, copyStyleRun, copyStyleRuns, createCollection, createCommentReply, createCommentThread, createComponentPropertyId, createDefaultNode, createDefaultSourceMetadata, createInstance, createInstanceOverrideState, createMode, createSceneMutationImpact, createShaderPaint, createSlotProperty, createVariable, createsComponentCycle, cycleSafeParent, defaultStrokeAlign, defaultVariant, degToRad, deleteCommentReply, deleteCommentThread, deleteInstanceOverride, deserializeInstanceOverrideState, detachInstance, detachOwnedSlotContent, editCommentThread, effectOverflow, emptyBehaviour, enforcedAspectRatio, exposableInstances, exposedInstances, fillSizingFields, findComponentPropertyTarget, findComponentPropertyTargets, findInstanceAncestor, findLayerByPath, findLiveCommentThread, fitEnclosingGroups, forEachInstanceOverride, formatListNumber, generateId, geometryBlobBounds, geometryCommandCoordCount, getAbsolutePosition, getAbsolutePositionFull, getAbsoluteRotation, getActiveModeId, getAxisAlignedBoundsInParent, getAxisAlignedWorldBounds, getFillOkHCL, getInstanceOverride, getInstances, getMainComponent, getNodeLocalMatrix, getNodeOkHCLPayloads, getNodeRotationOrigin, getNodeVariableModeId, getNodeWorldBounds, getParentToContainerMatrix, getParentWorldMatrix, getSharedStyles, getStrokeOkHCL, getVariablesByType, getVariablesForCollection, getWorldHandles, getWorldMatrix, guessInteractionStates, guessOnOff, guideOwnersOnPage, hasBehaviour, hasInstanceOverride, hasNewerComments, hasParagraphSpacing, hasPluginData, hasSameCopySource, hasShaderPaint, hasTextList, hitTest, hitTestDeep, hitTestDropTarget, hitTestOpenContainer, hitTestSelectable, iconGlyph, iconLayerName, iconNames, iconSchema, iconTintSchema, instanceExposureIssue, instanceMainComponent, instanceSlotFrames, intersectVisualBounds, isAutoGridCount, isExportFormatId, isIconModified, isModeAttributeName, isNumberRange, isNumericVariableBindingField, isOpenContainer, isPlacedIconName, isPluginDataEntry, isPointInNode, isPreferredComponent, isShaderFrameCurrent, isTranslationOnly, isValidExportScale, jsonPluginDataField, layerPath, layoutGridCount, layoutGuideLines, layoutGuideSections, layoutSizing, layoutSizingError, layoutSizingInParent, layoutSizingOptions, layoutSizingUpdates, listCommentThreads, listNumberFormat, liveReplies, localTransformFromWorld, lockedAspectRatioTarget, markCopySource, mergeCommentThreads, mergeVectorNetworks, missingBindings, modesDefaultFirst, mutationLayoutScopeIds, newStrokeGeometry, nodeVisualBounds, nonPreferredLayers, normalizeFontFamily, normalizeFontStyleName, normalizeVectorNetwork, numberSettings, okhclToRGBA, ownsSlotContent, paddingFromShorthand, paragraphCount, paragraphIndexAt, paragraphSpacingAt, paragraphStyleAt, paragraphStylesAfterEdit, paragraphStylesAfterTextChange, paragraphStylesInRange, paragraphStylesWithoutSpacing, parseAutoLayoutDirection, parseCounterAxisAlign, parseFontStyle, parseLayoutAlignSelf, parseOkHCLPayload, parsePrimaryAxisAlign, partBinding, pluginDataEntry, polygonVertices, populateInstanceChildren, prepareGraphTransfer, prepareNodeTransfer, prepareVariableTransfer, radToDeg, readAllPluginData, readBehaviour, readComments, readIcon, readIconTint, readPluginData, readShaderPaints, recapturedAspectRatio, reconcileVariableBindings, recordInstanceOverride, recordSceneMutations, redoGroupFit, remapInstanceOverrideState, remapStyleRunReferences, removeCollection, removeComponentProperty, removeGraphTransfer, removeMode, removeVariable, renameBehaviourProperties, renameMode, replyToCommentThread, rescaleNodeTree, resetSlotContent, resolveColorVariable, resolveColorVariableForNode, resolveCommentThread, resolveComponentPropertyValue, resolveNumberVariable, resolveNumberVariableForNode, resolveStringVariableForNode, resolveVariable, resolveVariableForNode, resolvedNumericBindings, resolvedPaintBindings, resolvedRunBindings, resolvedValueBindings, restingVariant, restoreOwnedSlotContent, rgbaToOkHCL, rotatePoint, rotatedBBox, rotatedCorners, scaleGeometryPaths, scaleNodeChanges, serializeInstanceOverrideState, serializeOkHCLPayload, setActiveMode, setDefaultMode, setIdSession, setInstanceOverride, setNodeFillOkHCL, setNodeStrokeOkHCL, shaderOfPaint, shaderPaintSchema, shaderPresetKey, shaderPresetSchema, sharedParagraphSpacing, sharedStyleRefKey, sharedStyleTypeForKind, sizeKeepingAspectRatio, slotLimitViolations, slotOwner, slotPropertyId, slotScope, strokeOverflow, styleDetachmentChanges, styleRunReferences, styleToVariant, styleToWeight, swapInstanceComponent, syncInstance, syncInstances, syncInstancesTogether, takesPartInThread, textAutoResizeFor, textBinding, textListItems, textParagraphRanges, textPluginDataField, tokenNumberFromUnit, tokenNumberInUnit, topLevelNumberDigits, transformGeometryBlob, transformGeometryPaths, transformVectorNetwork, trimParagraphStyles, unbindVariable, undoGroupFit, unionVisualBounds, updateNodePreview, updateSlotProperty, validateVectorNetwork, variableBindingOwner, variablesResolvingThrough, variantDefaultValue, vectorNetworksEqual, weightToStyle, withAllPluginData, withBehaviour, withIcon, withIconTint, withIndentation, withListType, withLiveComments, withParagraphSpacing, withPluginData, withShaderPaints, withoutPluginData, writeComments };
2665
+ export { AUTO_LAYOUT_GRID_COUNT, ArcData, AutoLayoutDirection, AxisSizingMode, BEHAVIOUR_CONTRACTS, BEHAVIOUR_KINDS, Behaviour, BehaviourBooleanBinding, BehaviourContract, BehaviourInteractionStates, BehaviourKind, BehaviourNumberSettings, BehaviourPartContract, BehaviourSpec, BehaviourValueContract, BehaviourValueType, BindingScope, BlendMode, CODE_SYNTAX_PLATFORMS, COMMENT_SORTS, CONTAINER_TYPES, CanvasGuide, CharacterStyleOverride, CodeSyntaxPlatform, CollectedSceneMutation, CommentAuthor, CommentListOptions, CommentReply, CommentSort, CommentThread, CommittedGraphEventError, ComponentPropertyDefinition, ComponentPropertyReference, ComponentPropertyReferenceField, ComponentPropertyTarget, ComponentPropertyType, ConstraintType, DEFAULT_NUMBER_SETTINGS, DEFAULT_SLOT_SETTINGS, DerivedTextGlyph, DocumentColorSpace, DropTargetOptions, EXPORT_FORMAT_IDS, Effect, EnabledLibraryBinding, ExportFormatId, ExportSetting, FITTED_CONTAINER_TYPES, FONT_WEIGHT_NAMES, FigmaLayoutMetadata, FigmaSourcePayload, Fill, FillType, FontFamilyStyle, FontFeature, FontVariation, GeometryPath, GradientStop, GradientTransform, GraphTransferInput, GraphTransferPlan, GridPosition, GridTrack, GridTrackSizing, GroupFit, GroupFitOptions, HandleMirroring, HyperlinkTarget, ICON_NAME, ICON_PAINTS, INSTANCE_FOLLOWED_FIELDS, INSTANCE_OVERRIDE_FIELDS, INSTANCE_SYNC_FIELDS, INSTANCE_SYNC_PROPS, INSTANCE_SYNC_TEXT_PROPS, INTERACTION_STATES, Icon, IconPaint, ImageScaleMode, InstanceExposureIssue, InstanceOverrideField, InstanceOverrideReferenceMapper, InstanceOverrideState, InteractionState, LIST_BULLET, LayoutAlign, LayoutAlignSelf, LayoutCounterAlign, LayoutDirection, LayoutGrid, LayoutGuideLine, LayoutGuideSection, LayoutMode, LayoutSizing, LayoutSizingAxis, LayoutWrap, LeadingTrim, LibraryAssetIdentity, LibraryAssetSource, ListNumberFormat, MAX_EXPORT_SCALE, MAX_LIST_INDENTATION, MIN_EXPORT_SCALE, MODE_ATTRIBUTE_PATTERN, MaskType, MutationImpactListener, NodeChangeObserver, NodeCloneMode, NodePreviewObserver, NodeTransferReferences, NodeType, NoiseType, NormalizableVectorNetwork, NumericNodeProperty, OPEN_PENCIL_PLUGIN_DATA, OPEN_PENCIL_PLUGIN_ID, OkHCLColor, OkHCLColorSpace, OkHCLPayload, PLAIN_PARAGRAPH, ParkedSlotContent, ParsedFontStyle, PatternAlignment, PatternTileType, PluginDataEntry, PluginDataField, PluginDataKey, PluginDataRole, PluginRelaunchDataEntry, ROOT_FONT_SIZE_PX, SHARED_TEXT_STYLE_FIELDS, SIZE_FIELDS, SceneGraph, SceneGraphEventHandlers, SceneGraphEvents, SceneMutationImpact, SceneNode, SerializedInstanceOverrideState, SerializedOverrideValue, ShaderComponent, ShaderFrameEncoding, ShaderPaint, ShaderPreset, SharedStyle, SharedStyleKind, SharedStyleType, SlotLimitViolation, SlotPropertyPatch, SlotScope, SlotSettings, SnapGuide, SnapResult, SourceLibraryPublication, SourceMetadata, StoredToken, Stroke, StrokeCap, StrokeCorners, StrokeJoin, StyleRun, StyleRunReferences, SwapInstanceOptions, SymbolLink, TEXT_BINDABLE_FIELDS, TEXT_LAYOUT_FIELDS, TEXT_METRIC_FIELDS, TEXT_PARAGRAPH_SPACING_FIELDS, TEXT_SHAPING_FIELDS, TOKEN_UNITS, TRANSFORM_FIELDS, TextAlignVertical, TextAutoResize, TextBindableField, TextBoundVariables, TextCase, TextDecoration, TextDecorationStyle, TextDirection, TextListItem, TextListType, TextParagraphRange, TextParagraphSpacingField, TextParagraphStyle, TextPathData, TokenExpression, TokenUnit, VARIABLE_SCOPES, Variable, VariableCollection, VariableCollectionMode, VariableModeFallback, VariableModeMap, VariableScope, VariableTransferReferences, VariableType, VariableValue, VariantPropSpec, VectorNetwork, VectorRegion, VectorSegment, VectorVertex, VisualBounds, VisualBoundsNode, WindingRule, addCollection, addMode, addVariable, applyComponentPropertyValue, applyGraphTransfer, aspectRatioLockEditable, assignVariableBindingUnits, autoLayoutSizingFields, behaviourContract, behaviourFromSpec, behaviourOwner, behaviourProperties, behaviourSpecSchema, behaviourToSpec, bindVariable, booleanBinding, byCreatedAt, canCreateInstance, canCreateSlot, captureGraphCheckpoint, captureTransferredState, claimSlotContent, clampExportScale, clearInstanceOverrides, clearNodeFillOkHCL, clearNodeStrokeOkHCL, clearSlotContent, clipBoundsToPolygon, clipPolygon, cloneInstanceOverrideState, cloneNodeProps, cloneVectorNetwork, collectSceneMutation, collectionsBoundIn, commentAnchor, commentPosition, commentThreadNumbers, commentTimestamp, compareCanvasPosition, componentPropertyDefinitions, componentPropertyOwners, computeAbsoluteBounds, computeBounds, computeDescendantVisualBounds, computeSelectionBounds, computeSnap, computeVisualBounds, contentPluginData, copyDerivedGlyphs, copyEffect, copyEffects, copyFill, copyFills, copyGeometryPaths, copyInstanceComponentProps, copyLayoutGrids, copyStroke, copyStrokes, copyStyleRun, copyStyleRuns, createCollection, createCommentReply, createCommentThread, createComponentPropertyId, createDefaultNode, createDefaultSourceMetadata, createInstance, createInstanceOverrideState, createMode, createSceneMutationImpact, createShaderPaint, createSlotProperty, createVariable, createsComponentCycle, cycleSafeParent, defaultStrokeAlign, defaultVariant, degToRad, deleteCommentReply, deleteCommentThread, deleteInstanceOverride, derivedAssetKey, derivedAssetVersion, deserializeInstanceOverrideState, detachInstance, detachOwnedSlotContent, editCommentThread, effectOverflow, emptyBehaviour, enforcedAspectRatio, exposableInstances, exposedInstances, fillSizingFields, findComponentPropertyTarget, findComponentPropertyTargets, findInstanceAncestor, findLayerByPath, findLiveCommentThread, fitEnclosingGroups, forEachInstanceOverride, formatListNumber, generateId, geometryBlobBounds, geometryCommandCoordCount, getAbsolutePosition, getAbsolutePositionFull, getAbsoluteRotation, getActiveModeId, getAxisAlignedBoundsInParent, getAxisAlignedWorldBounds, getFillOkHCL, getInstanceOverride, getInstances, getMainComponent, getNodeLocalMatrix, getNodeOkHCLPayloads, getNodeRotationOrigin, getNodeVariableModeId, getNodeWorldBounds, getParentToContainerMatrix, getParentWorldMatrix, getSharedStyles, getStrokeOkHCL, getVariablesByType, getVariablesForCollection, getWorldHandles, getWorldMatrix, guessInteractionStates, guessOnOff, guideOwnersOnPage, hasBehaviour, hasInstanceOverride, hasNewerComments, hasParagraphSpacing, hasPluginData, hasSameCopySource, hasShaderPaint, hasTextList, hitTest, hitTestDeep, hitTestDropTarget, hitTestOpenContainer, hitTestSelectable, iconGlyph, iconLayerName, iconNames, iconSchema, iconTintSchema, instanceExposureIssue, instanceMainComponent, instanceSlotFrames, intersectVisualBounds, isAutoGridCount, isExportFormatId, isIconModified, isLibraryCollection, isModeAttributeName, isNumberRange, isNumericVariableBindingField, isOpenContainer, isPlacedIconName, isPluginDataEntry, isPointInNode, isPreferredComponent, isShaderFrameCurrent, isTranslationOnly, isValidExportScale, jsonPluginDataField, layerPath, layersUsingVariables, layoutGridCount, layoutGuideLines, layoutGuideSections, layoutSizing, layoutSizingError, layoutSizingInParent, layoutSizingOptions, layoutSizingUpdates, listCommentThreads, listNumberFormat, liveReplies, localTransformFromWorld, lockedAspectRatioTarget, markCopySource, mergeCommentThreads, mergeVectorNetworks, missingBindings, modesDefaultFirst, mutationLayoutScopeIds, newStrokeGeometry, nodeVisualBounds, nonPreferredLayers, normalizeFontFamily, normalizeFontStyleName, normalizeVectorNetwork, numberSettings, okhclToRGBA, ownsSlotContent, paddingFromShorthand, paragraphCount, paragraphIndexAt, paragraphSpacingAt, paragraphStyleAt, paragraphStylesAfterEdit, paragraphStylesAfterTextChange, paragraphStylesInRange, paragraphStylesWithoutSpacing, parseAutoLayoutDirection, parseCounterAxisAlign, parseFontStyle, parseLayoutAlignSelf, parseOkHCLPayload, parsePrimaryAxisAlign, partBinding, pluginDataEntry, polygonVertices, populateInstanceChildren, prepareGraphTransfer, prepareNodeTransfer, prepareVariableTransfer, radToDeg, readAllPluginData, readBehaviour, readComments, readIcon, readIconTint, readPluginData, readShaderPaints, recapturedAspectRatio, reconcileVariableBindings, recordInstanceOverride, recordSceneMutations, redoGroupFit, remapInstanceOverrideState, remapStyleRunReferences, removeCollection, removeComponentProperty, removeGraphTransfer, removeMode, removeVariable, renameBehaviourProperties, renameMode, replyToCommentThread, rescaleNodeTree, resetSlotContent, resolveColorVariable, resolveColorVariableForNode, resolveCommentThread, resolveComponentPropertyValue, resolveNumberVariable, resolveNumberVariableForNode, resolveStringVariableForNode, resolveVariable, resolveVariableForNode, resolvedNumericBindings, resolvedPaintBindings, resolvedRunBindings, resolvedValueBindings, restingVariant, restoreOwnedSlotContent, rgbaToOkHCL, rotatePoint, rotatedBBox, rotatedCorners, scaleGeometryPaths, scaleNodeChanges, serializeInstanceOverrideState, serializeOkHCLPayload, setActiveMode, setDefaultMode, setIdSession, setInstanceOverride, setNodeFillOkHCL, setNodeStrokeOkHCL, shaderFrameEncoding, shaderFramePixels, shaderOfPaint, shaderPaintSchema, shaderPresetKey, shaderPresetSchema, sharedParagraphSpacing, sharedStyleRefKey, sharedStyleTypeForKind, sizeKeepingAspectRatio, slotLimitViolations, slotOwner, slotPropertyId, slotScope, strokeOverflow, styleDetachmentChanges, styleRunReferences, styleToVariant, styleToWeight, swapInstanceComponent, syncInstance, syncInstances, syncInstancesTogether, takesPartInThread, textAutoResizeFor, textBinding, textListItems, textParagraphRanges, textPluginDataField, tokenNumberFromUnit, tokenNumberInUnit, topLevelNumberDigits, transformGeometryBlob, transformGeometryPaths, transformVectorNetwork, trimParagraphStyles, unbindVariable, undoGroupFit, unionVisualBounds, updateNodePreview, updateSlotProperty, validateVectorNetwork, variableBindingOwner, variableText, variablesResolvingThrough, variantDefaultValue, vectorNetworksEqual, weightToStyle, withAllPluginData, withBehaviour, withIcon, withIconTint, withIndentation, withListType, withLiveComments, withParagraphSpacing, withPluginData, withShaderPaints, withoutPluginData, writeComments };
2605
2666
  //# sourceMappingURL=types.d.ts.map