@pixerate/editor 0.57.0 → 0.59.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.
Files changed (53) hide show
  1. package/dist/animation/index.cjs +23 -3
  2. package/dist/animation/index.cjs.map +1 -1
  3. package/dist/animation/index.d.cts +3 -2
  4. package/dist/animation/index.d.ts +3 -2
  5. package/dist/animation/index.js +23 -3
  6. package/dist/animation-editor/index.cjs +836 -158
  7. package/dist/animation-editor/index.cjs.map +1 -1
  8. package/dist/animation-editor/index.d.cts +454 -40
  9. package/dist/animation-editor/index.d.ts +454 -40
  10. package/dist/animation-editor/index.js +790 -112
  11. package/dist/animation-editor/index.js.map +1 -1
  12. package/dist/behavior-Ymbld6jL.d.cts +60 -0
  13. package/dist/behavior-Ymbld6jL.d.ts +60 -0
  14. package/dist/canvas/index.cjs +35 -29
  15. package/dist/canvas/index.cjs.map +1 -1
  16. package/dist/canvas/index.d.cts +4 -4
  17. package/dist/canvas/index.d.ts +4 -4
  18. package/dist/canvas/index.js +9 -3
  19. package/dist/canvas/index.js.map +1 -1
  20. package/dist/{chunk-O4ONBPZW.cjs → chunk-2FGRTYJN.cjs} +4 -4
  21. package/dist/{chunk-O4ONBPZW.cjs.map → chunk-2FGRTYJN.cjs.map} +1 -1
  22. package/dist/{chunk-XZ4L3R4K.cjs → chunk-2FHLHZAL.cjs} +39 -3
  23. package/dist/chunk-2FHLHZAL.cjs.map +1 -0
  24. package/dist/chunk-3NYXDBBW.js +122 -0
  25. package/dist/chunk-3NYXDBBW.js.map +1 -0
  26. package/dist/{chunk-NONDTTH7.js → chunk-3TLL5OID.js} +17 -2
  27. package/dist/{chunk-NONDTTH7.js.map → chunk-3TLL5OID.js.map} +1 -1
  28. package/dist/{chunk-UB2OY7FD.js → chunk-AGR4P4UZ.js} +38 -2
  29. package/dist/chunk-AGR4P4UZ.js.map +1 -0
  30. package/dist/{chunk-SHOVAHUB.js → chunk-JK6M6V7G.js} +2 -2
  31. package/dist/{chunk-XCXQDPID.cjs → chunk-YJLCBA7V.cjs} +25 -10
  32. package/dist/chunk-YJLCBA7V.cjs.map +1 -0
  33. package/dist/chunk-ZCNLBRT6.cjs +122 -0
  34. package/dist/chunk-ZCNLBRT6.cjs.map +1 -0
  35. package/dist/{easing-CNGk-W6d.d.ts → easing-lM0Xo9Ni.d.cts} +14 -2
  36. package/dist/{easing-CNGk-W6d.d.cts → easing-lM0Xo9Ni.d.ts} +14 -2
  37. package/dist/parameters/index.cjs +2 -2
  38. package/dist/parameters/index.d.cts +1 -1
  39. package/dist/parameters/index.d.ts +1 -1
  40. package/dist/parameters/index.js +1 -1
  41. package/dist/{player-W-5DX3Go.d.ts → player-DV4Jujdq.d.ts} +1 -1
  42. package/dist/{player-Dg0FT0UI.d.cts → player-DrcP2xqj.d.cts} +1 -1
  43. package/dist/{svg-CPK82TtU.d.ts → svg-Dh17jCyA.d.ts} +22 -1
  44. package/dist/{svg-CLg2zqZA.d.cts → svg-ymShkNtu.d.cts} +22 -1
  45. package/dist/vector/index.cjs +472 -472
  46. package/dist/vector/index.d.cts +3 -3
  47. package/dist/vector/index.d.ts +3 -3
  48. package/dist/vector/index.js +2 -2
  49. package/package.json +1 -1
  50. package/dist/chunk-UB2OY7FD.js.map +0 -1
  51. package/dist/chunk-XCXQDPID.cjs.map +0 -1
  52. package/dist/chunk-XZ4L3R4K.cjs.map +0 -1
  53. /package/dist/{chunk-SHOVAHUB.js.map → chunk-JK6M6V7G.js.map} +0 -0
