@pixerate/editor-react 0.41.0 → 0.42.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/animation-editor/index.cjs +192 -0
- package/dist/animation-editor/index.cjs.map +1 -0
- package/dist/animation-editor/index.d.cts +61 -0
- package/dist/animation-editor/index.d.ts +61 -0
- package/dist/animation-editor/index.js +162 -0
- package/dist/animation-editor/index.js.map +1 -0
- package/dist/canvas/index.cjs +339 -320
- package/dist/canvas/index.cjs.map +1 -1
- package/dist/canvas/index.d.cts +15 -2
- package/dist/canvas/index.d.ts +15 -2
- package/dist/canvas/index.js +22 -4
- package/dist/canvas/index.js.map +1 -1
- package/package.json +11 -3
package/dist/canvas/index.cjs
CHANGED
|
@@ -20,317 +20,318 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
20
20
|
// src/canvas/index.ts
|
|
21
21
|
var canvas_exports = {};
|
|
22
22
|
__export(canvas_exports, {
|
|
23
|
-
ANIMATABLE_PROPERTIES: () =>
|
|
24
|
-
ANIMATION_DATA_KEY: () =>
|
|
25
|
-
ANIMATION_EASING_LABELS: () =>
|
|
26
|
-
ANIMATION_EASING_PRESETS: () =>
|
|
27
|
-
ANIMATION_TIME_EPSILON: () =>
|
|
28
|
-
AUTO_LAYOUT_DATA_KEY: () =>
|
|
23
|
+
ANIMATABLE_PROPERTIES: () => import_canvas29.ANIMATABLE_PROPERTIES,
|
|
24
|
+
ANIMATION_DATA_KEY: () => import_canvas29.ANIMATION_DATA_KEY,
|
|
25
|
+
ANIMATION_EASING_LABELS: () => import_canvas29.ANIMATION_EASING_LABELS,
|
|
26
|
+
ANIMATION_EASING_PRESETS: () => import_canvas29.ANIMATION_EASING_PRESETS,
|
|
27
|
+
ANIMATION_TIME_EPSILON: () => import_canvas29.ANIMATION_TIME_EPSILON,
|
|
28
|
+
AUTO_LAYOUT_DATA_KEY: () => import_canvas27.AUTO_LAYOUT_DATA_KEY,
|
|
29
29
|
AgentPresenceLayer: () => AgentPresenceLayer,
|
|
30
|
-
AnimationEditError: () =>
|
|
31
|
-
AnimationPlayer: () =>
|
|
30
|
+
AnimationEditError: () => import_canvas29.AnimationEditError,
|
|
31
|
+
AnimationPlayer: () => import_canvas29.AnimationPlayer,
|
|
32
32
|
AnimationTimeline: () => AnimationTimeline,
|
|
33
|
-
CANVAS_COMPONENT_DRAG_TYPE: () =>
|
|
34
|
-
CANVAS_GRADIENT_PRESETS: () =>
|
|
35
|
-
CANVAS_TOKEN_PROPERTIES: () =>
|
|
36
|
-
CHILD_LAYOUT_DATA_KEY: () =>
|
|
37
|
-
CONNECTION_LINE_TYPES: () =>
|
|
38
|
-
CSS_ANIMATION_PROPERTIES: () =>
|
|
39
|
-
CUBIC_BEZIER_PRESETS: () =>
|
|
33
|
+
CANVAS_COMPONENT_DRAG_TYPE: () => import_canvas30.CANVAS_COMPONENT_DRAG_TYPE,
|
|
34
|
+
CANVAS_GRADIENT_PRESETS: () => import_canvas30.CANVAS_GRADIENT_PRESETS,
|
|
35
|
+
CANVAS_TOKEN_PROPERTIES: () => import_canvas28.CANVAS_TOKEN_PROPERTIES,
|
|
36
|
+
CHILD_LAYOUT_DATA_KEY: () => import_canvas27.CHILD_LAYOUT_DATA_KEY,
|
|
37
|
+
CONNECTION_LINE_TYPES: () => import_canvas23.CONNECTION_LINE_TYPES,
|
|
38
|
+
CSS_ANIMATION_PROPERTIES: () => import_canvas29.CSS_ANIMATION_PROPERTIES,
|
|
39
|
+
CUBIC_BEZIER_PRESETS: () => import_canvas29.CUBIC_BEZIER_PRESETS,
|
|
40
40
|
CanvasComponentsPanel: () => CanvasComponentsPanel,
|
|
41
41
|
CanvasDrawLayer: () => CanvasDrawLayer,
|
|
42
42
|
CanvasGuidesLayer: () => CanvasGuidesLayer,
|
|
43
43
|
CanvasInstanceInspector: () => CanvasInstanceInspector,
|
|
44
|
-
CanvasScenesStore: () =>
|
|
45
|
-
DEFAULT_ARRANGE_SHORTCUTS: () =>
|
|
44
|
+
CanvasScenesStore: () => import_canvas23.CanvasScenesStore,
|
|
45
|
+
DEFAULT_ARRANGE_SHORTCUTS: () => import_canvas23.DEFAULT_ARRANGE_SHORTCUTS,
|
|
46
46
|
DiagramPresenceLayer: () => DiagramPresenceLayer,
|
|
47
|
-
MAX_KEYFRAME_REFS: () =>
|
|
48
|
-
ManualClock: () =>
|
|
47
|
+
MAX_KEYFRAME_REFS: () => import_canvas29.MAX_KEYFRAME_REFS,
|
|
48
|
+
ManualClock: () => import_canvas26.ManualClock,
|
|
49
49
|
MermaidDiagramGroup: () => MermaidDiagramGroup,
|
|
50
50
|
MermaidDiagramNode: () => MermaidDiagramNode,
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
51
|
+
MermaidThumbnail: () => MermaidThumbnail,
|
|
52
|
+
RESIZE_HANDLES: () => import_canvas22.RESIZE_HANDLES,
|
|
53
|
+
SHAPE_DATA_KEY: () => import_canvas24.SHAPE_DATA_KEY,
|
|
54
|
+
SHAPE_KINDS: () => import_canvas24.SHAPE_KINDS,
|
|
55
|
+
SHAPE_NODE_TYPE: () => import_canvas24.SHAPE_NODE_TYPE,
|
|
56
|
+
SHAPE_OPERATIONS: () => import_canvas24.SHAPE_OPERATIONS,
|
|
56
57
|
ShapeNode: () => ShapeNode,
|
|
57
|
-
TOKEN_BINDINGS_DATA_KEY: () =>
|
|
58
|
-
TOKEN_MODES_DATA_KEY: () =>
|
|
58
|
+
TOKEN_BINDINGS_DATA_KEY: () => import_canvas28.TOKEN_BINDINGS_DATA_KEY,
|
|
59
|
+
TOKEN_MODES_DATA_KEY: () => import_canvas28.TOKEN_MODES_DATA_KEY,
|
|
59
60
|
TokenBindingPicker: () => TokenBindingPicker,
|
|
60
61
|
TokenModeSwitcher: () => TokenModeSwitcher,
|
|
61
|
-
addCanvasVariant: () =>
|
|
62
|
-
addKeyframesAtTime: () =>
|
|
63
|
-
alignNodes: () =>
|
|
64
|
-
angleToSvgLinearCoords: () =>
|
|
65
|
-
animateNode: () =>
|
|
66
|
-
applyAnimation: () =>
|
|
67
|
-
applyAnimationOverrides: () =>
|
|
68
|
-
applyConstraints: () =>
|
|
69
|
-
applyNodeUpdates: () =>
|
|
70
|
-
applyShapeCombination: () =>
|
|
71
|
-
applyShapeReplacement: () =>
|
|
72
|
-
bezierPathArea: () =>
|
|
73
|
-
bezierPathBounds: () =>
|
|
74
|
-
bezierPathLength: () =>
|
|
75
|
-
bezierPathPointAtLength: () =>
|
|
76
|
-
bezierPathSignedArea: () =>
|
|
77
|
-
bezierPathToSvg: () =>
|
|
78
|
-
bindCanvasComponentProperty: () =>
|
|
79
|
-
bindCanvasToken: () =>
|
|
80
|
-
blendLayout: () =>
|
|
81
|
-
boundsOf: () =>
|
|
82
|
-
calculateDagreReflowDisplacement: () =>
|
|
83
|
-
calculateDirectionalDisplacement: () =>
|
|
84
|
-
canCombineShapeNodes: () =>
|
|
85
|
-
canOffsetShapeNodes: () =>
|
|
86
|
-
canOutlineShapeNodeStrokes: () =>
|
|
87
|
-
canvasHeight: () =>
|
|
88
|
-
centerNodes: () =>
|
|
89
|
-
centre: () =>
|
|
90
|
-
clampAnimationValue: () =>
|
|
91
|
-
clampLayoutSize: () =>
|
|
92
|
-
combineCanvasComponentsAsVariants: () =>
|
|
93
|
-
combineShapeNodes: () =>
|
|
94
|
-
computeNodesBoundingBox: () =>
|
|
95
|
-
computeSnapGuides: () =>
|
|
96
|
-
connectedOnly: () =>
|
|
97
|
-
copyKeyframes: () =>
|
|
98
|
-
countPathSegments: () =>
|
|
99
|
-
createAnimationPlayer: () =>
|
|
100
|
-
createBezierTrajectory: () =>
|
|
101
|
-
createCanvasAnimationController: () =>
|
|
102
|
-
createCanvasAutoLayoutController: () =>
|
|
103
|
-
createCanvasComponent: () =>
|
|
104
|
-
createCanvasComponentsController: () =>
|
|
105
|
-
createCanvasDrawController: () =>
|
|
106
|
-
createCanvasInstance: () =>
|
|
107
|
-
createCanvasScenesStore: () =>
|
|
108
|
-
createDefaultStrokeStyle: () =>
|
|
109
|
-
createFanOutTrajectory: () =>
|
|
110
|
-
createGuideIndex: () =>
|
|
111
|
-
createNodeGuideIndex: () =>
|
|
112
|
-
cubicBezierAt: () =>
|
|
113
|
-
cubicPointAt: () =>
|
|
114
|
-
cubicsToPathData: () =>
|
|
115
|
-
dashContours: () =>
|
|
116
|
-
defaultEasing: () =>
|
|
117
|
-
deleteKeyframes: () =>
|
|
118
|
-
detachCanvasInstance: () =>
|
|
119
|
-
detachTokenBindings: () =>
|
|
120
|
-
distanceToBezierPath: () =>
|
|
121
|
-
distributeNodes: () =>
|
|
122
|
-
dividePaths: () =>
|
|
123
|
-
dividePolygons: () =>
|
|
124
|
-
easingFromInfluence: () =>
|
|
125
|
-
easingLabel: () =>
|
|
126
|
-
easingToCss: () =>
|
|
127
|
-
ensureLayout: () =>
|
|
128
|
-
estimateCanvasHeight: () =>
|
|
129
|
-
estimateNodeSize: () =>
|
|
130
|
-
evaluateAnimation: () =>
|
|
131
|
-
evaluateEasing: () =>
|
|
132
|
-
evaluateTrack: () =>
|
|
133
|
-
excludePaths: () =>
|
|
134
|
-
exportCssAnimation: () =>
|
|
135
|
-
findConnectorSnap: () =>
|
|
136
|
-
findStrokesAtPoint: () =>
|
|
137
|
-
fitCubicRun: () =>
|
|
138
|
-
fitCubics: () =>
|
|
139
|
-
fitFreehandPath: () =>
|
|
140
|
-
fitPathData: () =>
|
|
141
|
-
fitViewportToNodes: () =>
|
|
142
|
-
fitViewportToRect: () =>
|
|
143
|
-
flattenSvgPath: () =>
|
|
144
|
-
flowSide: () =>
|
|
145
|
-
formatAnimationTime: () =>
|
|
146
|
-
formatOklab: () =>
|
|
147
|
-
getAbsolutePosition: () =>
|
|
148
|
-
getAnimatableProperty: () =>
|
|
149
|
-
getAnimatedProperties: () =>
|
|
150
|
-
getAnimatedValue: () =>
|
|
151
|
-
getAnimationDuration: () =>
|
|
152
|
-
getAnimationTrack: () =>
|
|
153
|
-
getAutoLayout: () =>
|
|
154
|
-
getAutoLayoutGrid: () =>
|
|
155
|
-
getAutoLayoutInsertTarget: () =>
|
|
156
|
-
getBindableTokenProperties: () =>
|
|
157
|
-
getCanvasComponentDragId: () =>
|
|
158
|
-
getCanvasTokenProperty: () =>
|
|
159
|
-
getCenteredNodePosition: () =>
|
|
160
|
-
getChildLayout: () =>
|
|
161
|
-
getComponentSourceId: () =>
|
|
162
|
-
getCssPropertyAnimations: () =>
|
|
163
|
-
getEffectiveTokenModes: () =>
|
|
164
|
-
getFlowChildren: () =>
|
|
165
|
-
getInstanceData: () =>
|
|
166
|
-
getInstanceStatus: () =>
|
|
167
|
-
getKeyframeTimes: () =>
|
|
168
|
-
getLayoutParent: () =>
|
|
169
|
-
getLayoutSizing: () =>
|
|
170
|
-
getLayoutedNodes: () =>
|
|
171
|
-
getNextVariantValues: () =>
|
|
172
|
-
getNodeAnimation: () =>
|
|
173
|
-
getNodeOverrides: () =>
|
|
174
|
-
getNodeRect: () =>
|
|
175
|
-
getNodeShape: () =>
|
|
176
|
-
getNodeSize: () =>
|
|
177
|
-
getNodeTokenBindings: () =>
|
|
178
|
-
getNodeTokenModes: () =>
|
|
179
|
-
getResizingNodeRect: () =>
|
|
180
|
-
getShapeRenderData: () =>
|
|
181
|
-
getShapeSvg: () =>
|
|
182
|
-
getTimelineRows: () =>
|
|
183
|
-
getTimelineTicks: () =>
|
|
184
|
-
getTokenPropertyScope: () =>
|
|
185
|
-
getTokensForProperty: () =>
|
|
186
|
-
gradientToSvgDef: () =>
|
|
187
|
-
handlePoint: () =>
|
|
188
|
-
hasVisibleStroke: () =>
|
|
189
|
-
inferResizeHandle: () =>
|
|
190
|
-
inspectCanvasInstance: () =>
|
|
191
|
-
inspectNodeTokens: () =>
|
|
192
|
-
interpolateAnimationValue: () =>
|
|
193
|
-
intersectPaths: () =>
|
|
194
|
-
intersectPolygons: () =>
|
|
195
|
-
invertNodeUpdates: () =>
|
|
196
|
-
isAnimationEasing: () =>
|
|
197
|
-
isAnimationKeyframe: () =>
|
|
198
|
-
isAutoLayoutFrame: () =>
|
|
199
|
-
isCanvasComponent: () =>
|
|
200
|
-
isCanvasComponentSet: () =>
|
|
201
|
-
isCanvasGradient: () =>
|
|
202
|
-
isCanvasInstance: () =>
|
|
203
|
-
isCssExportExact: () =>
|
|
204
|
-
isEventFromTextInput: () =>
|
|
205
|
-
isKeyframeSelected: () =>
|
|
206
|
-
isLocked: () =>
|
|
207
|
-
isMeasureModifierHeld: () =>
|
|
208
|
-
isNodeAnimated: () =>
|
|
209
|
-
isShapeDescription: () =>
|
|
210
|
-
isShapeNode: () =>
|
|
211
|
-
isStraightCubic: () =>
|
|
212
|
-
isValidCanvasNode: () =>
|
|
213
|
-
isValidUrl: () =>
|
|
214
|
-
layoutAll: () =>
|
|
215
|
-
layoutBounds: () =>
|
|
216
|
-
layoutFrame: () =>
|
|
217
|
-
layoutUp: () =>
|
|
218
|
-
layoutUpMany: () =>
|
|
219
|
-
linearPositionTrajectory: () =>
|
|
220
|
-
linearTrajectory: () =>
|
|
221
|
-
listCanvasComponents: () =>
|
|
222
|
-
lockNodes: () =>
|
|
223
|
-
makeSizingCoherent: () =>
|
|
224
|
-
matchArrangeShortcut: () =>
|
|
225
|
-
matchSize: () =>
|
|
226
|
-
measureBetween: () =>
|
|
227
|
-
measureLabel: () =>
|
|
228
|
-
measureSelection: () =>
|
|
229
|
-
measureToLine: () =>
|
|
230
|
-
mergeNodeUpdates: () =>
|
|
62
|
+
addCanvasVariant: () => import_canvas30.addCanvasVariant,
|
|
63
|
+
addKeyframesAtTime: () => import_canvas29.addKeyframesAtTime,
|
|
64
|
+
alignNodes: () => import_canvas23.alignNodes,
|
|
65
|
+
angleToSvgLinearCoords: () => import_canvas30.angleToSvgLinearCoords,
|
|
66
|
+
animateNode: () => import_canvas29.animateNode,
|
|
67
|
+
applyAnimation: () => import_canvas29.applyAnimation,
|
|
68
|
+
applyAnimationOverrides: () => import_canvas29.applyAnimationOverrides,
|
|
69
|
+
applyConstraints: () => import_canvas27.applyConstraints,
|
|
70
|
+
applyNodeUpdates: () => import_canvas23.applyNodeUpdates,
|
|
71
|
+
applyShapeCombination: () => import_canvas24.applyShapeCombination,
|
|
72
|
+
applyShapeReplacement: () => import_canvas25.applyShapeReplacement,
|
|
73
|
+
bezierPathArea: () => import_canvas25.bezierPathArea,
|
|
74
|
+
bezierPathBounds: () => import_canvas25.bezierPathBounds,
|
|
75
|
+
bezierPathLength: () => import_canvas25.bezierPathLength,
|
|
76
|
+
bezierPathPointAtLength: () => import_canvas25.bezierPathPointAtLength,
|
|
77
|
+
bezierPathSignedArea: () => import_canvas25.bezierPathSignedArea,
|
|
78
|
+
bezierPathToSvg: () => import_canvas25.bezierPathToSvg,
|
|
79
|
+
bindCanvasComponentProperty: () => import_canvas30.bindCanvasComponentProperty,
|
|
80
|
+
bindCanvasToken: () => import_canvas28.bindCanvasToken,
|
|
81
|
+
blendLayout: () => import_canvas26.blendLayout,
|
|
82
|
+
boundsOf: () => import_canvas26.boundsOf,
|
|
83
|
+
calculateDagreReflowDisplacement: () => import_canvas26.calculateDagreReflowDisplacement,
|
|
84
|
+
calculateDirectionalDisplacement: () => import_canvas26.calculateDirectionalDisplacement,
|
|
85
|
+
canCombineShapeNodes: () => import_canvas24.canCombineShapeNodes,
|
|
86
|
+
canOffsetShapeNodes: () => import_canvas25.canOffsetShapeNodes,
|
|
87
|
+
canOutlineShapeNodeStrokes: () => import_canvas25.canOutlineShapeNodeStrokes,
|
|
88
|
+
canvasHeight: () => import_canvas26.canvasHeight,
|
|
89
|
+
centerNodes: () => import_canvas26.centerNodes,
|
|
90
|
+
centre: () => import_canvas26.centre,
|
|
91
|
+
clampAnimationValue: () => import_canvas29.clampAnimationValue,
|
|
92
|
+
clampLayoutSize: () => import_canvas27.clampLayoutSize,
|
|
93
|
+
combineCanvasComponentsAsVariants: () => import_canvas30.combineCanvasComponentsAsVariants,
|
|
94
|
+
combineShapeNodes: () => import_canvas24.combineShapeNodes,
|
|
95
|
+
computeNodesBoundingBox: () => import_canvas26.computeNodesBoundingBox,
|
|
96
|
+
computeSnapGuides: () => import_canvas23.computeSnapGuides,
|
|
97
|
+
connectedOnly: () => import_canvas26.connectedOnly,
|
|
98
|
+
copyKeyframes: () => import_canvas29.copyKeyframes,
|
|
99
|
+
countPathSegments: () => import_canvas25.countPathSegments,
|
|
100
|
+
createAnimationPlayer: () => import_canvas29.createAnimationPlayer,
|
|
101
|
+
createBezierTrajectory: () => import_canvas26.createBezierTrajectory,
|
|
102
|
+
createCanvasAnimationController: () => import_canvas29.createCanvasAnimationController,
|
|
103
|
+
createCanvasAutoLayoutController: () => import_canvas27.createCanvasAutoLayoutController,
|
|
104
|
+
createCanvasComponent: () => import_canvas30.createCanvasComponent,
|
|
105
|
+
createCanvasComponentsController: () => import_canvas30.createCanvasComponentsController,
|
|
106
|
+
createCanvasDrawController: () => import_canvas30.createCanvasDrawController,
|
|
107
|
+
createCanvasInstance: () => import_canvas30.createCanvasInstance,
|
|
108
|
+
createCanvasScenesStore: () => import_canvas23.createCanvasScenesStore,
|
|
109
|
+
createDefaultStrokeStyle: () => import_canvas30.createDefaultStrokeStyle,
|
|
110
|
+
createFanOutTrajectory: () => import_canvas26.createFanOutTrajectory,
|
|
111
|
+
createGuideIndex: () => import_canvas23.createGuideIndex,
|
|
112
|
+
createNodeGuideIndex: () => import_canvas23.createNodeGuideIndex,
|
|
113
|
+
cubicBezierAt: () => import_canvas29.cubicBezierAt,
|
|
114
|
+
cubicPointAt: () => import_canvas22.cubicPointAt,
|
|
115
|
+
cubicsToPathData: () => import_canvas22.cubicsToPathData,
|
|
116
|
+
dashContours: () => import_canvas25.dashContours,
|
|
117
|
+
defaultEasing: () => import_canvas26.defaultEasing,
|
|
118
|
+
deleteKeyframes: () => import_canvas29.deleteKeyframes,
|
|
119
|
+
detachCanvasInstance: () => import_canvas30.detachCanvasInstance,
|
|
120
|
+
detachTokenBindings: () => import_canvas28.detachTokenBindings,
|
|
121
|
+
distanceToBezierPath: () => import_canvas25.distanceToBezierPath,
|
|
122
|
+
distributeNodes: () => import_canvas23.distributeNodes,
|
|
123
|
+
dividePaths: () => import_canvas25.dividePaths,
|
|
124
|
+
dividePolygons: () => import_canvas24.dividePolygons,
|
|
125
|
+
easingFromInfluence: () => import_canvas29.easingFromInfluence,
|
|
126
|
+
easingLabel: () => import_canvas29.easingLabel,
|
|
127
|
+
easingToCss: () => import_canvas29.easingToCss,
|
|
128
|
+
ensureLayout: () => import_canvas26.ensureLayout,
|
|
129
|
+
estimateCanvasHeight: () => import_canvas26.estimateCanvasHeight,
|
|
130
|
+
estimateNodeSize: () => import_canvas26.estimateNodeSize,
|
|
131
|
+
evaluateAnimation: () => import_canvas29.evaluateAnimation,
|
|
132
|
+
evaluateEasing: () => import_canvas29.evaluateEasing,
|
|
133
|
+
evaluateTrack: () => import_canvas29.evaluateTrack,
|
|
134
|
+
excludePaths: () => import_canvas25.excludePaths,
|
|
135
|
+
exportCssAnimation: () => import_canvas29.exportCssAnimation,
|
|
136
|
+
findConnectorSnap: () => import_canvas23.findConnectorSnap,
|
|
137
|
+
findStrokesAtPoint: () => import_canvas30.findStrokesAtPoint,
|
|
138
|
+
fitCubicRun: () => import_canvas22.fitCubicRun,
|
|
139
|
+
fitCubics: () => import_canvas22.fitCubics,
|
|
140
|
+
fitFreehandPath: () => import_canvas22.fitFreehandPath,
|
|
141
|
+
fitPathData: () => import_canvas22.fitPathData,
|
|
142
|
+
fitViewportToNodes: () => import_canvas23.fitViewportToNodes,
|
|
143
|
+
fitViewportToRect: () => import_canvas23.fitViewportToRect,
|
|
144
|
+
flattenSvgPath: () => import_canvas24.flattenSvgPath,
|
|
145
|
+
flowSide: () => import_canvas26.flowSide,
|
|
146
|
+
formatAnimationTime: () => import_canvas29.formatAnimationTime,
|
|
147
|
+
formatOklab: () => import_canvas29.formatOklab,
|
|
148
|
+
getAbsolutePosition: () => import_canvas23.getAbsolutePosition,
|
|
149
|
+
getAnimatableProperty: () => import_canvas29.getAnimatableProperty,
|
|
150
|
+
getAnimatedProperties: () => import_canvas29.getAnimatedProperties,
|
|
151
|
+
getAnimatedValue: () => import_canvas29.getAnimatedValue,
|
|
152
|
+
getAnimationDuration: () => import_canvas29.getAnimationDuration,
|
|
153
|
+
getAnimationTrack: () => import_canvas29.getAnimationTrack,
|
|
154
|
+
getAutoLayout: () => import_canvas27.getAutoLayout,
|
|
155
|
+
getAutoLayoutGrid: () => import_canvas27.getAutoLayoutGrid,
|
|
156
|
+
getAutoLayoutInsertTarget: () => import_canvas27.getAutoLayoutInsertTarget,
|
|
157
|
+
getBindableTokenProperties: () => import_canvas28.getBindableTokenProperties,
|
|
158
|
+
getCanvasComponentDragId: () => import_canvas30.getCanvasComponentDragId,
|
|
159
|
+
getCanvasTokenProperty: () => import_canvas28.getCanvasTokenProperty,
|
|
160
|
+
getCenteredNodePosition: () => import_canvas26.getCenteredNodePosition,
|
|
161
|
+
getChildLayout: () => import_canvas27.getChildLayout,
|
|
162
|
+
getComponentSourceId: () => import_canvas30.getComponentSourceId,
|
|
163
|
+
getCssPropertyAnimations: () => import_canvas29.getCssPropertyAnimations,
|
|
164
|
+
getEffectiveTokenModes: () => import_canvas28.getEffectiveTokenModes,
|
|
165
|
+
getFlowChildren: () => import_canvas27.getFlowChildren,
|
|
166
|
+
getInstanceData: () => import_canvas30.getInstanceData,
|
|
167
|
+
getInstanceStatus: () => import_canvas30.getInstanceStatus,
|
|
168
|
+
getKeyframeTimes: () => import_canvas29.getKeyframeTimes,
|
|
169
|
+
getLayoutParent: () => import_canvas27.getLayoutParent,
|
|
170
|
+
getLayoutSizing: () => import_canvas27.getLayoutSizing,
|
|
171
|
+
getLayoutedNodes: () => import_canvas26.getLayoutedNodes,
|
|
172
|
+
getNextVariantValues: () => import_canvas30.getNextVariantValues,
|
|
173
|
+
getNodeAnimation: () => import_canvas29.getNodeAnimation,
|
|
174
|
+
getNodeOverrides: () => import_canvas30.getNodeOverrides,
|
|
175
|
+
getNodeRect: () => import_canvas23.getNodeRect,
|
|
176
|
+
getNodeShape: () => import_canvas24.getNodeShape,
|
|
177
|
+
getNodeSize: () => import_canvas23.getNodeSize,
|
|
178
|
+
getNodeTokenBindings: () => import_canvas28.getNodeTokenBindings,
|
|
179
|
+
getNodeTokenModes: () => import_canvas28.getNodeTokenModes,
|
|
180
|
+
getResizingNodeRect: () => import_canvas22.getResizingNodeRect,
|
|
181
|
+
getShapeRenderData: () => import_canvas24.getShapeRenderData,
|
|
182
|
+
getShapeSvg: () => import_canvas24.getShapeSvg,
|
|
183
|
+
getTimelineRows: () => import_canvas29.getTimelineRows,
|
|
184
|
+
getTimelineTicks: () => import_canvas29.getTimelineTicks,
|
|
185
|
+
getTokenPropertyScope: () => import_canvas28.getTokenPropertyScope,
|
|
186
|
+
getTokensForProperty: () => import_canvas28.getTokensForProperty,
|
|
187
|
+
gradientToSvgDef: () => import_canvas30.gradientToSvgDef,
|
|
188
|
+
handlePoint: () => import_canvas23.handlePoint,
|
|
189
|
+
hasVisibleStroke: () => import_canvas25.hasVisibleStroke,
|
|
190
|
+
inferResizeHandle: () => import_canvas22.inferResizeHandle,
|
|
191
|
+
inspectCanvasInstance: () => import_canvas30.inspectCanvasInstance,
|
|
192
|
+
inspectNodeTokens: () => import_canvas28.inspectNodeTokens,
|
|
193
|
+
interpolateAnimationValue: () => import_canvas29.interpolateAnimationValue,
|
|
194
|
+
intersectPaths: () => import_canvas25.intersectPaths,
|
|
195
|
+
intersectPolygons: () => import_canvas24.intersectPolygons,
|
|
196
|
+
invertNodeUpdates: () => import_canvas23.invertNodeUpdates,
|
|
197
|
+
isAnimationEasing: () => import_canvas29.isAnimationEasing,
|
|
198
|
+
isAnimationKeyframe: () => import_canvas29.isAnimationKeyframe,
|
|
199
|
+
isAutoLayoutFrame: () => import_canvas27.isAutoLayoutFrame,
|
|
200
|
+
isCanvasComponent: () => import_canvas30.isCanvasComponent,
|
|
201
|
+
isCanvasComponentSet: () => import_canvas30.isCanvasComponentSet,
|
|
202
|
+
isCanvasGradient: () => import_canvas30.isCanvasGradient,
|
|
203
|
+
isCanvasInstance: () => import_canvas30.isCanvasInstance,
|
|
204
|
+
isCssExportExact: () => import_canvas29.isCssExportExact,
|
|
205
|
+
isEventFromTextInput: () => import_canvas26.isEventFromTextInput,
|
|
206
|
+
isKeyframeSelected: () => import_canvas29.isKeyframeSelected,
|
|
207
|
+
isLocked: () => import_canvas23.isLocked,
|
|
208
|
+
isMeasureModifierHeld: () => import_canvas22.isMeasureModifierHeld,
|
|
209
|
+
isNodeAnimated: () => import_canvas29.isNodeAnimated,
|
|
210
|
+
isShapeDescription: () => import_canvas24.isShapeDescription,
|
|
211
|
+
isShapeNode: () => import_canvas24.isShapeNode,
|
|
212
|
+
isStraightCubic: () => import_canvas22.isStraightCubic,
|
|
213
|
+
isValidCanvasNode: () => import_canvas26.isValidCanvasNode,
|
|
214
|
+
isValidUrl: () => import_canvas26.isValidUrl,
|
|
215
|
+
layoutAll: () => import_canvas27.layoutAll,
|
|
216
|
+
layoutBounds: () => import_canvas26.layoutBounds,
|
|
217
|
+
layoutFrame: () => import_canvas27.layoutFrame,
|
|
218
|
+
layoutUp: () => import_canvas27.layoutUp,
|
|
219
|
+
layoutUpMany: () => import_canvas27.layoutUpMany,
|
|
220
|
+
linearPositionTrajectory: () => import_canvas26.linearPositionTrajectory,
|
|
221
|
+
linearTrajectory: () => import_canvas26.linearTrajectory,
|
|
222
|
+
listCanvasComponents: () => import_canvas30.listCanvasComponents,
|
|
223
|
+
lockNodes: () => import_canvas23.lockNodes,
|
|
224
|
+
makeSizingCoherent: () => import_canvas27.makeSizingCoherent,
|
|
225
|
+
matchArrangeShortcut: () => import_canvas23.matchArrangeShortcut,
|
|
226
|
+
matchSize: () => import_canvas23.matchSize,
|
|
227
|
+
measureBetween: () => import_canvas22.measureBetween,
|
|
228
|
+
measureLabel: () => import_canvas22.measureLabel,
|
|
229
|
+
measureSelection: () => import_canvas22.measureSelection,
|
|
230
|
+
measureToLine: () => import_canvas22.measureToLine,
|
|
231
|
+
mergeNodeUpdates: () => import_canvas27.mergeNodeUpdates,
|
|
231
232
|
mermaidNodeStyle: () => mermaidNodeStyle,
|
|
232
|
-
mixColorsOklab: () =>
|
|
233
|
-
moveKeyframes: () =>
|
|
234
|
-
moveLayoutChild: () =>
|
|
235
|
-
multiPolygonArea: () =>
|
|
236
|
-
multiPolygonBounds: () =>
|
|
237
|
-
nearestHandlePositions: () =>
|
|
238
|
-
normalizeBezierPath: () =>
|
|
239
|
-
normalizeKeyframes: () =>
|
|
240
|
-
offsetPath: () =>
|
|
241
|
-
offsetShapeNodes: () =>
|
|
242
|
-
oklabToRgb: () =>
|
|
243
|
-
oppositePosition: () =>
|
|
244
|
-
outlineShapeNodeStrokes: () =>
|
|
245
|
-
outlineStroke: () =>
|
|
246
|
-
overlaps: () =>
|
|
247
|
-
parseCanvasClipboardData: () =>
|
|
248
|
-
parseCanvasScenes: () =>
|
|
249
|
-
parseCssEasing: () =>
|
|
250
|
-
parseCssGradient: () =>
|
|
251
|
-
parseKeyframeClipboard: () =>
|
|
252
|
-
parseOklab: () =>
|
|
253
|
-
parseSvgPath: () =>
|
|
254
|
-
pasteKeyframes: () =>
|
|
255
|
-
pathBoolean: () =>
|
|
256
|
-
placeBeside: () =>
|
|
257
|
-
playWebAnimations: () =>
|
|
258
|
-
pointInBezierPath: () =>
|
|
259
|
-
pointInMultiPolygon: () =>
|
|
260
|
-
pointInRings: () =>
|
|
261
|
-
polygonArea: () =>
|
|
262
|
-
polygonBoolean: () =>
|
|
263
|
-
polygonToSvgPath: () =>
|
|
264
|
-
positionToSide: () =>
|
|
265
|
-
pruneCanvasTokenModes: () =>
|
|
266
|
-
pushCanvasInstanceOverrides: () =>
|
|
267
|
-
readAnimatableValue: () =>
|
|
268
|
-
readNodeStyleProperty: () =>
|
|
269
|
-
readStyleSize: () =>
|
|
270
|
-
realClock: () =>
|
|
271
|
-
recordAnimationChanges: () =>
|
|
272
|
-
relayoutUpdates: () =>
|
|
273
|
-
remapPastedNodes: () =>
|
|
274
|
-
removeCanvasVariant: () =>
|
|
275
|
-
removeTrack: () =>
|
|
276
|
-
renameCanvasVariantProperty: () =>
|
|
277
|
-
renameCanvasVariantValue: () =>
|
|
278
|
-
reorderNodes: () =>
|
|
279
|
-
repositionNodesTo: () =>
|
|
280
|
-
resetCanvasInstanceOverrides: () =>
|
|
281
|
-
resizeHandleAxes: () =>
|
|
282
|
-
resolveCanvasGradient: () =>
|
|
283
|
-
resolveCanvasTokens: () =>
|
|
284
|
-
resolveEasing: () =>
|
|
285
|
-
resolvePadding: () =>
|
|
286
|
-
restoreCanvasMainComponent: () =>
|
|
287
|
-
revertShapeCombination: () =>
|
|
288
|
-
rgbToOklab: () =>
|
|
289
|
-
ringSignedArea: () =>
|
|
290
|
-
runMultiNodeTransition: () =>
|
|
291
|
-
sampleAnimationFrames: () =>
|
|
292
|
-
scaleKeyframes: () =>
|
|
293
|
-
serializeCanvasNodes: () =>
|
|
294
|
-
setCanvasComponentProperty: () =>
|
|
295
|
-
setCanvasInstanceProperties: () =>
|
|
296
|
-
setCanvasTokenMode: () =>
|
|
297
|
-
setCanvasVariantProperties: () =>
|
|
298
|
-
setKeyframe: () =>
|
|
299
|
-
setKeyframeEasing: () =>
|
|
300
|
-
setMotionPath: () =>
|
|
301
|
-
setTrackEnabled: () =>
|
|
302
|
-
shapeNodeToBezierPath: () =>
|
|
303
|
-
shapeNodeToPolygon: () =>
|
|
304
|
-
shapeToBezierPath: () =>
|
|
305
|
-
shapeToPolygon: () =>
|
|
306
|
-
sideToPosition: () =>
|
|
307
|
-
simplifyRing: () =>
|
|
308
|
-
snapKeyframeDelta: () =>
|
|
309
|
-
snapNodeDrag: () =>
|
|
310
|
-
snapNodeResize: () =>
|
|
311
|
-
snapResize: () =>
|
|
312
|
-
snapTimeToFrame: () =>
|
|
313
|
-
snapToGrid: () =>
|
|
314
|
-
springAt: () =>
|
|
315
|
-
streamlinePoints: () =>
|
|
316
|
-
strokeOutlineRings: () =>
|
|
317
|
-
strokePointsToPathData: () =>
|
|
318
|
-
strokeToShapeNode: () =>
|
|
319
|
-
subtractPaths: () =>
|
|
320
|
-
subtractPolygons: () =>
|
|
321
|
-
swapCanvasInstance: () =>
|
|
322
|
-
syncAllCanvasInstances: () =>
|
|
323
|
-
syncCanvasComponents: () =>
|
|
324
|
-
syncCanvasInstance: () =>
|
|
325
|
-
timeToX: () =>
|
|
326
|
-
toBezierPath: () =>
|
|
327
|
-
toWebAnimations: () =>
|
|
328
|
-
toggleLockNodes: () =>
|
|
329
|
-
transformBezierPath: () =>
|
|
330
|
-
unionPolygons: () =>
|
|
331
|
-
unitePaths: () =>
|
|
332
|
-
unlockNodes: () =>
|
|
333
|
-
updateKeyframe: () =>
|
|
233
|
+
mixColorsOklab: () => import_canvas29.mixColorsOklab,
|
|
234
|
+
moveKeyframes: () => import_canvas29.moveKeyframes,
|
|
235
|
+
moveLayoutChild: () => import_canvas27.moveLayoutChild,
|
|
236
|
+
multiPolygonArea: () => import_canvas24.multiPolygonArea,
|
|
237
|
+
multiPolygonBounds: () => import_canvas24.multiPolygonBounds,
|
|
238
|
+
nearestHandlePositions: () => import_canvas23.nearestHandlePositions,
|
|
239
|
+
normalizeBezierPath: () => import_canvas25.normalizeBezierPath,
|
|
240
|
+
normalizeKeyframes: () => import_canvas29.normalizeKeyframes,
|
|
241
|
+
offsetPath: () => import_canvas25.offsetPath,
|
|
242
|
+
offsetShapeNodes: () => import_canvas25.offsetShapeNodes,
|
|
243
|
+
oklabToRgb: () => import_canvas29.oklabToRgb,
|
|
244
|
+
oppositePosition: () => import_canvas23.oppositePosition,
|
|
245
|
+
outlineShapeNodeStrokes: () => import_canvas25.outlineShapeNodeStrokes,
|
|
246
|
+
outlineStroke: () => import_canvas25.outlineStroke,
|
|
247
|
+
overlaps: () => import_canvas26.overlaps,
|
|
248
|
+
parseCanvasClipboardData: () => import_canvas26.parseCanvasClipboardData,
|
|
249
|
+
parseCanvasScenes: () => import_canvas23.parseCanvasScenes,
|
|
250
|
+
parseCssEasing: () => import_canvas29.parseCssEasing,
|
|
251
|
+
parseCssGradient: () => import_canvas30.parseCssGradient,
|
|
252
|
+
parseKeyframeClipboard: () => import_canvas29.parseKeyframeClipboard,
|
|
253
|
+
parseOklab: () => import_canvas29.parseOklab,
|
|
254
|
+
parseSvgPath: () => import_canvas24.parseSvgPath,
|
|
255
|
+
pasteKeyframes: () => import_canvas29.pasteKeyframes,
|
|
256
|
+
pathBoolean: () => import_canvas25.pathBoolean,
|
|
257
|
+
placeBeside: () => import_canvas26.placeBeside,
|
|
258
|
+
playWebAnimations: () => import_canvas29.playWebAnimations,
|
|
259
|
+
pointInBezierPath: () => import_canvas25.pointInBezierPath,
|
|
260
|
+
pointInMultiPolygon: () => import_canvas24.pointInMultiPolygon,
|
|
261
|
+
pointInRings: () => import_canvas24.pointInRings,
|
|
262
|
+
polygonArea: () => import_canvas24.polygonArea,
|
|
263
|
+
polygonBoolean: () => import_canvas24.polygonBoolean,
|
|
264
|
+
polygonToSvgPath: () => import_canvas24.polygonToSvgPath,
|
|
265
|
+
positionToSide: () => import_canvas23.positionToSide,
|
|
266
|
+
pruneCanvasTokenModes: () => import_canvas28.pruneCanvasTokenModes,
|
|
267
|
+
pushCanvasInstanceOverrides: () => import_canvas30.pushCanvasInstanceOverrides,
|
|
268
|
+
readAnimatableValue: () => import_canvas29.readAnimatableValue,
|
|
269
|
+
readNodeStyleProperty: () => import_canvas28.readNodeStyleProperty,
|
|
270
|
+
readStyleSize: () => import_canvas23.readStyleSize,
|
|
271
|
+
realClock: () => import_canvas26.realClock,
|
|
272
|
+
recordAnimationChanges: () => import_canvas29.recordAnimationChanges,
|
|
273
|
+
relayoutUpdates: () => import_canvas27.relayoutUpdates,
|
|
274
|
+
remapPastedNodes: () => import_canvas26.remapPastedNodes,
|
|
275
|
+
removeCanvasVariant: () => import_canvas30.removeCanvasVariant,
|
|
276
|
+
removeTrack: () => import_canvas29.removeTrack,
|
|
277
|
+
renameCanvasVariantProperty: () => import_canvas30.renameCanvasVariantProperty,
|
|
278
|
+
renameCanvasVariantValue: () => import_canvas30.renameCanvasVariantValue,
|
|
279
|
+
reorderNodes: () => import_canvas23.reorderNodes,
|
|
280
|
+
repositionNodesTo: () => import_canvas26.repositionNodesTo,
|
|
281
|
+
resetCanvasInstanceOverrides: () => import_canvas30.resetCanvasInstanceOverrides,
|
|
282
|
+
resizeHandleAxes: () => import_canvas22.resizeHandleAxes,
|
|
283
|
+
resolveCanvasGradient: () => import_canvas30.resolveCanvasGradient,
|
|
284
|
+
resolveCanvasTokens: () => import_canvas28.resolveCanvasTokens,
|
|
285
|
+
resolveEasing: () => import_canvas29.resolveEasing,
|
|
286
|
+
resolvePadding: () => import_canvas27.resolvePadding,
|
|
287
|
+
restoreCanvasMainComponent: () => import_canvas30.restoreCanvasMainComponent,
|
|
288
|
+
revertShapeCombination: () => import_canvas24.revertShapeCombination,
|
|
289
|
+
rgbToOklab: () => import_canvas29.rgbToOklab,
|
|
290
|
+
ringSignedArea: () => import_canvas24.ringSignedArea,
|
|
291
|
+
runMultiNodeTransition: () => import_canvas26.runMultiNodeTransition,
|
|
292
|
+
sampleAnimationFrames: () => import_canvas29.sampleAnimationFrames,
|
|
293
|
+
scaleKeyframes: () => import_canvas29.scaleKeyframes,
|
|
294
|
+
serializeCanvasNodes: () => import_canvas26.serializeCanvasNodes,
|
|
295
|
+
setCanvasComponentProperty: () => import_canvas30.setCanvasComponentProperty,
|
|
296
|
+
setCanvasInstanceProperties: () => import_canvas30.setCanvasInstanceProperties,
|
|
297
|
+
setCanvasTokenMode: () => import_canvas28.setCanvasTokenMode,
|
|
298
|
+
setCanvasVariantProperties: () => import_canvas30.setCanvasVariantProperties,
|
|
299
|
+
setKeyframe: () => import_canvas29.setKeyframe,
|
|
300
|
+
setKeyframeEasing: () => import_canvas29.setKeyframeEasing,
|
|
301
|
+
setMotionPath: () => import_canvas29.setMotionPath,
|
|
302
|
+
setTrackEnabled: () => import_canvas29.setTrackEnabled,
|
|
303
|
+
shapeNodeToBezierPath: () => import_canvas25.shapeNodeToBezierPath,
|
|
304
|
+
shapeNodeToPolygon: () => import_canvas24.shapeNodeToPolygon,
|
|
305
|
+
shapeToBezierPath: () => import_canvas25.shapeToBezierPath,
|
|
306
|
+
shapeToPolygon: () => import_canvas24.shapeToPolygon,
|
|
307
|
+
sideToPosition: () => import_canvas23.sideToPosition,
|
|
308
|
+
simplifyRing: () => import_canvas24.simplifyRing,
|
|
309
|
+
snapKeyframeDelta: () => import_canvas29.snapKeyframeDelta,
|
|
310
|
+
snapNodeDrag: () => import_canvas23.snapNodeDrag,
|
|
311
|
+
snapNodeResize: () => import_canvas22.snapNodeResize,
|
|
312
|
+
snapResize: () => import_canvas22.snapResize,
|
|
313
|
+
snapTimeToFrame: () => import_canvas29.snapTimeToFrame,
|
|
314
|
+
snapToGrid: () => import_canvas22.snapToGrid,
|
|
315
|
+
springAt: () => import_canvas29.springAt,
|
|
316
|
+
streamlinePoints: () => import_canvas30.streamlinePoints,
|
|
317
|
+
strokeOutlineRings: () => import_canvas25.strokeOutlineRings,
|
|
318
|
+
strokePointsToPathData: () => import_canvas30.strokePointsToPathData,
|
|
319
|
+
strokeToShapeNode: () => import_canvas30.strokeToShapeNode,
|
|
320
|
+
subtractPaths: () => import_canvas25.subtractPaths,
|
|
321
|
+
subtractPolygons: () => import_canvas24.subtractPolygons,
|
|
322
|
+
swapCanvasInstance: () => import_canvas30.swapCanvasInstance,
|
|
323
|
+
syncAllCanvasInstances: () => import_canvas30.syncAllCanvasInstances,
|
|
324
|
+
syncCanvasComponents: () => import_canvas30.syncCanvasComponents,
|
|
325
|
+
syncCanvasInstance: () => import_canvas30.syncCanvasInstance,
|
|
326
|
+
timeToX: () => import_canvas29.timeToX,
|
|
327
|
+
toBezierPath: () => import_canvas25.toBezierPath,
|
|
328
|
+
toWebAnimations: () => import_canvas29.toWebAnimations,
|
|
329
|
+
toggleLockNodes: () => import_canvas23.toggleLockNodes,
|
|
330
|
+
transformBezierPath: () => import_canvas25.transformBezierPath,
|
|
331
|
+
unionPolygons: () => import_canvas24.unionPolygons,
|
|
332
|
+
unitePaths: () => import_canvas25.unitePaths,
|
|
333
|
+
unlockNodes: () => import_canvas23.unlockNodes,
|
|
334
|
+
updateKeyframe: () => import_canvas29.updateKeyframe,
|
|
334
335
|
useCanvasAnimation: () => useCanvasAnimation,
|
|
335
336
|
useCanvasArrange: () => useCanvasArrange,
|
|
336
337
|
useCanvasArrangeShortcuts: () => useCanvasArrangeShortcuts,
|
|
@@ -352,13 +353,13 @@ __export(canvas_exports, {
|
|
|
352
353
|
useMermaidStream: () => useMermaidStream,
|
|
353
354
|
usePresenceState: () => usePresenceState,
|
|
354
355
|
useStreamingCanvas: () => useStreamingCanvas,
|
|
355
|
-
withNodeAnimation: () =>
|
|
356
|
-
withStyleSize: () =>
|
|
357
|
-
wouldCreateComponentCycle: () =>
|
|
358
|
-
wrapAnimationTime: () =>
|
|
359
|
-
writeNodeStyleProperty: () =>
|
|
360
|
-
xToTime: () =>
|
|
361
|
-
xorPolygons: () =>
|
|
356
|
+
withNodeAnimation: () => import_canvas29.withNodeAnimation,
|
|
357
|
+
withStyleSize: () => import_canvas23.withStyleSize,
|
|
358
|
+
wouldCreateComponentCycle: () => import_canvas30.wouldCreateComponentCycle,
|
|
359
|
+
wrapAnimationTime: () => import_canvas29.wrapAnimationTime,
|
|
360
|
+
writeNodeStyleProperty: () => import_canvas28.writeNodeStyleProperty,
|
|
361
|
+
xToTime: () => import_canvas29.xToTime,
|
|
362
|
+
xorPolygons: () => import_canvas24.xorPolygons
|
|
362
363
|
});
|
|
363
364
|
module.exports = __toCommonJS(canvas_exports);
|
|
364
365
|
|
|
@@ -1577,8 +1578,8 @@ function useCanvasMeasure(options) {
|
|
|
1577
1578
|
}
|
|
1578
1579
|
|
|
1579
1580
|
// src/canvas/index.ts
|
|
1580
|
-
var import_canvas21 = require("@pixerate/editor/canvas");
|
|
1581
1581
|
var import_canvas22 = require("@pixerate/editor/canvas");
|
|
1582
|
+
var import_canvas23 = require("@pixerate/editor/canvas");
|
|
1582
1583
|
|
|
1583
1584
|
// src/canvas/ShapeNode.tsx
|
|
1584
1585
|
var import_canvas11 = require("@pixerate/editor/canvas");
|
|
@@ -1636,10 +1637,10 @@ function ShapeNode({ id, data, width, height, selected, className = "", children
|
|
|
1636
1637
|
}
|
|
1637
1638
|
|
|
1638
1639
|
// src/canvas/index.ts
|
|
1639
|
-
var import_canvas23 = require("@pixerate/editor/canvas");
|
|
1640
1640
|
var import_canvas24 = require("@pixerate/editor/canvas");
|
|
1641
1641
|
var import_canvas25 = require("@pixerate/editor/canvas");
|
|
1642
1642
|
var import_canvas26 = require("@pixerate/editor/canvas");
|
|
1643
|
+
var import_canvas27 = require("@pixerate/editor/canvas");
|
|
1643
1644
|
|
|
1644
1645
|
// src/canvas/useCanvasAutoLayout.ts
|
|
1645
1646
|
var import_react13 = require("react");
|
|
@@ -1851,7 +1852,7 @@ function TokenModeSwitcher({
|
|
|
1851
1852
|
}
|
|
1852
1853
|
|
|
1853
1854
|
// src/canvas/index.ts
|
|
1854
|
-
var
|
|
1855
|
+
var import_canvas28 = require("@pixerate/editor/canvas");
|
|
1855
1856
|
|
|
1856
1857
|
// src/canvas/useCanvasAnimation.ts
|
|
1857
1858
|
var import_react15 = require("react");
|
|
@@ -2105,7 +2106,7 @@ function AnimationTimeline({ animation, nodeIds, width = 360, snapThreshold = 8,
|
|
|
2105
2106
|
}
|
|
2106
2107
|
|
|
2107
2108
|
// src/canvas/index.ts
|
|
2108
|
-
var
|
|
2109
|
+
var import_canvas29 = require("@pixerate/editor/canvas");
|
|
2109
2110
|
|
|
2110
2111
|
// src/canvas/useCanvasComponents.ts
|
|
2111
2112
|
var import_react17 = require("react");
|
|
@@ -2516,7 +2517,7 @@ function CanvasInstanceInspector({
|
|
|
2516
2517
|
}
|
|
2517
2518
|
|
|
2518
2519
|
// src/canvas/index.ts
|
|
2519
|
-
var
|
|
2520
|
+
var import_canvas30 = require("@pixerate/editor/canvas");
|
|
2520
2521
|
|
|
2521
2522
|
// src/canvas/useMermaidDiagram.ts
|
|
2522
2523
|
var import_react19 = require("react");
|
|
@@ -2673,34 +2674,51 @@ function MermaidDiagramGroup({ data, selected, className = "", children }) {
|
|
|
2673
2674
|
);
|
|
2674
2675
|
}
|
|
2675
2676
|
|
|
2676
|
-
// src/canvas/
|
|
2677
|
+
// src/canvas/MermaidThumbnail.tsx
|
|
2677
2678
|
var import_react20 = require("react");
|
|
2678
2679
|
var import_diagram2 = require("@pixerate/editor/diagram");
|
|
2680
|
+
var import_canvas21 = require("@pixerate/editor/canvas");
|
|
2681
|
+
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
2682
|
+
function MermaidThumbnail({ source, className = "", fallback = null, ...options }) {
|
|
2683
|
+
const doc = (0, import_react20.useMemo)(() => typeof source === "string" ? (0, import_diagram2.parseMermaid)(source) : source, [source]);
|
|
2684
|
+
const key = JSON.stringify(options);
|
|
2685
|
+
const drawn = (0, import_react20.useMemo)(
|
|
2686
|
+
() => doc.tier === "editable" && doc.graph.nodes.length ? (0, import_canvas21.mermaidThumbnailSvg)(doc, options) : null,
|
|
2687
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2688
|
+
[doc, key]
|
|
2689
|
+
);
|
|
2690
|
+
if (!drawn) return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_jsx_runtime9.Fragment, { children: fallback });
|
|
2691
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: `pixerate-diagram-thumbnail ${className}`.trim(), style: { display: "inline-block", lineHeight: 0 }, dangerouslySetInnerHTML: { __html: drawn.svg } });
|
|
2692
|
+
}
|
|
2693
|
+
|
|
2694
|
+
// src/canvas/useDiagramDirector.ts
|
|
2695
|
+
var import_react21 = require("react");
|
|
2696
|
+
var import_diagram3 = require("@pixerate/editor/diagram");
|
|
2679
2697
|
function useDiagramDirector(controller, options) {
|
|
2680
|
-
const placement = (0,
|
|
2698
|
+
const placement = (0, import_react21.useRef)(options.placement);
|
|
2681
2699
|
placement.current = options.placement;
|
|
2682
|
-
const ref = (0,
|
|
2700
|
+
const ref = (0, import_react21.useRef)(null);
|
|
2683
2701
|
if (!ref.current) {
|
|
2684
|
-
const presence = new
|
|
2702
|
+
const presence = new import_diagram3.PresenceStore();
|
|
2685
2703
|
ref.current = {
|
|
2686
2704
|
presence,
|
|
2687
|
-
director: new
|
|
2705
|
+
director: new import_diagram3.DiagramDirector(controller, presence, { placement: () => placement.current(), speed: options.speed, clock: options.clock, linger: options.linger })
|
|
2688
2706
|
};
|
|
2689
2707
|
}
|
|
2690
2708
|
return ref.current;
|
|
2691
2709
|
}
|
|
2692
2710
|
function usePresenceState(presence) {
|
|
2693
|
-
return (0,
|
|
2711
|
+
return (0, import_react21.useSyncExternalStore)(presence.subscribe, presence.getState, presence.getState);
|
|
2694
2712
|
}
|
|
2695
2713
|
|
|
2696
2714
|
// src/canvas/DiagramPresenceLayer.tsx
|
|
2697
|
-
var
|
|
2715
|
+
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
2698
2716
|
function DiagramPresenceLayer({ presence, viewport, className = "" }) {
|
|
2699
2717
|
const { actors } = usePresenceState(presence);
|
|
2700
2718
|
if (!actors.length) return null;
|
|
2701
|
-
return /* @__PURE__ */ (0,
|
|
2702
|
-
/* @__PURE__ */ (0,
|
|
2703
|
-
/* @__PURE__ */ (0,
|
|
2719
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: `pixerate-diagram-presence ${className}`.trim(), "aria-hidden": "true", style: { position: "absolute", inset: 0, pointerEvents: "none", overflow: "hidden", zIndex: 50 }, children: actors.map((a) => /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { "data-actor": a.id, style: { position: "absolute", left: 0, top: 0, transform: `translate(${a.x * viewport.zoom + viewport.x}px, ${a.y * viewport.zoom + viewport.y}px)` }, children: [
|
|
2720
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("svg", { width: "18", height: "20", viewBox: "0 0 12 18", style: { display: "block", transform: a.pressed ? "scale(0.85)" : void 0, transformOrigin: "0 0" }, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("path", { d: "M0,0 L0,14 L4,10.5 L7,17 L9.5,16 L6.5,9.5 L11.5,9.5 Z", style: { fill: a.color, stroke: "#ffffff", strokeWidth: 1 } }) }),
|
|
2721
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { style: { position: "absolute", left: 14, top: 16, whiteSpace: "nowrap", borderRadius: 4, padding: "1px 6px", fontSize: 11, fontWeight: 600, color: "#ffffff", background: a.color }, children: a.message ?? a.name })
|
|
2704
2722
|
] }, a.id)) });
|
|
2705
2723
|
}
|
|
2706
2724
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -2733,6 +2751,7 @@ function DiagramPresenceLayer({ presence, viewport, className = "" }) {
|
|
|
2733
2751
|
ManualClock,
|
|
2734
2752
|
MermaidDiagramGroup,
|
|
2735
2753
|
MermaidDiagramNode,
|
|
2754
|
+
MermaidThumbnail,
|
|
2736
2755
|
RESIZE_HANDLES,
|
|
2737
2756
|
SHAPE_DATA_KEY,
|
|
2738
2757
|
SHAPE_KINDS,
|