@open-pencil/scene-graph 0.16.0-beta.1 → 0.16.0-beta.3

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.
Files changed (59) hide show
  1. package/dist/chunks/asset-keys.js +27 -0
  2. package/dist/chunks/asset-keys.js.map +1 -0
  3. package/dist/chunks/behaviours/layers.js +16 -1
  4. package/dist/chunks/behaviours/layers.js.map +1 -1
  5. package/dist/chunks/color/contrast.js +23 -1
  6. package/dist/chunks/color/contrast.js.map +1 -1
  7. package/dist/chunks/color/index.js +43 -4
  8. package/dist/chunks/color/index.js.map +1 -1
  9. package/dist/chunks/components/exposure.js +273 -3
  10. package/dist/chunks/components/exposure.js.map +1 -1
  11. package/dist/chunks/index.js +247 -150
  12. package/dist/chunks/index.js.map +1 -1
  13. package/dist/color.d.ts +7 -1
  14. package/dist/color.d.ts.map +1 -1
  15. package/dist/color.js +2 -2
  16. package/dist/geometry.d.ts +2 -2
  17. package/dist/hit-test.js +24 -18
  18. package/dist/hit-test.js.map +1 -1
  19. package/dist/images.d.ts +2 -2
  20. package/dist/images.js +21 -38
  21. package/dist/images.js.map +1 -1
  22. package/dist/images2.d.ts +12 -1
  23. package/dist/images2.d.ts.map +1 -1
  24. package/dist/index.d.ts +3 -3
  25. package/dist/index.js +6 -6
  26. package/dist/layout.d.ts +2 -2
  27. package/dist/layout.js +3 -3
  28. package/dist/text.d.ts +2 -2
  29. package/dist/text.js +2 -2
  30. package/dist/types.d.ts +129 -12
  31. package/dist/types.d.ts.map +1 -1
  32. package/dist/types.js +2 -2
  33. package/dist/types2.d.ts +2 -2
  34. package/package.json +2 -1
  35. package/src/asset-keys.ts +25 -0
  36. package/src/color/contrast.ts +28 -0
  37. package/src/copy.ts +4 -1
  38. package/src/geometry.ts +64 -14
  39. package/src/hit-test.ts +45 -23
  40. package/src/images.ts +24 -32
  41. package/src/index.ts +8 -4
  42. package/src/instances/content-size.ts +63 -0
  43. package/src/instances/fields.ts +1 -1
  44. package/src/instances/sync.ts +7 -6
  45. package/src/instances/vector-geometry.ts +81 -0
  46. package/src/instances.ts +3 -0
  47. package/src/layout/guides.ts +40 -11
  48. package/src/shaders/model.ts +4 -2
  49. package/src/shaders/still.ts +41 -0
  50. package/src/shared-styles.ts +5 -2
  51. package/src/text/index.ts +1 -0
  52. package/src/text/references.ts +50 -0
  53. package/src/transfer/nodes.ts +12 -0
  54. package/src/transfer/plan.ts +25 -2
  55. package/src/transfer/validation.ts +6 -1
  56. package/src/types.ts +50 -2
  57. package/src/variables/bindings.ts +110 -8
  58. package/dist/chunks/fields/text.js +0 -36
  59. package/dist/chunks/fields/text.js.map +0 -1
@@ -1,6 +1,208 @@
1
- import { clearInstanceOverrides, cloneNodeProps, cloneVectorNetwork, copyDerivedGlyphs, copyEffects, copyFills, copyGeometryPaths, copyStroke, copyStrokes, copyStyleRuns, getInstanceOverride, hasInstanceOverride as hasInstanceOverride$1, scaleGeometryPaths, setInstanceOverride } from "../color/index.js";
1
+ import { clearInstanceOverrides, cloneNodeProps, cloneVectorNetwork, copyDerivedGlyphs, copyEffects, copyFills, copyGeometryPaths, copyStroke, copyStrokes, copyStyleRuns, getInstanceOverride, hasInstanceOverride as hasInstanceOverride$1, scaleGeometryPaths, setInstanceOverride, transformVectorNetwork } from "../color/index.js";
2
2
  import { randomHex } from "../comments/list.js";