@@ -1,7 +1,7 @@
1
1
  import { R as Rect, C as CanvasNode, X as XYPosition, b as CanvasEdge, I as IncrementalLayoutOptions, S as Side, c as CanvasLayoutOptions, d as PlaceBesideOptions, T as TrajectoryFunction, F as FanOutTrajectoryOptions, N as NodeTransition, a as CanvasNodeStyle, e as ReflowDisplacementOptions, D as DirectionalDisplacementOptions, f as CanvasClipboardPayload, g as Position, P as Point } from '../types-BFkYA4eF.cjs';
2
2
  export { h as CanvasDockingCallbacks, i as CollapseNodeOptions, j as DisplacementDirection, k as DockStrategy, E as ExplodeNodeOptions, l as ExplosionSnapshot, G as GraphDifferences, m as TrajectoryPoint } from '../types-BFkYA4eF.cjs';
3
- import { C as Clock, h as AnimationValueType, g as AnimationValue, f as AnimationTrack, b as AnimationLoopMode, e as AnimationPlayerState, c as AnimationPlayer } from '../player-Dg0FT0UI.cjs';
4
- export { A as ANIMATION_TIME_EPSILON, a as AnimationKeyframe, d as AnimationPlayerOptions, M as ManualClock, i as createAnimationPlayer, j as evaluateTrack, k as interpolateAnimationValue, l as isAnimationKeyframe, n as normalizeKeyframes, p as pageHidden, r as realClock, w as wrapAnimationTime } from '../player-Dg0FT0UI.cjs';
3
+ import { C as Clock, h as AnimationValueType, g as AnimationValue, f as AnimationTrack, b as AnimationLoopMode, e as AnimationPlayerState, c as AnimationPlayer } from '../player-DrcP2xqj.cjs';
4
+ export { A as ANIMATION_TIME_EPSILON, a as AnimationKeyframe, d as AnimationPlayerOptions, M as ManualClock, i as createAnimationPlayer, j as evaluateTrack, k as interpolateAnimationValue, l as isAnimationKeyframe, n as normalizeKeyframes, p as pageHidden, r as realClock, w as wrapAnimationTime } from '../player-DrcP2xqj.cjs';
5
5
  import { b as CanvasNodeUpdate, N as NodeRectOptions, A as AlignEdge, c as AlignNodesOptions, D as DistributeAxis, a as DistributeMode, d as DistributeNodesOptions, S as SizeDimension, M as MatchSizeOptions, Z as ZOrderOperation, C as CanvasArrangeAction } from '../arrange-B6GH5Qcc.cjs';
6
6
  export { e as ArrangeShortcutBinding, f as DEFAULT_ARRANGE_SHORTCUTS, L as LOCKED_DATA_KEY, g as LOCKED_PREVIOUS_FLAGS_KEY, h as alignNodes, i as applyNodeUpdates, j as createNodeLookup, k as distributeNodes, l as getAbsolutePosition, m as getNodeRect, n as getNodeSize, o as invertNodeUpdates, p as isLocked, q as lockNodes, r as matchArrangeShortcut, s as matchSize, t as readStyleSize, u as reorderNodes, v as toggleLockNodes, w as unlockNodes, x as withStyleSize } from '../arrange-B6GH5Qcc.cjs';
7
7
  import { C as Command, M as MergedExecutionOptions } from '../types-DsiXGmjo.cjs';
