@pixerate/editor 0.49.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.
- package/dist/canvas/index.cjs +151 -25
- package/dist/canvas/index.cjs.map +1 -1
- package/dist/canvas/index.d.cts +109 -3
- package/dist/canvas/index.d.ts +109 -3
- package/dist/canvas/index.js +127 -1
- package/dist/canvas/index.js.map +1 -1
- package/dist/{chunk-3LHWTGHW.js → chunk-TO22LX34.js} +11 -1
- package/dist/chunk-TO22LX34.js.map +1 -0
- package/dist/{chunk-VNYRI265.cjs → chunk-YNSK4MGT.cjs} +12 -2
- package/dist/chunk-YNSK4MGT.cjs.map +1 -0
- package/dist/image-editor/index.cjs +141 -1
- package/dist/image-editor/index.cjs.map +1 -1
- package/dist/image-editor/index.d.cts +42 -1
- package/dist/image-editor/index.d.ts +42 -1
- package/dist/image-editor/index.js +140 -0
- package/dist/image-editor/index.js.map +1 -1
- package/dist/{pathfinder-D98S2lV5.d.ts → pathfinder-B9xh_pCZ.d.ts} +2 -1
- package/dist/{pathfinder-DKRcXiLS.d.cts → pathfinder-QdG70sr9.d.cts} +2 -1
- package/dist/vector/index.cjs +153 -153
- package/dist/vector/index.d.cts +1 -1
- package/dist/vector/index.d.ts +1 -1
- package/dist/vector/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-3LHWTGHW.js.map +0 -1
- package/dist/chunk-VNYRI265.cjs.map +0 -1
|
@@ -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
|
|
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
|
|
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 };
|