3
3
  import { isEqual } from "es-toolkit/predicate";
4
+ //#region src/fields/text.ts
5
+ /** Fields shared by shaping, paragraph measurement, and auto-width invalidation. */
6
+ const TEXT_METRIC_FIELDS = [
7
+ "text",
8
+ "fontSize",
9
+ "fontFamily",
10
+ "fontWeight",
11
+ "italic",
12
+ "letterSpacing",
13
+ "styleRuns",
14
+ "fontVariations",
15
+ "fontFeatures",
16
+ "textParagraphs",
17
+ "listSpacing",
18
+ "paragraphSpacing",
19
+ "paragraphIndent",
20
+ "hangingList"
21
+ ];
22
+ const TEXT_SHAPING_FIELDS = [
23
+ ...TEXT_METRIC_FIELDS,
24
+ "lineHeight",
25
+ "textCase",
26
+ "textDirection",
27
+ "textAlignHorizontal",
28
+ "textAlignVertical"
29
+ ];
30
+ const TEXT_LAYOUT_FIELDS = [
31
+ "width",
32
+ "height",
33
+ "textAutoResize",
34
+ "maxLines"
35
+ ];
36
+ //#endregion
37
+ //#region src/layout/sizing.ts
38
+ function primaryAxis(mode) {
39
+ return mode === "VERTICAL" ? "VERTICAL" : "HORIZONTAL";
40
+ }
41
+ /** The auto-layout parent that sizes a node's fill, or `undefined` when nothing does. */
42
+ function fillingParent(parent, node) {
43
+ if (!parent || parent.layoutMode === "NONE" || node.layoutPositioning === "ABSOLUTE") return void 0;
44
+ return parent;
45
+ }
46
+ function graphParent(graph, node) {
47
+ return node.parentId ? graph.getNode(node.parentId) : void 0;
48
+ }
49
+ function fills(parent, node, axis) {
50
+ if (parent.layoutMode === "NONE") return false;
51
+ if (axis === primaryAxis(parent.layoutMode)) return node.layoutGrow > 0;
52
+ if (node.layoutAlignSelf === "STRETCH") return true;
53
+ return node.layoutAlignSelf === "AUTO" && parent.layoutMode !== "GRID" && parent.counterAxisAlign === "STRETCH";
54
+ }
55
+ function ownSizingField(node, axis) {
56
+ if (node.layoutMode === "NONE") return void 0;
57
+ return axis === primaryAxis(node.layoutMode) ? "primaryAxisSizing" : "counterAxisSizing";
58
+ }
59
+ function textHugs(autoResize, axis) {
60
+ if (autoResize === "WIDTH_AND_HEIGHT") return true;
61
+ return axis === "VERTICAL" && autoResize === "HEIGHT";
62
+ }
63
+ function hugs(node, axis) {
64
+ if (node.type === "TEXT") return textHugs(node.textAutoResize, axis);
65
+ const field = ownSizingField(node, axis);
66
+ return field !== void 0 && node[field] === "HUG";
67
+ }
68
+ /** The node's sizing along `axis`: fill from its parent, else its own hug, else fixed. */
69
+ function layoutSizing(graph, node, axis) {
70
+ return layoutSizingInParent(graphParent(graph, node), node, axis);
71
+ }
72
+ /** `layoutSizing` for code that holds the parent rather than the graph. */
73
+ function layoutSizingInParent(parentNode, node, axis) {
74
+ const parent = fillingParent(parentNode, node);
75
+ if (parent && fills(parent, node, axis)) return "FILL";
76
+ if (hugs(node, axis) && (parent || node.layoutMode !== "NONE")) return "HUG";
77
+ return "FIXED";
78
+ }
79
+ /** The sizings this node accepts on either axis, in Figma's order. */
80
+ function layoutSizingOptions(graph, node) {
81
+ return [
82
+ "FIXED",
83
+ "HUG",
84
+ "FILL"
85
+ ].filter((value) => layoutSizingError(graph, node, value) === void 0);
86
+ }
87
+ /** Figma's reason for refusing `value` on this node, or `undefined` when it applies. */
88
+ function layoutSizingError(graph, node, value) {
89
+ const parent = graphParent(graph, node);
90
+ const inAutoLayout = parent !== void 0 && parent.layoutMode !== "NONE";
91
+ if (!inAutoLayout && node.layoutMode === "NONE") return "node must be an auto-layout frame or a child of an auto-layout frame";
92
+ if (value === "FILL") {
93
+ if (!inAutoLayout) return "FILL can only be set on children of auto-layout frames";
94
+ if (node.layoutPositioning === "ABSOLUTE") return "FILL cannot be set on absolute positioned auto-layout children";
95
+ }
96
+ if (value === "HUG" && node.layoutMode === "NONE" && node.type !== "TEXT") return "HUG can only be set on auto-layout frames or text children of auto-layout frames";
97
+ }
98
+ /** The text auto-resize that hugs the content along the axes given. */
99
+ function textAutoResizeFor(hugsWidth, hugsHeight) {
100
+ if (hugsWidth && hugsHeight) return "WIDTH_AND_HEIGHT";
101
+ return hugsHeight ? "HEIGHT" : "NONE";
102
+ }
103
+ function textSizingUpdates(graph, node, axis, value) {
104
+ const other = axis === "HORIZONTAL" ? "VERTICAL" : "HORIZONTAL";
105
+ const hugsAxis = value === "HUG";
106
+ const hugsOther = layoutSizing(graph, node, other) === "HUG";
107
+ const autoResize = axis === "HORIZONTAL" ? textAutoResizeFor(hugsAxis, hugsOther) : textAutoResizeFor(hugsOther, hugsAxis);
108
+ if (autoResize === "NONE" && node.textAutoResize === "TRUNCATE") return {};
109
+ return autoResize === node.textAutoResize ? {} : { textAutoResize: autoResize };
110
+ }
111
+ /**
112
+ * The fields that set the node's sizing along `axis` to `value`, as Figma's setter writes
113
+ * them. A value Figma refuses yields no updates; `layoutSizingError` says why.
114
+ */
115
+ function layoutSizingUpdates(graph, node, axis, value) {
116
+ if (layoutSizingError(graph, node, value) !== void 0) return {};
117
+ const updates = {};
118
+ const parent = fillingParent(graphParent(graph, node), node);
119
+ if (parent && parent.layoutMode !== "NONE") {
120
+ const fill = value === "FILL";
121
+ if (axis === primaryAxis(parent.layoutMode)) {
122
+ if (fill !== node.layoutGrow > 0) updates.layoutGrow = fill ? 1 : 0;
123
+ } else if (fill && node.layoutAlignSelf !== "STRETCH") updates.layoutAlignSelf = "STRETCH";
124
+ else if (!fill && fills(parent, node, axis)) updates.layoutAlignSelf = parent.layoutMode !== "GRID" && parent.counterAxisAlign === "STRETCH" ? "MIN" : "AUTO";
125
+ }
126
+ const field = ownSizingField(node, axis);
127
+ if (field) {
128
+ const own = value === "HUG" ? "HUG" : "FIXED";
129
+ if (node[field] !== own) updates[field] = own;
130
+ }
131
+ if (node.type === "TEXT") Object.assign(updates, textSizingUpdates(graph, node, axis, value));
132
+ return updates;
133
+ }
134
+ /**
135
+ * The fields that make a child fill `axis` of a parent laid out as `parentLayout`, for a node
136
+ * an importer builds before it joins the graph. Under a parent without auto layout, such as a
137
+ * staging parent the node leaves when placed, both are set, so it fills whichever axis its
138
+ * eventual parent stacks along.
139
+ */
140
+ function fillSizingFields(parentLayout, axis) {
141
+ if (parentLayout === "NONE") return {
142
+ layoutGrow: 1,
143
+ layoutAlignSelf: "STRETCH"
144
+ };
145
+ return axis === primaryAxis(parentLayout) ? { layoutGrow: 1 } : { layoutAlignSelf: "STRETCH" };
146
+ }
147
+ /** An auto-layout frame's own sizing when it hugs or fixes its width and height. */
148
+ function autoLayoutSizingFields(direction, width, height) {
149
+ const horizontal = primaryAxis(direction) === "HORIZONTAL";
150
+ return {
151
+ primaryAxisSizing: horizontal ? width : height,
152
+ counterAxisSizing: horizontal ? height : width
153
+ };
154
+ }
155
+ //#endregion
156
+ //#region src/instances/content-size.ts
157
+ const METRIC_FIELDS = new Set(TEXT_METRIC_FIELDS);
158
+ /**
159
+ * The axes along which a copy sizes itself to its own content rather than to its component,
160
+ * judged by the state the copy is about to have.
161
+ */
162
+ function contentSizedAxes(graph, current, source, updates) {
163
+ const copy = {
164
+ ...current,
165
+ ...updates
166
+ };
167
+ if (copy.type === "TEXT") {
168
+ if (TEXT_SHAPING_FIELDS.every((field) => isEqual(copy[field], source[field]))) return {
169
+ width: false,
170
+ height: false
171
+ };
172
+ const mode = copy.textAutoResize;
173
+ return {
174
+ width: mode === "WIDTH_AND_HEIGHT",
175
+ height: mode === "WIDTH_AND_HEIGHT" || mode === "HEIGHT"
176
+ };
177
+ }
178
+ const laidOut = (axis) => {
179
+ const sizing = layoutSizing(graph, copy, axis);
180
+ return sizing === "FILL" || sizing === "HUG" && copy.layoutMode !== "NONE";
181
+ };
182
+ return {
183
+ width: laidOut("HORIZONTAL"),
184
+ height: laidOut("VERTICAL")
185
+ };
186
+ }
187
+ /**
188
+ * Keeps a copy's own size along the axes it sizes to its own content, as Figma sizes a badge to
189
+ * its count and the layers it shows rather than to the component's placeholder. Layout measures
190
+ * those axes; the component's size there would be stale.
191
+ */
192
+ function keepOwnContentSize(graph, updates, copy, source) {
193
+ const axes = contentSizedAxes(graph, copy, source, updates);
194
+ if (axes.width) Reflect.deleteProperty(updates, "width");
195
+ if (axes.height) Reflect.deleteProperty(updates, "height");
196
+ }
197
+ /**
198
+ * Drops the size a text copy kept from the file once a metric reaches it from the component, so
199
+ * layout measures its characters again instead of trusting the size Figma saved for the old style.
200
+ */
201
+ function remeasureChangedText(updates, copy) {
202
+ if (copy.type !== "TEXT" || !copy.derivedLayout) return;
203
+ if (Object.keys(updates).some((key) => METRIC_FIELDS.has(key))) updates.derivedLayout = null;
204
+ }
205
+ //#endregion
4
206
  //#region src/instances/main-component.ts