@@ -10,8 +10,8 @@ export { A as AffineMatrix, h as BezierCommand, d as BezierContour, i as BezierP
10
10
  import { S as StrokeJoin, a as StrokeCap } from '../pathfinder-BZL8aSu0.cjs';
11
11
  export { D as DashedPath, d as DividePathsResult, O as OffsetPathOptions, e as OutlineStrokeOptions, f as PATHFINDER_OPERATIONS, g as PathBooleanOperation, h as PathBooleanResult, i as PathOperand, j as PathOperandInput, k as PathOpsError, l as PathOpsOptions, m as PathOpsReport, n as PathPiece, o as PathSelectResult, b as PathfinderOperation, p as PathfinderPiece, q as PathfinderResult, c as PathfinderShape, r as PlanarChain, s as PlanarFace, t as PlanarInput, P as PlanarMap, u as PlanarMapOptions, v as PlanarSplitEdge, w as PlanarSplitResult, x as SegmentIntersection, y as bezierPathArea, z as contourEnclosesArea, A as cutOutPiece, B as dashContours, C as dividePaths, E as excludePaths, F as interiorPoint, G as intersectPaths, H as normalizeBezierPath, I as offsetPath, J as outlineStroke, K as pathBoolean, L as pathBooleanSelect, M as pathfinder, N as planarSplit, Q as segmentIntersections, R as strokeOutlineRings, T as subtractPaths, U as unitePaths } from '../pathfinder-BZL8aSu0.cjs';
12
12
  import { d as TokenModeContext, r as TokenType, o as TokenScope, f as TokenLiteral, c as TokenVariable, e as TokenResolution, T as TokenState } from '../model-C1zApQM8.cjs';
13
- import { b as AnimationEasing } from '../easing-CNGk-W6d.cjs';
14
- export { A as ANIMATION_EASING_LABELS, a as ANIMATION_EASING_PRESETS, c as AnimationEasingPreset, C as CUBIC_BEZIER_PRESETS, d as CubicBezierEasing, E as ElasticEasing, S as SpringEasing, e as cubicBezierAt, f as easingFromInfluence, g as easingLabel, h as easingToCss, i as elasticAt, j as evaluateEasing, k as isAnimationEasing, p as parseCssEasing, r as resolveEasing, s as springAt } from '../easing-CNGk-W6d.cjs';
13
+ import { b as AnimationEasing } from '../easing-lM0Xo9Ni.cjs';
14
+ export { A as ANIMATION_EASING_LABELS, a as ANIMATION_EASING_PRESETS, c as AnimationEasingPreset, C as CUBIC_BEZIER_PRESETS, d as CubicBezierEasing, E as ElasticEasing, S as SPRING_PRESETS, e as SpringEasing, f as cubicBezierAt, g as easingFromInfluence, h as easingLabel, i as easingToCss, j as elasticAt, k as evaluateEasing, l as isAnimationEasing, p as parseCssEasing, r as resolveEasing, m as reverseCubicBezier, s as springAt, n as springSettleMs } from '../easing-lM0Xo9Ni.cjs';
15
15
  export { O as OklabColor, f as formatOklab, m as mixColorsOklab, o as oklabToRgb, p as parseOklab, r as rgbToOklab } from '../color-E9pwm--w.cjs';
16
16
  import { P as Point$1, G as GraphNode, D as DiagramFamily, a as DiagramGraph, b as DiagramMeta, c as GraphGroup, d as GraphEdge, E as EdgePattern, A as ArrowHead, M as MermaidDocument, e as EditOp } from '../types-DYkjhzdz.cjs';
17
17
  import { n as ChartSpec } from '../types-BRp-6zkY.cjs';
@@ -1,7 +1,7 @@
1
1
  import { R as Rect, C as CanvasNode, X as XYPosition, b as CanvasEdge, I as IncrementalLayoutOptions, S as Side, c as CanvasLayoutOptions, d as PlaceBesideOptions, T as TrajectoryFunction, F as FanOutTrajectoryOptions, N as NodeTransition, a as CanvasNodeStyle, e as ReflowDisplacementOptions, D as DirectionalDisplacementOptions, f as CanvasClipboardPayload, g as Position, P as Point } from '../types-BFkYA4eF.js';
2
2
  export { h as CanvasDockingCallbacks, i as CollapseNodeOptions, j as DisplacementDirection, k as DockStrategy, E as ExplodeNodeOptions, l as ExplosionSnapshot, G as GraphDifferences, m as TrajectoryPoint } from '../types-BFkYA4eF.js';
3
- import { C as Clock, h as AnimationValueType, g as AnimationValue, f as AnimationTrack, b as AnimationLoopMode, e as AnimationPlayerState, c as AnimationPlayer } from '../player-W-5DX3Go.js';
4
- export { A as ANIMATION_TIME_EPSILON, a as AnimationKeyframe, d as AnimationPlayerOptions, M as ManualClock, i as createAnimationPlayer, j as evaluateTrack, k as interpolateAnimationValue, l as isAnimationKeyframe, n as normalizeKeyframes, p as pageHidden, r as realClock, w as wrapAnimationTime } from '../player-W-5DX3Go.js';
3
+ import { C as Clock, h as AnimationValueType, g as AnimationValue, f as AnimationTrack, b as AnimationLoopMode, e as AnimationPlayerState, c as AnimationPlayer } from '../player-DV4Jujdq.js';
4
+ export { A as ANIMATION_TIME_EPSILON, a as AnimationKeyframe, d as AnimationPlayerOptions, M as ManualClock, i as createAnimationPlayer, j as evaluateTrack, k as interpolateAnimationValue, l as isAnimationKeyframe, n as normalizeKeyframes, p as pageHidden, r as realClock, w as wrapAnimationTime } from '../player-DV4Jujdq.js';
5
5
  import { b as CanvasNodeUpdate, N as NodeRectOptions, A as AlignEdge, c as AlignNodesOptions, D as DistributeAxis, a as DistributeMode, d as DistributeNodesOptions, S as SizeDimension, M as MatchSizeOptions, Z as ZOrderOperation, C as CanvasArrangeAction } from '../arrange-BPAXGdMm.js';
6
6
  export { e as ArrangeShortcutBinding, f as DEFAULT_ARRANGE_SHORTCUTS, L as LOCKED_DATA_KEY, g as LOCKED_PREVIOUS_FLAGS_KEY, h as alignNodes, i as applyNodeUpdates, j as createNodeLookup, k as distributeNodes, l as getAbsolutePosition, m as getNodeRect, n as getNodeSize, o as invertNodeUpdates, p as isLocked, q as lockNodes, r as matchArrangeShortcut, s as matchSize, t as readStyleSize, u as reorderNodes, v as toggleLockNodes, w as unlockNodes, x as withStyleSize } from '../arrange-BPAXGdMm.js';
7
7
  import { C as Command, M as MergedExecutionOptions } from '../types-DsiXGmjo.js';
@@ -10,8 +10,8 @@ export { A as AffineMatrix, h as BezierCommand, d as BezierContour, i as BezierP
10
10
  import { S as StrokeJoin, a as StrokeCap } from '../pathfinder-CNtsbCRK.js';
11
11
  export { D as DashedPath, d as DividePathsResult, O as OffsetPathOptions, e as OutlineStrokeOptions, f as PATHFINDER_OPERATIONS, g as PathBooleanOperation, h as PathBooleanResult, i as PathOperand, j as PathOperandInput, k as PathOpsError, l as PathOpsOptions, m as PathOpsReport, n as PathPiece, o as PathSelectResult, b as PathfinderOperation, p as PathfinderPiece, q as PathfinderResult, c as PathfinderShape, r as PlanarChain, s as PlanarFace, t as PlanarInput, P as PlanarMap, u as PlanarMapOptions, v as PlanarSplitEdge, w as PlanarSplitResult, x as SegmentIntersection, y as bezierPathArea, z as contourEnclosesArea, A as cutOutPiece, B as dashContours, C as dividePaths, E as excludePaths, F as interiorPoint, G as intersectPaths, H as normalizeBezierPath, I as offsetPath, J as outlineStroke, K as pathBoolean, L as pathBooleanSelect, M as pathfinder, N as planarSplit, Q as segmentIntersections, R as strokeOutlineRings, T as subtractPaths, U as unitePaths } from '../pathfinder-CNtsbCRK.js';
12
12
  import { d as TokenModeContext, r as TokenType, o as TokenScope, f as TokenLiteral, c as TokenVariable, e as TokenResolution, T as TokenState } from '../model-C1zApQM8.js';
13
- import { b as AnimationEasing } from '../easing-CNGk-W6d.js';
14
- export { A as ANIMATION_EASING_LABELS, a as ANIMATION_EASING_PRESETS, c as AnimationEasingPreset, C as CUBIC_BEZIER_PRESETS, d as CubicBezierEasing, E as ElasticEasing, S as SpringEasing, e as cubicBezierAt, f as easingFromInfluence, g as easingLabel, h as easingToCss, i as elasticAt, j as evaluateEasing, k as isAnimationEasing, p as parseCssEasing, r as resolveEasing, s as springAt } from '../easing-CNGk-W6d.js';
13
+ import { b as AnimationEasing } from '../easing-lM0Xo9Ni.js';
14
+ export { A as ANIMATION_EASING_LABELS, a as ANIMATION_EASING_PRESETS, c as AnimationEasingPreset, C as CUBIC_BEZIER_PRESETS, d as CubicBezierEasing, E as ElasticEasing, S as SPRING_PRESETS, e as SpringEasing, f as cubicBezierAt, g as easingFromInfluence, h as easingLabel, i as easingToCss, j as elasticAt, k as evaluateEasing, l as isAnimationEasing, p as parseCssEasing, r as resolveEasing, m as reverseCubicBezier, s as springAt, n as springSettleMs } from '../easing-lM0Xo9Ni.js';
15
15
  export { O as OklabColor, f as formatOklab, m as mixColorsOklab, o as oklabToRgb, p as parseOklab, r as rgbToOklab } from '../color-E9pwm--w.js';
16
16
  import { P as Point$1, G as GraphNode, D as DiagramFamily, a as DiagramGraph, b as DiagramMeta, c as GraphGroup, d as GraphEdge, E as EdgePattern, A as ArrowHead, M as MermaidDocument, e as EditOp } from '../types-DYkjhzdz.js';
17
17
  import { n as ChartSpec } from '../types-BRp-6zkY.js';
@@ -169,7 +169,7 @@ import {
169
169
  pageHidden,
170
170
  realClock,
171
171
  wrapAnimationTime
172
- } from "../chunk-SHOVAHUB.js";
172
+ } from "../chunk-JK6M6V7G.js";
173
173
  import {
174
174
  formatOklab,
175
175
  mixColorsOklab,
@@ -184,6 +184,7 @@ import {
184
184
  ANIMATION_EASING_LABELS,
185
185
  ANIMATION_EASING_PRESETS,
186
186
  CUBIC_BEZIER_PRESETS,
187
+ SPRING_PRESETS,
187
188
  cubicBezierAt,
188
189
  easingFromInfluence,
189
190
  easingLabel,
@@ -193,8 +194,10 @@ import {
193
194
  isAnimationEasing,
194
195
  parseCssEasing,
195
196
  resolveEasing,
196
- springAt
197
- } from "../chunk-UB2OY7FD.js";
197
+ reverseCubicBezier,
198
+ springAt,
199
+ springSettleMs
200
+ } from "../chunk-AGR4P4UZ.js";
198
201
 
199
202
  // src/canvas/trajectory.ts
200
203
  var defaultEasing = (t) => --t * t * t + 1;
@@ -11407,6 +11410,7 @@ export {
11407
11410
  SHAPE_KINDS,
11408
11411
  SHAPE_NODE_TYPE,
11409
11412
  SHAPE_OPERATIONS,
11413
+ SPRING_PRESETS,
11410
11414
  StreamingLayoutManager,
11411
11415
  TOKEN_BINDINGS_DATA_KEY,
11412
11416
  TOKEN_MODES_DATA_KEY,
@@ -11737,6 +11741,7 @@ export {
11737
11741
  resolveMermaidStyles,
11738
11742
  resolvePadding,
11739
11743
  restoreCanvasMainComponent,
11744
+ reverseCubicBezier,
11740
11745
  revertShapeCombination,
11741
11746
  rgbToOklab,
11742
11747
  ringSignedArea,
@@ -11778,6 +11783,7 @@ export {
11778
11783
  snapToGrid,
11779
11784
  splitSegment,
11780
11785
  springAt,
11786
+ springSettleMs,
11781
11787
  streamedDiagramText,
11782
11788
  streamlinePoints,
11783
11789
  strokeBoundingBox,