@pixerate/editor 0.48.0 → 0.50.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 (78) hide show
  1. package/dist/agent/index.cjs +24 -22
  2. package/dist/agent/index.cjs.map +1 -1
  3. package/dist/agent/index.js +6 -4
  4. package/dist/agent/index.js.map +1 -1
  5. package/dist/canvas/index.cjs +151 -25
  6. package/dist/canvas/index.cjs.map +1 -1
  7. package/dist/canvas/index.d.cts +109 -3
  8. package/dist/canvas/index.d.ts +109 -3
  9. package/dist/canvas/index.js +127 -1
  10. package/dist/canvas/index.js.map +1 -1
  11. package/dist/chart/index.cjs +81 -79
  12. package/dist/chart/index.cjs.map +1 -1
  13. package/dist/chart/index.js +52 -50
  14. package/dist/chart/index.js.map +1 -1
  15. package/dist/{chunk-TXXNBDQX.cjs → chunk-2Q46FKZK.cjs} +113 -34
  16. package/dist/chunk-2Q46FKZK.cjs.map +1 -0
  17. package/dist/{chunk-PIMCHMZE.cjs → chunk-3JNRQVTS.cjs} +16 -16
  18. package/dist/{chunk-PIMCHMZE.cjs.map → chunk-3JNRQVTS.cjs.map} +1 -1
  19. package/dist/{chunk-HXUL3LS7.js → chunk-5TWIN7ZJ.js} +2 -2
  20. package/dist/{chunk-VKPEPWKZ.js → chunk-DQPBQXKG.js} +4 -4
  21. package/dist/{chunk-MUCYWI6W.cjs → chunk-FEMIVHN3.cjs} +17 -15
  22. package/dist/chunk-FEMIVHN3.cjs.map +1 -0
  23. package/dist/{chunk-XUUD43OV.js → chunk-GJBIVWB2.js} +2 -2
  24. package/dist/{chunk-PRSJJZBS.cjs → chunk-GTZXF4BI.cjs} +191 -841
  25. package/dist/chunk-GTZXF4BI.cjs.map +1 -0
  26. package/dist/chunk-JOX6MJW4.cjs +674 -0
  27. package/dist/chunk-JOX6MJW4.cjs.map +1 -0
  28. package/dist/{chunk-WXEHCVJQ.cjs → chunk-LNKZPIQD.cjs} +52 -52
  29. package/dist/{chunk-WXEHCVJQ.cjs.map → chunk-LNKZPIQD.cjs.map} +1 -1
  30. package/dist/chunk-OV7UAKIY.js +674 -0
  31. package/dist/chunk-OV7UAKIY.js.map +1 -0
  32. package/dist/{chunk-PKBWLEL7.js → chunk-QFTVLEVN.js} +6 -4
  33. package/dist/{chunk-PKBWLEL7.js.map → chunk-QFTVLEVN.js.map} +1 -1
  34. package/dist/{chunk-KRGXUQ2Y.js → chunk-T6XU4B54.js} +82 -3
  35. package/dist/chunk-T6XU4B54.js.map +1 -0
  36. package/dist/{chunk-U6IZKC7B.cjs → chunk-TGBCBQFV.cjs} +14 -14
  37. package/dist/{chunk-U6IZKC7B.cjs.map → chunk-TGBCBQFV.cjs.map} +1 -1
  38. package/dist/{chunk-3LHWTGHW.js → chunk-TO22LX34.js} +11 -1
  39. package/dist/chunk-TO22LX34.js.map +1 -0
  40. package/dist/{chunk-LTUM52X6.js → chunk-WBOAXDKD.js} +109 -759
  41. package/dist/chunk-WBOAXDKD.js.map +1 -0
  42. package/dist/{chunk-VNYRI265.cjs → chunk-YNSK4MGT.cjs} +12 -2
  43. package/dist/chunk-YNSK4MGT.cjs.map +1 -0
  44. package/dist/export/index.cjs +4 -2
  45. package/dist/export/index.cjs.map +1 -1
  46. package/dist/export/index.d.cts +5 -1
  47. package/dist/export/index.d.ts +5 -1
  48. package/dist/export/index.js +3 -1
  49. package/dist/extensions/index.cjs +6 -5
  50. package/dist/extensions/index.cjs.map +1 -1
  51. package/dist/extensions/index.js +5 -4
  52. package/dist/image-editor/index.cjs +141 -1
  53. package/dist/image-editor/index.cjs.map +1 -1
  54. package/dist/image-editor/index.d.cts +42 -1
  55. package/dist/image-editor/index.d.ts +42 -1
  56. package/dist/image-editor/index.js +140 -0
  57. package/dist/image-editor/index.js.map +1 -1
  58. package/dist/index.cjs +12 -11
  59. package/dist/index.cjs.map +1 -1
  60. package/dist/index.js +6 -5
  61. package/dist/index.js.map +1 -1
  62. package/dist/{pathfinder-D98S2lV5.d.ts → pathfinder-B9xh_pCZ.d.ts} +2 -1
  63. package/dist/{pathfinder-DKRcXiLS.d.cts → pathfinder-QdG70sr9.d.cts} +2 -1
  64. package/dist/vector/index.cjs +153 -153
  65. package/dist/vector/index.d.cts +1 -1
  66. package/dist/vector/index.d.ts +1 -1
  67. package/dist/vector/index.js +1 -1
  68. package/package.json +1 -1
  69. package/dist/chunk-3LHWTGHW.js.map +0 -1
  70. package/dist/chunk-KRGXUQ2Y.js.map +0 -1
  71. package/dist/chunk-LTUM52X6.js.map +0 -1
  72. package/dist/chunk-MUCYWI6W.cjs.map +0 -1
  73. package/dist/chunk-PRSJJZBS.cjs.map +0 -1
  74. package/dist/chunk-TXXNBDQX.cjs.map +0 -1
  75. package/dist/chunk-VNYRI265.cjs.map +0 -1
  76. /package/dist/{chunk-HXUL3LS7.js.map → chunk-5TWIN7ZJ.js.map} +0 -0
  77. /package/dist/{chunk-VKPEPWKZ.js.map → chunk-DQPBQXKG.js.map} +0 -0
  78. /package/dist/{chunk-XUUD43OV.js.map → chunk-GJBIVWB2.js.map} +0 -0