5
207
  /**
6
208
  * The main component an instance shows. An instance nested in another instance points at the
@@ -582,7 +784,6 @@ const INSTANCE_SYNC_PROPS = [
582
784
  "gridRowGap",
583
785
  "gridPosition",
584
786
  "clipsContent",
585
- "counterAxisAlignContent",
586
787
  "itemReverseZIndex",
587
788
  "strokesIncludedInLayout",
588
789
  "layoutGrids",
@@ -627,6 +828,7 @@ const INSTANCE_FOLLOWED_FIELDS = [
627
828
  "horizontalConstraint",
628
829
  "verticalConstraint",
629
830
  "layoutPositioning",
831
+ "counterAxisAlignContent",
630
832
  "isMask",
631
833
  "maskType",
632
834
  "arcData",
@@ -1331,6 +1533,70 @@ function placedByConstraints(source, compParent, instParent, factor) {
1331
1533
  };
1332
1534
  }
1333
1535
  //#endregion
1536
+ //#region src/instances/vector-geometry.ts
1537
+ /** How far apart two paths' points may be and still count as one path, in pixels. */
1538
+ const PATH_TOLERANCE = .001;
1539
+ /** The stroke fields a vector's stroke outline is drawn from. */
1540
+ const STROKE_OUTLINE_FIELDS = [
1541
+ "strokes",
1542
+ "strokeWeight",
1543
+ "strokeAlign",
1544
+ "strokeCap",
1545
+ "strokeJoin",
1546
+ "strokeMiterLimit",
1547
+ "dashPattern"
1548
+ ];
1549
+ const near = (a, b) => Math.abs(a - b) <= PATH_TOLERANCE;
1550
+ /** Whether two paths are one, up to the float error that files and scaling leave. */
1551
+ function samePath(a, b) {
1552
+ if (!a || !b) return a === b;
1553
+ if (a.vertices.length !== b.vertices.length || a.segments.length !== b.segments.length) return false;
1554
+ const sameVertices = a.vertices.every((vertex, index) => {
1555
+ const { x, y, ...rest } = vertex;
1556
+ const { x: otherX, y: otherY, ...otherRest } = b.vertices[index];
1557
+ return near(x, otherX) && near(y, otherY) && isEqual(rest, otherRest);
1558
+ });
1559
+ const sameSegments = a.segments.every((segment, index) => {
1560
+ const other = b.segments[index];
1561
+ return segment.start === other.start && segment.end === other.end && near(segment.tangentStart.x, other.tangentStart.x) && near(segment.tangentStart.y, other.tangentStart.y) && near(segment.tangentEnd.x, other.tangentEnd.x) && near(segment.tangentEnd.y, other.tangentEnd.y);
1562
+ });
1563
+ return sameVertices && sameSegments && isEqual(a.regions, b.regions);
1564
+ }
1565
+ /**
1566
+ * Gives a vector's copy its component's path, which Figma refuses to override in an instance
1567
+ * ("vector-data"), so every edit to the path reaches the copies, drawn at the size the copy ends
1568
+ * up with. A copy whose path already matches keeps its own outlines, which may differ from the
1569
+ * component's where the instance overrides its fills or strokes. A changed path brings the
1570
+ * component's outlines with it, the stroke's only while the copy strokes as the component does;
1571
+ * otherwise the canvas draws the stroke from the new path.
1572
+ */
1573
+ function followVectorGeometry(updates, copy, source) {
1574
+ if (source.type !== "VECTOR") return;
1575
+ const width = updates.width ?? copy.width;
1576
+ const height = updates.height ?? copy.height;
1577
+ const sx = source.width > 0 ? width / source.width : 1;
1578
+ const sy = source.height > 0 ? height / source.height : 1;
1579
+ const scaled = sx !== 1 || sy !== 1;
1580
+ const scaledNetwork = (network) => scaled ? transformVectorNetwork([
1581
+ sx,
1582
+ 0,
1583
+ 0,
1584
+ 0,
1585
+ sy,
1586
+ 0,
1587
+ 0,
1588
+ 0,
1589
+ 1
1590
+ ], network) : cloneVectorNetwork(network);
1591
+ const network = source.vectorNetwork ? scaledNetwork(source.vectorNetwork) : null;
1592
+ if (samePath(copy.vectorNetwork, network)) return;
1593
+ const outlines = (paths) => scaled ? scaleGeometryPaths(paths, sx, sy) : copyGeometryPaths(paths);
1594
+ const strokesAlike = STROKE_OUTLINE_FIELDS.every((field) => isEqual(updates[field] ?? copy[field], source[field]));
1595
+ updates.vectorNetwork = network;
1596
+ updates.fillGeometry = outlines(source.fillGeometry);
1597
+ updates.strokeGeometry = strokesAlike ? outlines(source.strokeGeometry) : [];
1598
+ }
1599
+ //#endregion
1334
1600
  //#region src/instances/sync.ts
