@pixerate/editor 0.37.0 → 0.38.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/THIRD_PARTY_NOTICES.md +7 -0
- package/dist/canvas/index.cjs +37 -25
- package/dist/canvas/index.cjs.map +1 -1
- package/dist/canvas/index.d.cts +2 -2
- package/dist/canvas/index.d.ts +2 -2
- package/dist/canvas/index.js +13 -1
- package/dist/canvas/index.js.map +1 -1
- package/dist/{chunk-GVB7ZPLZ.cjs → chunk-7EDLVBOO.cjs} +649 -18
- package/dist/chunk-7EDLVBOO.cjs.map +1 -0
- package/dist/{chunk-HPEKB352.js → chunk-ZCCU3VNI.js} +646 -15
- package/dist/chunk-ZCCU3VNI.js.map +1 -0
- package/dist/{stroke-CWjFKal4.d.cts → pathfinder-Bd87_lsQ.d.cts} +234 -1
- package/dist/{stroke-ysgaPpAo.d.ts → pathfinder-fLmmFOJw.d.ts} +234 -1
- package/dist/vector/index.cjs +860 -274
- package/dist/vector/index.cjs.map +1 -1
- package/dist/vector/index.d.cts +242 -3
- package/dist/vector/index.d.ts +242 -3
- package/dist/vector/index.js +611 -25
- package/dist/vector/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-GVB7ZPLZ.cjs.map +0 -1
- package/dist/chunk-HPEKB352.js.map +0 -1
package/dist/canvas/index.d.cts
CHANGED
|
@@ -5,8 +5,8 @@ export { ANIMATION_TIME_EPSILON, AnimationKeyframe, AnimationPlayerOptions, Manu
|
|
|
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';
|
|
8
|
-
import { b as StrokeJoin, c as StrokeCap,
|
|
9
|
-
export { A as AffineMatrix,
|
|
8
|
+
import { b as StrokeJoin, c as StrokeCap, g as ShapeDescription, a as BezierPath, h as PolygonFillRule, i as PolygonRing, j as ShapeSize, C as CanvasGradientDef } from '../pathfinder-Bd87_lsQ.cjs';
|
|
9
|
+
export { A as AffineMatrix, k as BezierCommand, l as BezierContour, B as BezierPathInput, m as BezierPathToSvgOptions, d as BezierSegment, n as CANVAS_GRADIENT_PRESETS, o as CanvasLinearGradient, p as CanvasRadialGradient, D as DashedPath, q as DividePathsResult, E as EllipseShape, F as FlattenOptions, G as GetShapeRenderDataOptions, r as GradientStop, M as MultiPolygon, O as OffsetPathOptions, s as OutlineStrokeOptions, t as PATHFINDER_OPERATIONS, u as PathBooleanOperation, v as PathBooleanResult, w as PathCommand, x as PathOperand, y as PathOperandInput, z as PathOpsError, H as PathOpsOptions, I as PathOpsReport, J as PathPiece, K as PathPointAtLength, L as PathSelectResult, N as PathShape, e as PathfinderOperation, Q as PathfinderPiece, R as PathfinderResult, f as PathfinderShape, T as PlanarChain, U as PlanarFace, V as PlanarInput, P as PlanarMap, W as PlanarMapOptions, X as PlanarSplitEdge, Y as PlanarSplitResult, Z as PolygonBooleanOperation, _ as PolygonBooleanOptions, $ as PolygonInput, a0 as PolygonOperand, a1 as PolygonPiece, a2 as PolygonToPathOptions, a3 as PolygonWithHoles, a4 as RectShape, a5 as RegularPolygonShape, a6 as SHAPE_KINDS, a7 as SegmentIntersection, a8 as ShapeKind, a9 as ShapePaint, aa as ShapeRenderData, ab as StarShape, S as SvgGradientDef, ac as SvgGradientStop, ad as angleToSvgLinearCoords, ae as arcToCubics, af as bezierPathArea, ag as bezierPathBounds, ah as bezierPathLength, ai as bezierPathPointAtLength, aj as bezierPathSignedArea, ak as bezierPathToSvg, al as closeContour, am as contourSignedArea, an as contoursToPath, ao as countPathSegments, ap as dashContours, aq as distanceToBezierPath, ar as dividePaths, as as dividePolygons, at as excludePaths, au as flattenSvgPath, av as formatNumber, aw as getShapeRenderData, ax as getShapeSvg, ay as gradientToSvgDef, az as interiorPoint, aA as intersectPaths, aB as intersectPolygons, aC as isCanvasGradient, aD as isShapeDescription, aE as multiPolygonArea, aF as multiPolygonBounds, aG as normalizeBezierPath, aH as offsetPath, aI as outlineStroke, aJ as parseCssGradient, aK as parseSvgPath, aL as pathBoolean, aM as pathBooleanSelect, aN as pathToContours, aO as pathfinder, aP as planarSplit, aQ as pointInBezierPath, aR as pointInMultiPolygon, aS as pointInRings, aT as polygonArea, aU as polygonBoolean, aV as polygonToSvgPath, aW as resolveCanvasGradient, aX as ringSignedArea, aY as segmentBounds, aZ as segmentCurvature, a_ as segmentDerivative, a$ as segmentExtrema, b0 as segmentIntersections, b1 as segmentLength, b2 as segmentNearest, b3 as segmentParamAtLength, b4 as segmentPoint, b5 as segmentTangent, b6 as shapeToPolygon, b7 as simplifyRing, b8 as splitSegment, b9 as strokeOutlineRings, ba as subSegment, bb as subtractPaths, bc as subtractPolygons, bd as toBezierPath, be as transformBezierPath, bf as trimSegments, bg as unionPolygons, bh as unitePaths, bi as windingNumber, bj as xorPolygons } from '../pathfinder-Bd87_lsQ.cjs';
|
|
10
10
|
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';
|
|
11
11
|
import { A as AnimationEasing } from '../easing-DTmX99QG.cjs';
|
|
12
12
|
export { a as ANIMATION_EASING_LABELS, b 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-DTmX99QG.cjs';
|
package/dist/canvas/index.d.ts
CHANGED
|
@@ -5,8 +5,8 @@ export { ANIMATION_TIME_EPSILON, AnimationKeyframe, AnimationPlayerOptions, Manu
|
|
|
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';
|
|
8
|
-
import { b as StrokeJoin, c as StrokeCap,
|
|
9
|
-
export { A as AffineMatrix,
|
|
8
|
+
import { b as StrokeJoin, c as StrokeCap, g as ShapeDescription, a as BezierPath, h as PolygonFillRule, i as PolygonRing, j as ShapeSize, C as CanvasGradientDef } from '../pathfinder-fLmmFOJw.js';
|
|
9
|
+
export { A as AffineMatrix, k as BezierCommand, l as BezierContour, B as BezierPathInput, m as BezierPathToSvgOptions, d as BezierSegment, n as CANVAS_GRADIENT_PRESETS, o as CanvasLinearGradient, p as CanvasRadialGradient, D as DashedPath, q as DividePathsResult, E as EllipseShape, F as FlattenOptions, G as GetShapeRenderDataOptions, r as GradientStop, M as MultiPolygon, O as OffsetPathOptions, s as OutlineStrokeOptions, t as PATHFINDER_OPERATIONS, u as PathBooleanOperation, v as PathBooleanResult, w as PathCommand, x as PathOperand, y as PathOperandInput, z as PathOpsError, H as PathOpsOptions, I as PathOpsReport, J as PathPiece, K as PathPointAtLength, L as PathSelectResult, N as PathShape, e as PathfinderOperation, Q as PathfinderPiece, R as PathfinderResult, f as PathfinderShape, T as PlanarChain, U as PlanarFace, V as PlanarInput, P as PlanarMap, W as PlanarMapOptions, X as PlanarSplitEdge, Y as PlanarSplitResult, Z as PolygonBooleanOperation, _ as PolygonBooleanOptions, $ as PolygonInput, a0 as PolygonOperand, a1 as PolygonPiece, a2 as PolygonToPathOptions, a3 as PolygonWithHoles, a4 as RectShape, a5 as RegularPolygonShape, a6 as SHAPE_KINDS, a7 as SegmentIntersection, a8 as ShapeKind, a9 as ShapePaint, aa as ShapeRenderData, ab as StarShape, S as SvgGradientDef, ac as SvgGradientStop, ad as angleToSvgLinearCoords, ae as arcToCubics, af as bezierPathArea, ag as bezierPathBounds, ah as bezierPathLength, ai as bezierPathPointAtLength, aj as bezierPathSignedArea, ak as bezierPathToSvg, al as closeContour, am as contourSignedArea, an as contoursToPath, ao as countPathSegments, ap as dashContours, aq as distanceToBezierPath, ar as dividePaths, as as dividePolygons, at as excludePaths, au as flattenSvgPath, av as formatNumber, aw as getShapeRenderData, ax as getShapeSvg, ay as gradientToSvgDef, az as interiorPoint, aA as intersectPaths, aB as intersectPolygons, aC as isCanvasGradient, aD as isShapeDescription, aE as multiPolygonArea, aF as multiPolygonBounds, aG as normalizeBezierPath, aH as offsetPath, aI as outlineStroke, aJ as parseCssGradient, aK as parseSvgPath, aL as pathBoolean, aM as pathBooleanSelect, aN as pathToContours, aO as pathfinder, aP as planarSplit, aQ as pointInBezierPath, aR as pointInMultiPolygon, aS as pointInRings, aT as polygonArea, aU as polygonBoolean, aV as polygonToSvgPath, aW as resolveCanvasGradient, aX as ringSignedArea, aY as segmentBounds, aZ as segmentCurvature, a_ as segmentDerivative, a$ as segmentExtrema, b0 as segmentIntersections, b1 as segmentLength, b2 as segmentNearest, b3 as segmentParamAtLength, b4 as segmentPoint, b5 as segmentTangent, b6 as shapeToPolygon, b7 as simplifyRing, b8 as splitSegment, b9 as strokeOutlineRings, ba as subSegment, bb as subtractPaths, bc as subtractPolygons, bd as toBezierPath, be as transformBezierPath, bf as trimSegments, bg as unionPolygons, bh as unitePaths, bi as windingNumber, bj as xorPolygons } from '../pathfinder-fLmmFOJw.js';
|
|
10
10
|
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';
|
|
11
11
|
import { A as AnimationEasing } from '../easing-DTmX99QG.js';
|
|
12
12
|
export { a as ANIMATION_EASING_LABELS, b 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-DTmX99QG.js';
|
package/dist/canvas/index.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CANVAS_GRADIENT_PRESETS,
|
|
3
|
+
PATHFINDER_OPERATIONS,
|
|
3
4
|
PathOpsError,
|
|
5
|
+
PlanarMap,
|
|
4
6
|
SHAPE_KINDS,
|
|
5
7
|
angleToSvgLinearCoords,
|
|
6
8
|
arcToCubics,
|
|
@@ -31,6 +33,7 @@ import {
|
|
|
31
33
|
getShapeRenderData,
|
|
32
34
|
getShapeSvg,
|
|
33
35
|
gradientToSvgDef,
|
|
36
|
+
interiorPoint,
|
|
34
37
|
intersectPaths,
|
|
35
38
|
intersectPolygons,
|
|
36
39
|
isCanvasGradient,
|
|
@@ -44,7 +47,10 @@ import {
|
|
|
44
47
|
parseCssGradient,
|
|
45
48
|
parseSvgPath,
|
|
46
49
|
pathBoolean,
|
|
50
|
+
pathBooleanSelect,
|
|
47
51
|
pathToContours,
|
|
52
|
+
pathfinder,
|
|
53
|
+
planarSplit,
|
|
48
54
|
pointInBezierPath,
|
|
49
55
|
pointInMultiPolygon,
|
|
50
56
|
pointInRings,
|
|
@@ -77,7 +83,7 @@ import {
|
|
|
77
83
|
unitePaths,
|
|
78
84
|
windingNumber,
|
|
79
85
|
xorPolygons
|
|
80
|
-
} from "../chunk-
|
|
86
|
+
} from "../chunk-ZCCU3VNI.js";
|
|
81
87
|
import {
|
|
82
88
|
DEFAULT_NODE_HEIGHT,
|
|
83
89
|
DEFAULT_NODE_WIDTH,
|
|
@@ -8388,7 +8394,9 @@ export {
|
|
|
8388
8394
|
LOCKED_PREVIOUS_FLAGS_KEY,
|
|
8389
8395
|
MAX_KEYFRAME_REFS,
|
|
8390
8396
|
ManualClock,
|
|
8397
|
+
PATHFINDER_OPERATIONS,
|
|
8391
8398
|
PathOpsError,
|
|
8399
|
+
PlanarMap,
|
|
8392
8400
|
RESIZE_HANDLES,
|
|
8393
8401
|
SHAPE_DATA_KEY,
|
|
8394
8402
|
SHAPE_KINDS,
|
|
@@ -8555,6 +8563,7 @@ export {
|
|
|
8555
8563
|
inferResizeHandle,
|
|
8556
8564
|
inspectCanvasInstance,
|
|
8557
8565
|
inspectNodeTokens,
|
|
8566
|
+
interiorPoint,
|
|
8558
8567
|
interpolateAnimationValue,
|
|
8559
8568
|
intersectPaths,
|
|
8560
8569
|
intersectPolygons,
|
|
@@ -8624,8 +8633,11 @@ export {
|
|
|
8624
8633
|
parseVariantName,
|
|
8625
8634
|
pasteKeyframes,
|
|
8626
8635
|
pathBoolean,
|
|
8636
|
+
pathBooleanSelect,
|
|
8627
8637
|
pathToContours,
|
|
8638
|
+
pathfinder,
|
|
8628
8639
|
placeBeside,
|
|
8640
|
+
planarSplit,
|
|
8629
8641
|
playWebAnimations,
|
|
8630
8642
|
pointInBezierPath,
|
|
8631
8643
|
pointInMultiPolygon,
|