@@ -136,6 +136,7 @@ interface SvgGradientDef {
136
136
  attrs: Record<string, string | number>;
137
137
  stops: SvgGradientStop[];
138
138
  }
139
+ declare const PIXERATE_BRAND_GRADIENT: CanvasLinearGradient;
139
140
  declare const CANVAS_GRADIENT_PRESETS: Record<string, CanvasLinearGradient>;
140
141
  /** Whether an arbitrary value matches a CanvasGradientDef object. */
141
142
  declare function isCanvasGradient(value: unknown): value is CanvasGradientDef;
@@ -1009,4 +1010,4 @@ interface PathfinderResult extends PathOpsReport {
1009
1010
  */
1010
1011
  declare function pathfinder(op: PathfinderOperation, shapes: readonly PathfinderShape[], options?: PathOpsOptions): PathfinderResult;
1011
1012
 
1012
- export { type PolygonInput as $, type AffineMatrix as A, type BezierPathInput as B, type CanvasGradientDef as C, type DashedPath as D, type EllipseShape as E, type FlattenOptions as F, type GetShapeRenderDataOptions as G, type PathOpsOptions as H, type PathOpsReport as I, type PathPiece as J, type PathPointAtLength as K, type PathSelectResult as L, type MultiPolygon as M, type PathShape as N, type OffsetPathOptions as O, PlanarMap as P, type PathfinderPiece as Q, type PathfinderResult as R, type SvgGradientDef as S, type PlanarChain as T, type PlanarFace as U, type PlanarInput as V, type PlanarMapOptions as W, type PlanarSplitEdge as X, type PlanarSplitResult as Y, type PolygonBooleanOperation as Z, type PolygonBooleanOptions as _, type BezierPath as a, segmentCurvature as a$, type PolygonOperand as a0, type PolygonPiece as a1, type PolygonToPathOptions as a2, type PolygonWithHoles as a3, type RectShape as a4, type RegularPolygonShape as a5, SHAPE_KINDS as a6, type SegmentIntersection as a7, type ShapeKind as a8, type ShapePaint as a9, gradientToSvgDef as aA, interiorPoint as aB, intersectPaths as aC, intersectPolygons as aD, isCanvasGradient as aE, isShapeDescription as aF, multiPolygonArea as aG, multiPolygonBounds as aH, normalizeBezierPath as aI, offsetPath as aJ, outlineStroke as aK, parseCssGradient as aL, parseSvgPath as aM, pathBoolean as aN, pathBooleanSelect as aO, pathToContours as aP, pathfinder as aQ, planarSplit as aR, pointInBezierPath as aS, pointInMultiPolygon as aT, pointInRings as aU, polygonArea as aV, polygonBoolean as aW, polygonToSvgPath as aX, resolveCanvasGradient as aY, ringSignedArea as aZ, segmentBounds as a_, type ShapeRenderData as aa, type StarShape as ab, type SvgGradientStop as ac, angleToSvgLinearCoords as ad, arcToCubics as ae, bezierPathArea as af, bezierPathBounds as ag, bezierPathLength as ah, bezierPathPointAtLength as ai, bezierPathSignedArea as aj, bezierPathToSvg as ak, closeContour as al, contourEnclosesArea as am, contourSignedArea as an, contoursToPath as ao, countPathSegments as ap, cutOutPiece as aq, dashContours as ar, distanceToBezierPath as as, dividePaths as at, dividePolygons as au, excludePaths as av, flattenSvgPath as aw, formatNumber as ax, getShapeRenderData as ay, getShapeSvg as az, type StrokeJoin as b, segmentDerivative as b0, segmentExtrema as b1, segmentIntersections as b2, segmentLength as b3, segmentNearest as b4, segmentParamAtLength as b5, segmentPoint as b6, segmentTangent as b7, shapeToPolygon as b8, simplifyRing as b9, splitSegment as ba, strokeOutlineRings as bb, subSegment as bc, subtractPaths as bd, subtractPolygons as be, toBezierPath as bf, transformBezierPath as bg, trimSegments as bh, unionPolygons as bi, unitePaths as bj, windingNumber as bk, xorPolygons as bl, type StrokeCap as c, type BezierSegment as d, type PathfinderOperation as e, type PathfinderShape as f, type ShapeDescription as g, type PolygonFillRule as h, type PolygonRing as i, type ShapeSize as j, type BezierCommand as k, type BezierContour as l, type BezierPathToSvgOptions as m, CANVAS_GRADIENT_PRESETS as n, type CanvasLinearGradient as o, type CanvasRadialGradient as p, type DividePathsResult as q, type GradientStop as r, type OutlineStrokeOptions as s, PATHFINDER_OPERATIONS as t, type PathBooleanOperation as u, type PathBooleanResult as v, type PathCommand as w, type PathOperand as x, type PathOperandInput as y, PathOpsError as z };
1013
+ export { type PolygonBooleanOptions as $, type AffineMatrix as A, type BezierPathInput as B, type CanvasGradientDef as C, type DashedPath as D, type EllipseShape as E, type FlattenOptions as F, type GetShapeRenderDataOptions as G, PathOpsError as H, type PathOpsOptions as I, type PathOpsReport as J, type PathPiece as K, type PathPointAtLength as L, type MultiPolygon as M, type PathSelectResult as N, type OffsetPathOptions as O, PlanarMap as P, type PathShape as Q, type PathfinderPiece as R, type SvgGradientDef as S, type PathfinderResult as T, type PlanarChain as U, type PlanarFace as V, type PlanarInput as W, type PlanarMapOptions as X, type PlanarSplitEdge as Y, type PlanarSplitResult as Z, type PolygonBooleanOperation as _, type BezierPath as a, segmentBounds as a$, type PolygonInput as a0, type PolygonOperand as a1, type PolygonPiece as a2, type PolygonToPathOptions as a3, type PolygonWithHoles as a4, type RectShape as a5, type RegularPolygonShape as a6, SHAPE_KINDS as a7, type SegmentIntersection as a8, type ShapeKind as a9, getShapeSvg as aA, gradientToSvgDef as aB, interiorPoint as aC, intersectPaths as aD, intersectPolygons as aE, isCanvasGradient as aF, isShapeDescription as aG, multiPolygonArea as aH, multiPolygonBounds as aI, normalizeBezierPath as aJ, offsetPath as aK, outlineStroke as aL, parseCssGradient as aM, parseSvgPath as aN, pathBoolean as aO, pathBooleanSelect as aP, pathToContours as aQ, pathfinder as aR, planarSplit as aS, pointInBezierPath as aT, pointInMultiPolygon as aU, pointInRings as aV, polygonArea as aW, polygonBoolean as aX, polygonToSvgPath as aY, resolveCanvasGradient as aZ, ringSignedArea as a_, type ShapePaint as aa, type ShapeRenderData as ab, type StarShape as ac, type SvgGradientStop as ad, angleToSvgLinearCoords as ae, arcToCubics as af, bezierPathArea as ag, bezierPathBounds as ah, bezierPathLength as ai, bezierPathPointAtLength as aj, bezierPathSignedArea as ak, bezierPathToSvg as al, closeContour as am, contourEnclosesArea as an, contourSignedArea as ao, contoursToPath as ap, countPathSegments as aq, cutOutPiece as ar, dashContours as as, distanceToBezierPath as at, dividePaths as au, dividePolygons as av, excludePaths as aw, flattenSvgPath as ax, formatNumber as ay, getShapeRenderData as az, type StrokeJoin as b, segmentCurvature as b0, segmentDerivative as b1, segmentExtrema as b2, segmentIntersections as b3, segmentLength as b4, segmentNearest as b5, segmentParamAtLength as b6, segmentPoint as b7, segmentTangent as b8, shapeToPolygon as b9, simplifyRing as ba, splitSegment as bb, strokeOutlineRings as bc, subSegment as bd, subtractPaths as be, subtractPolygons as bf, toBezierPath as bg, transformBezierPath as bh, trimSegments as bi, unionPolygons as bj, unitePaths as bk, windingNumber as bl, xorPolygons as bm, type StrokeCap as c, type BezierSegment as d, type PathfinderOperation as e, type PathfinderShape as f, type ShapeDescription as g, type PolygonFillRule as h, type PolygonRing as i, type ShapeSize as j, type BezierCommand as k, type BezierContour as l, type BezierPathToSvgOptions as m, CANVAS_GRADIENT_PRESETS as n, type CanvasLinearGradient as o, type CanvasRadialGradient as p, type DividePathsResult as q, type GradientStop as r, type OutlineStrokeOptions as s, PATHFINDER_OPERATIONS as t, PIXERATE_BRAND_GRADIENT as u, type PathBooleanOperation as v, type PathBooleanResult as w, type PathCommand as x, type PathOperand as y, type PathOperandInput as z };
@@ -136,6 +136,7 @@ interface SvgGradientDef {
136
136
  attrs: Record<string, string | number>;
137
137
  stops: SvgGradientStop[];
138
138
  }
139
+ declare const PIXERATE_BRAND_GRADIENT: CanvasLinearGradient;
139
140
  declare const CANVAS_GRADIENT_PRESETS: Record<string, CanvasLinearGradient>;
140
141
  /** Whether an arbitrary value matches a CanvasGradientDef object. */
141
142
  declare function isCanvasGradient(value: unknown): value is CanvasGradientDef;
@@ -1009,4 +1010,4 @@ interface PathfinderResult extends PathOpsReport {
1009
1010
  */
1010
1011
  declare function pathfinder(op: PathfinderOperation, shapes: readonly PathfinderShape[], options?: PathOpsOptions): PathfinderResult;
1011
1012
 
1012
- export { type PolygonInput as $, type AffineMatrix as A, type BezierPathInput as B, type CanvasGradientDef as C, type DashedPath as D, type EllipseShape as E, type FlattenOptions as F, type GetShapeRenderDataOptions as G, type PathOpsOptions as H, type PathOpsReport as I, type PathPiece as J, type PathPointAtLength as K, type PathSelectResult as L, type MultiPolygon as M, type PathShape as N, type OffsetPathOptions as O, PlanarMap as P, type PathfinderPiece as Q, type PathfinderResult as R, type SvgGradientDef as S, type PlanarChain as T, type PlanarFace as U, type PlanarInput as V, type PlanarMapOptions as W, type PlanarSplitEdge as X, type PlanarSplitResult as Y, type PolygonBooleanOperation as Z, type PolygonBooleanOptions as _, type BezierPath as a, segmentCurvature as a$, type PolygonOperand as a0, type PolygonPiece as a1, type PolygonToPathOptions as a2, type PolygonWithHoles as a3, type RectShape as a4, type RegularPolygonShape as a5, SHAPE_KINDS as a6, type SegmentIntersection as a7, type ShapeKind as a8, type ShapePaint as a9, gradientToSvgDef as aA, interiorPoint as aB, intersectPaths as aC, intersectPolygons as aD, isCanvasGradient as aE, isShapeDescription as aF, multiPolygonArea as aG, multiPolygonBounds as aH, normalizeBezierPath as aI, offsetPath as aJ, outlineStroke as aK, parseCssGradient as aL, parseSvgPath as aM, pathBoolean as aN, pathBooleanSelect as aO, pathToContours as aP, pathfinder as aQ, planarSplit as aR, pointInBezierPath as aS, pointInMultiPolygon as aT, pointInRings as aU, polygonArea as aV, polygonBoolean as aW, polygonToSvgPath as aX, resolveCanvasGradient as aY, ringSignedArea as aZ, segmentBounds as a_, type ShapeRenderData as aa, type StarShape as ab, type SvgGradientStop as ac, angleToSvgLinearCoords as ad, arcToCubics as ae, bezierPathArea as af, bezierPathBounds as ag, bezierPathLength as ah, bezierPathPointAtLength as ai, bezierPathSignedArea as aj, bezierPathToSvg as ak, closeContour as al, contourEnclosesArea as am, contourSignedArea as an, contoursToPath as ao, countPathSegments as ap, cutOutPiece as aq, dashContours as ar, distanceToBezierPath as as, dividePaths as at, dividePolygons as au, excludePaths as av, flattenSvgPath as aw, formatNumber as ax, getShapeRenderData as ay, getShapeSvg as az, type StrokeJoin as b, segmentDerivative as b0, segmentExtrema as b1, segmentIntersections as b2, segmentLength as b3, segmentNearest as b4, segmentParamAtLength as b5, segmentPoint as b6, segmentTangent as b7, shapeToPolygon as b8, simplifyRing as b9, splitSegment as ba, strokeOutlineRings as bb, subSegment as bc, subtractPaths as bd, subtractPolygons as be, toBezierPath as bf, transformBezierPath as bg, trimSegments as bh, unionPolygons as bi, unitePaths as bj, windingNumber as bk, xorPolygons as bl, type StrokeCap as c, type BezierSegment as d, type PathfinderOperation as e, type PathfinderShape as f, type ShapeDescription as g, type PolygonFillRule as h, type PolygonRing as i, type ShapeSize as j, type BezierCommand as k, type BezierContour as l, type BezierPathToSvgOptions as m, CANVAS_GRADIENT_PRESETS as n, type CanvasLinearGradient as o, type CanvasRadialGradient as p, type DividePathsResult as q, type GradientStop as r, type OutlineStrokeOptions as s, PATHFINDER_OPERATIONS as t, type PathBooleanOperation as u, type PathBooleanResult as v, type PathCommand as w, type PathOperand as x, type PathOperandInput as y, PathOpsError as z };
1013
+ export { type PolygonBooleanOptions as $, type AffineMatrix as A, type BezierPathInput as B, type CanvasGradientDef as C, type DashedPath as D, type EllipseShape as E, type FlattenOptions as F, type GetShapeRenderDataOptions as G, PathOpsError as H, type PathOpsOptions as I, type PathOpsReport as J, type PathPiece as K, type PathPointAtLength as L, type MultiPolygon as M, type PathSelectResult as N, type OffsetPathOptions as O, PlanarMap as P, type PathShape as Q, type PathfinderPiece as R, type SvgGradientDef as S, type PathfinderResult as T, type PlanarChain as U, type PlanarFace as V, type PlanarInput as W, type PlanarMapOptions as X, type PlanarSplitEdge as Y, type PlanarSplitResult as Z, type PolygonBooleanOperation as _, type BezierPath as a, segmentBounds as a$, type PolygonInput as a0, type PolygonOperand as a1, type PolygonPiece as a2, type PolygonToPathOptions as a3, type PolygonWithHoles as a4, type RectShape as a5, type RegularPolygonShape as a6, SHAPE_KINDS as a7, type SegmentIntersection as a8, type ShapeKind as a9, getShapeSvg as aA, gradientToSvgDef as aB, interiorPoint as aC, intersectPaths as aD, intersectPolygons as aE, isCanvasGradient as aF, isShapeDescription as aG, multiPolygonArea as aH, multiPolygonBounds as aI, normalizeBezierPath as aJ, offsetPath as aK, outlineStroke as aL, parseCssGradient as aM, parseSvgPath as aN, pathBoolean as aO, pathBooleanSelect as aP, pathToContours as aQ, pathfinder as aR, planarSplit as aS, pointInBezierPath as aT, pointInMultiPolygon as aU, pointInRings as aV, polygonArea as aW, polygonBoolean as aX, polygonToSvgPath as aY, resolveCanvasGradient as aZ, ringSignedArea as a_, type ShapePaint as aa, type ShapeRenderData as ab, type StarShape as ac, type SvgGradientStop as ad, angleToSvgLinearCoords as ae, arcToCubics as af, bezierPathArea as ag, bezierPathBounds as ah, bezierPathLength as ai, bezierPathPointAtLength as aj, bezierPathSignedArea as ak, bezierPathToSvg as al, closeContour as am, contourEnclosesArea as an, contourSignedArea as ao, contoursToPath as ap, countPathSegments as aq, cutOutPiece as ar, dashContours as as, distanceToBezierPath as at, dividePaths as au, dividePolygons as av, excludePaths as aw, flattenSvgPath as ax, formatNumber as ay, getShapeRenderData as az, type StrokeJoin as b, segmentCurvature as b0, segmentDerivative as b1, segmentExtrema as b2, segmentIntersections as b3, segmentLength as b4, segmentNearest as b5, segmentParamAtLength as b6, segmentPoint as b7, segmentTangent as b8, shapeToPolygon as b9, simplifyRing as ba, splitSegment as bb, strokeOutlineRings as bc, subSegment as bd, subtractPaths as be, subtractPolygons as bf, toBezierPath as bg, transformBezierPath as bh, trimSegments as bi, unionPolygons as bj, unitePaths as bk, windingNumber as bl, xorPolygons as bm, type StrokeCap as c, type BezierSegment as d, type PathfinderOperation as e, type PathfinderShape as f, type ShapeDescription as g, type PolygonFillRule as h, type PolygonRing as i, type ShapeSize as j, type BezierCommand as k, type BezierContour as l, type BezierPathToSvgOptions as m, CANVAS_GRADIENT_PRESETS as n, type CanvasLinearGradient as o, type CanvasRadialGradient as p, type DividePathsResult as q, type GradientStop as r, type OutlineStrokeOptions as s, PATHFINDER_OPERATIONS as t, PIXERATE_BRAND_GRADIENT as u, type PathBooleanOperation as v, type PathBooleanResult as w, type PathCommand as x, type PathOperand as y, type PathOperandInput as z };