1335
1601
  function setSceneProp(target, key, value) {
1336
1602
  target[key] = value;
@@ -1404,6 +1670,8 @@ function copySyncedFields(updates, copy, source, { compParent, instParent, facto
1404
1670
  if (isEqual(copy[key], from[key])) continue;
1405
1671
  copyProp(updates, from, key);
1406
1672
  }
1673
+ followVectorGeometry(updates, copy, source);
1674
+ remeasureChangedText(updates, copy);
1407
1675
  }
1408
1676
  function updateSyncedProps(graph, target, updates) {
1409
1677
  const changed = Object.fromEntries(Object.entries(updates).filter(([key, value]) => !isEqual(target[key], value)));
@@ -1658,6 +1926,7 @@ function syncChildren(graph, compParentId, instParentId, overrides, context = cr
1658
1926
  skip: (key) => driven.has(key) || isProtectedSyncField(instChild, key, protectedField)
1659
1927
  });
1660
1928
  Object.assign(updates, assignedFieldValues(graph, instChild, compChild));
1929
+ keepOwnContentSize(graph, updates, instChild, source);
1661
1930
  updateSyncedProps(graph, instChild, updates);
1662
1931
  if (compChild.childIds.length > 0 && !hasInstanceOverride$1(overrides, instParentId, instChild.id, "componentId") && !ownsSlotContent(graph, instChild, slotPropertyId(compChild))) syncChildren(graph, compChildId, instChild.id, overrides, context);
1663
1932
  }
@@ -1768,6 +2037,7 @@ function syncInstancesOf(graph, componentId, instances) {
1768
2037
  if (isProtectedSyncField(instance, key, protectedField)) continue;
1769
2038
  copyProp(updates, source, key);
1770
2039
  }
2040
+ keepOwnContentSize(graph, updates, instance, source);
1771
2041
  updateSyncedProps(graph, instance, updates);
1772
2042
  const context = createInstanceSyncContext(instance.id, instance.instanceOverrides);
1773
2043
  syncChildren(graph, component.id, instance.id, instance.instanceOverrides, context);
@@ -2016,6 +2286,6 @@ function instanceExposureIssue(graph, instance) {
2016
2286
  return componentPropertyDefinitions(graph, instance).length > 0 || !!component && exposableInstances(graph, component.id).some((node) => node.isExposedInstance) ? null : "nothing-to-expose";
2017
2287
  }
2018
2288
  //#endregion
2019
- export { BOOLEAN_BINDING_FIELDS, DEFAULT_HISTORY_LIMIT, INSTANCE_FOLLOWED_FIELDS, INSTANCE_OVERRIDE_FIELDS, INSTANCE_SYNC_FIELDS, INSTANCE_SYNC_PROPS, INSTANCE_SYNC_TEXT_PROPS, MAX_LIST_INDENTATION, NUMERIC_FIELDS, PLAIN_PARAGRAPH, STRING_BINDING_FIELDS, TEXT_PARAGRAPH_SPACING_FIELDS, UndoManager, applyComponentPropertyValue, aspectRatioLockEditable, canCreateInstance, cloneChildrenWithMapping, collectResizeDescendants, componentPropertyDefinitions, componentPropertyOwners, computeConstrainedResizeChanges, constrainedChildRect, copyInstanceComponentProps, createComponentPropertyId, createInstance, createResizeSnapshot, createsComponentCycle, cycleSafeParent, detachInstance, detachOwnedSlotContent, enforcedAspectRatio, exposableInstances, exposedInstances, findComponentPropertyTarget, findComponentPropertyTargets, findInstanceAncestor, getInstances, getMainComponent, hasInstanceOverride, hasParagraphSpacing, hasTextList, instanceExposureIssue, instanceMainComponent, instanceSlotFrames, isNumericVariableBindingField, layoutConstrainedChildRect, lockedAspectRatioTarget, ownsSlotContent, paragraphCount, paragraphIndexAt, paragraphSpacingAt, paragraphStyleAt, paragraphStylesAfterEdit, paragraphStylesAfterTextChange, paragraphStylesInRange, paragraphStylesWithoutSpacing, populateInstanceChildren, recapturedAspectRatio, recordInstanceOverride, removeComponentProperty, resolveComponentPropertyValue, restoreOwnedSlotContent, scaleNodeChanges, scaleVariableBindingUnits, scaleVectorNetworkForResize, scaledChildRect, scaledGeometryChanges, sharedParagraphSpacing, sizeKeepingAspectRatio, slotPropertyId, swapInstanceComponent, syncInstance, syncInstances, syncInstancesTogether, textParagraphRanges, trimParagraphStyles, withIndentation, withListType, withParagraphSpacing };
2289
+ export { BOOLEAN_BINDING_FIELDS, DEFAULT_HISTORY_LIMIT, INSTANCE_FOLLOWED_FIELDS, INSTANCE_OVERRIDE_FIELDS, INSTANCE_SYNC_FIELDS, INSTANCE_SYNC_PROPS, INSTANCE_SYNC_TEXT_PROPS, MAX_LIST_INDENTATION, NUMERIC_FIELDS, PLAIN_PARAGRAPH, STRING_BINDING_FIELDS, TEXT_LAYOUT_FIELDS, TEXT_METRIC_FIELDS, TEXT_PARAGRAPH_SPACING_FIELDS, TEXT_SHAPING_FIELDS, UndoManager, applyComponentPropertyValue, aspectRatioLockEditable, autoLayoutSizingFields, canCreateInstance, cloneChildrenWithMapping, collectResizeDescendants, componentPropertyDefinitions, componentPropertyOwners, computeConstrainedResizeChanges, constrainedChildRect, copyInstanceComponentProps, createComponentPropertyId, createInstance, createResizeSnapshot, createsComponentCycle, cycleSafeParent, detachInstance, detachOwnedSlotContent, enforcedAspectRatio, exposableInstances, exposedInstances, fillSizingFields, findComponentPropertyTarget, findComponentPropertyTargets, findInstanceAncestor, getInstances, getMainComponent, hasInstanceOverride, hasParagraphSpacing, hasTextList, instanceExposureIssue, instanceMainComponent, instanceSlotFrames, isNumericVariableBindingField, layoutConstrainedChildRect, layoutSizing, layoutSizingError, layoutSizingInParent, layoutSizingOptions, layoutSizingUpdates, lockedAspectRatioTarget, ownsSlotContent, paragraphCount, paragraphIndexAt, paragraphSpacingAt, paragraphStyleAt, paragraphStylesAfterEdit, paragraphStylesAfterTextChange, paragraphStylesInRange, paragraphStylesWithoutSpacing, populateInstanceChildren, recapturedAspectRatio, recordInstanceOverride, removeComponentProperty, resolveComponentPropertyValue, restoreOwnedSlotContent, scaleNodeChanges, scaleVariableBindingUnits, scaleVectorNetworkForResize, scaledChildRect, scaledGeometryChanges, sharedParagraphSpacing, sizeKeepingAspectRatio, slotPropertyId, swapInstanceComponent, syncInstance, syncInstances, syncInstancesTogether, textAutoResizeFor, textParagraphRanges, trimParagraphStyles, withIndentation, withListType, withParagraphSpacing };
2020
2290
 
2021
2291
  //# sourceMappingURL=exposure.js.map