svg-path-commander 2.2.3 → 2.2.4

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/util.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * SVGPathCommander v2.2.3 (http://thednp.github.io/svg-path-commander)
2
+ * SVGPathCommander v2.2.4 (http://thednp.github.io/svg-path-commander)
3
3
  * Copyright 2026 © thednp
4
4
  * Licensed under MIT (https://github.com/thednp/svg-path-commander/blob/master/LICENSE)
5
5
  */
@@ -7,98 +7,154 @@ import CSSMatrix from "@thednp/dommatrix";
7
7
  //#region src/interface.d.ts
8
8
  /** The properties of a path segment found by segment lookup utilities. */
9
9
  type SegmentProperties = {
10
+ /** The path segment. */
10
11
  segment: PathSegment;
12
+ /** The index of the segment in the path. */
11
13
  index: number;
14
+ /** The length of the segment. */
12
15
  length: number;
16
+ /** The distance from the start of the path to the end of the segment. */
13
17
  lengthAtSegment: number;
14
18
  };
15
19
  /** The closest point on the path to a given point, with the distance and optional segment. */
16
20
  type PointProperties = {
21
+ /** The closest point on the path to the given point. */
17
22
  closest: {
23
+ /** The X coordinate of the closest point. */
18
24
  x: number;
25
+ /** The Y coordinate of the closest point. */
19
26
  y: number;
20
27
  };
28
+ /** The distance from the given point to the closest point on the path. */
21
29
  distance: number;
30
+ /** The segment which contains the closest point. */
22
31
  segment?: SegmentProperties;
23
32
  };
24
33
  /** The attributes of a `<line>` element read by `shapeToPath`. */
25
34
  type LineAttr = {
35
+ /** The element type. */
26
36
  type: "line";
37
+ /** The X coordinate of the start point. */
27
38
  x1: number;
39
+ /** The Y coordinate of the start point. */
28
40
  y1: number;
41
+ /** The X coordinate of the end point. */
29
42
  x2: number;
43
+ /** The Y coordinate of the end point. */
30
44
  y2: number;
31
45
  [key: string]: string | number;
32
46
  };
33
47
  /** The attributes of a `<polygon>` or `<polyline>` element read by `shapeToPath`. */
34
48
  type PolyAttr = {
49
+ /** The element type. */
35
50
  type: "polygon" | "polyline";
51
+ /** The points attribute value. */
36
52
  points: string;
37
53
  [key: string]: string | number;
38
54
  };
39
55
  /** The attributes of a `<circle>` element read by `shapeToPath`. */
40
56
  type CircleAttr = {
57
+ /** The element type. */
41
58
  type: "circle";
59
+ /** The X coordinate of the center. */
42
60
  cx: number;
61
+ /** The Y coordinate of the center. */
43
62
  cy: number;
63
+ /** The circle radius. */
44
64
  r: number;
45
65
  [key: string]: string | number;
46
66
  };
47
67
  /** The attributes of an `<ellipse>` element read by `shapeToPath`. */
48
68
  type EllipseAttr = {
69
+ /** The element type. */
49
70
  type: "ellipse";
71
+ /** The X coordinate of the center. */
50
72
  cx: number;
73
+ /** The Y coordinate of the center. */
51
74
  cy: number;
75
+ /** The X axis radius. */
52
76
  rx: number;
77
+ /** The Y axis radius. */
53
78
  ry?: number;
54
79
  [key: string]: string | number | undefined;
55
80
  };
56
81
  /** The attributes of a `<rect>` element read by `shapeToPath`. */
57
82
  type RectAttr = {
83
+ /** The element type. */
58
84
  type: "rect";
85
+ /** The rectangle width. */
59
86
  width: number;
87
+ /** The rectangle height. */
60
88
  height: number;
89
+ /** The X coordinate of the top-left corner. */
61
90
  x: number;
91
+ /** The Y coordinate of the top-left corner. */
62
92
  y: number;
93
+ /** The X axis corner radius. */
63
94
  rx?: number;
95
+ /** The Y axis corner radius. */
64
96
  ry?: number;
65
97
  [key: string]: string | number | undefined;
66
98
  };
67
99
  /** The attributes of a `<glyph>` element read by `shapeToPath`. */
68
100
  type GlyphAttr = {
101
+ /** The element type. */
69
102
  type: "glyph";
103
+ /** The path data of the glyph. */
70
104
  d: string;
71
105
  [key: string]: string | number;
72
106
  };
73
107
  /** The parameter names read from each SVG shape element by `shapeToPath`. */
74
108
  type ShapeParams = {
109
+ /** The parameter names read from the `<line>` element. */
75
110
  line: ["x1", "y1", "x2", "y2"];
111
+ /** The parameter names read from the `<circle>` element. */
76
112
  circle: ["cx", "cy", "r"];
113
+ /** The parameter names read from the `<ellipse>` element. */
77
114
  ellipse: ["cx", "cy", "rx", "ry"];
115
+ /** The parameter names read from the `<rect>` element. */
78
116
  rect: ["width", "height", "x", "y", "rx", "ry"];
117
+ /** The parameter names read from the `<polygon>` element. */
79
118
  polygon: ["points"];
119
+ /** The parameter names read from the `<polyline>` element. */
80
120
  polyline: ["points"];
121
+ /** The parameter names read from the `<glyph>` element. */
81
122
  glyph: ["d"];
82
123
  };
83
124
  /** The current state tracked by the SVG path string parser. */
84
125
  type ParserParams = {
126
+ /** The X coordinate of the previous moveto point. */
85
127
  mx: number;
128
+ /** The Y coordinate of the previous moveto point. */
86
129
  my: number;
130
+ /** The X coordinate of the previous control point. */
87
131
  x1: number;
132
+ /** The Y coordinate of the previous control point. */
88
133
  y1: number;
134
+ /** The X coordinate of the second control point. */
89
135
  x2: number;
136
+ /** The Y coordinate of the second control point. */
90
137
  y2: number;
138
+ /** The X coordinate of the current point. */
91
139
  x: number;
140
+ /** The Y coordinate of the current point. */
92
141
  y: number;
142
+ /** The X coordinate of the previous quadratic control point. */
93
143
  qx: number | null;
144
+ /** The Y coordinate of the previous quadratic control point. */
94
145
  qy: number | null;
95
146
  };
96
147
  /** A transform function object with translate, rotate, scale, skew and origin. */
97
148
  type TransformObject = {
149
+ /** A translate value, a number for all axes or an array of values. */
98
150
  translate: number | number[];
151
+ /** A rotate value, a number for all axes or an array of values. */
99
152
  rotate: number | number[];
153
+ /** A scale value, a number for all axes or an array of values. */
100
154
  scale: number | number[];
155
+ /** A skew value, a number for all axes or an array of values. */
101
156
  skew: number | number[];
157
+ /** The transform origin. */
102
158
  origin: number[];
103
159
  };
104
160
  //#endregion
@@ -249,17 +305,21 @@ type ShapeTypes = SVGPolylineElement | SVGPolygonElement | SVGLineElement | SVGE
249
305
  type ShapeOps = LineAttr | PolyAttr | PolyAttr | EllipseAttr | CircleAttr | RectAttr | GlyphAttr;
250
306
  /** A `TransformObject` with a required 3D origin. */
251
307
  type TransformObjectValues = Partial<TransformObject> & {
308
+ /** The transform origin. */
252
309
  origin: [number, number, number];
253
310
  };
254
311
  /** A 2D point with `x` and `y` coordinates. */
255
312
  type Point = {
313
+ /** The X coordinate. */
256
314
  x: number;
315
+ /** The Y coordinate. */
257
316
  y: number;
258
317
  };
259
318
  /** A 2D point as a tuple `[x, y]`. */
260
319
  type PointTuple = [number, number];
261
320
  /** A `Point` with a `t` parameter (a point on a curve at ratio `t`). */
262
321
  type DerivedPoint = Point & {
322
+ /** The parameter ratio in `[0-1]`. */
263
323
  t: number;
264
324
  };
265
325
  /** The six points of a quadratic Bezier curve (on-curve and off-curve control points). */
@@ -282,19 +342,28 @@ type IteratorCallback<T extends PathArray, K extends keyof T = number> = (segmen
282
342
  type BBoxMaxima = [minX: number, minY: number, maxX: number, maxY: number];
283
343
  /** An intersection point between two curves, including both `t` ratios. */
284
344
  type IntersectionPoint = {
345
+ /** The X coordinate of the intersection point. */
285
346
  x: number;
347
+ /** The Y coordinate of the intersection point. */
286
348
  y: number;
349
+ /** The parameter ratio of the first curve. */
287
350
  t1: number;
351
+ /** The parameter ratio of the second curve. */
288
352
  t2: number;
289
353
  };
290
354
  /** Options for equalizing two paths for morphing. */
291
355
  interface EqualizationOptions {
292
- /** @default "auto" */
356
+ /** The equalization mode. @default "auto" */
293
357
  mode?: "curve" | "auto";
358
+ /** The number of sample points for the line mode. */
294
359
  sampleSize?: number;
360
+ /** The amount of decimals to round values to. */
295
361
  roundValues?: number;
362
+ /** Whether to reverse the second path before equalization. */
296
363
  reverse?: boolean;
364
+ /** Whether to close the path before equalization. */
297
365
  close?: boolean;
366
+ /** The target segment count for both paths. */
298
367
  target?: number;
299
368
  }
300
369
  //#endregion
@@ -1703,7 +1772,7 @@ declare const equalizePaths: (pathInput1: string | PathArray, pathInput2: string
1703
1772
  * pathsIntersection('M0 50C0 0,100 0,100 50', 'M50 0C100 0,100 100,50 100', true)
1704
1773
  * // => 1
1705
1774
  * pathsIntersection('M0 50C0 0,100 0,100 50', 'M50 0C100 0,100 100,50 100', false)
1706
- * // => [{ x: 50, y: 25, t1: 0.5, t2: 0.5 }]
1775
+ * // => [{ x: 80.4136, y: 19.5864, t1: 0.7262, t2: 0.2738 }]
1707
1776
  * ```
1708
1777
  */
1709
1778
  declare const pathsIntersection: <T extends string | PathArray>(pathInput1: T, pathInput2: T, justCount?: boolean) => number | IntersectionPoint[];
@@ -1 +1 @@
1
- {"version":3,"file":"util.d.ts","names":[],"sources":["../src/interface.ts","../src/types.ts","../src/math/arcTools.ts","../src/math/bezier.ts","../src/math/cubicTools.ts","../src/math/lineTools.ts","../src/math/quadTools.ts","../src/math/polygonTools.ts","../src/math/distanceSquareRoot.ts","../src/math/midPoint.ts","../src/math/rotateVector.ts","../src/math/roundTo.ts","../src/convert/pathToAbsolute.ts","../src/convert/pathToRelative.ts","../src/convert/pathToCurve.ts","../src/convert/pathToString.ts","../src/parser/parsePathString.ts","../src/parser/pathParser.ts","../src/parser/finalizeSegment.ts","../src/parser/invalidPathValue.ts","../src/parser/isArcCommand.ts","../src/parser/isDigit.ts","../src/parser/isDigitStart.ts","../src/parser/isMoveCommand.ts","../src/parser/isPathCommand.ts","../src/parser/isSpace.ts","../src/parser/paramsCount.ts","../src/parser/paramsParser.ts","../src/parser/scanFlag.ts","../src/parser/scanParam.ts","../src/parser/scanSegment.ts","../src/parser/skipSpaces.ts","../src/util/getPathBBox.ts","../src/util/getTotalLength.ts","../src/util/distanceEpsilon.ts","../src/util/getClosestPoint.ts","../src/util/getDrawDirection.ts","../src/util/getPathArea.ts","../src/util/getPointAtLength.ts","../src/util/getPropertiesAtLength.ts","../src/util/getPropertiesAtPoint.ts","../src/util/getSegmentAtLength.ts","../src/util/getSegmentOfPoint.ts","../src/util/isAbsoluteArray.ts","../src/util/isCurveArray.ts","../src/util/isNormalizedArray.ts","../src/util/isPathArray.ts","../src/util/isPointInStroke.ts","../src/util/isPolygonArray.ts","../src/util/isPolylineArray.ts","../src/util/isRelativeArray.ts","../src/util/isValidPath.ts","../src/util/isMultiPath.ts","../src/util/isClosedPath.ts","../src/util/shapeParams.ts","../src/util/shapeToPath.ts","../src/util/shapeToPathArray.ts","../src/process/normalizePath.ts","../src/process/optimizePath.ts","../src/process/reversePath.ts","../src/process/splitPath.ts","../src/process/transformPath.ts","../src/process/absolutizeSegment.ts","../src/process/arcToCubic.ts","../src/process/getSVGMatrix.ts","../src/process/iterate.ts","../src/process/lineToCubic.ts","../src/process/normalizeSegment.ts","../src/process/projection2d.ts","../src/process/quadToCubic.ts","../src/process/relativizeSegment.ts","../src/process/reverseCurve.ts","../src/process/roundPath.ts","../src/process/roundSegment.ts","../src/process/segmentToCubic.ts","../src/process/shortenSegment.ts","../src/morph/fixPath.ts","../src/morph/splitCubicSegment.ts","../src/morph/equalizeSegments.ts","../src/morph/equalizePaths.ts","../src/intersect/pathIntersection.ts","../src/intersect/boundingBoxIntersect.ts","../src/intersect/isPointInsideBBox.ts"],"mappings":";;;;;;;;KAGY;EACV,SAAS;EACT;EACA;EACA;;;KAMU;EACV;IACE;IACA;;EAEF;EACA,UAAU;;;KAIA;EACV;EACA;EACA;EACA;EACA;GACC;;;KAGS;EACV;EACA;GACC;;;KAGS;EACV;EACA;EACA;EACA;GACC;;;KAGS;EACV;EACA;EACA;EACA;EACA;GACC;;;KAGS;EACV;EACA;EACA;EACA;EACA;EACA;EACA;GACC;;;KAGS;EACV;EACA;GACC;;;KAIS;EACV;EACA;EACA;EACA;EACA;EACA;EACA;;;KAsBU;EACV;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;KA0BU;EACV;EACA;EACA;EACA;EACA;;;;;KCnIU;;KA8BA;;KAaA;;KAcA;;KAEA;;KAGA;;KAEA;;KAGA;;KAEA;;KAGA;;KAEA;;KAGA;;KAEA;;KAGA;;KAEA;;KAGA;;KAEA;;KAGA;;KAEA;;KAGA;;KAEA;;KAGA;;KAEA;;KAGA,kBACR,WACA,WACA,WACA,WACA,WACA,WACA,WACA,WACA,WACA;;KAGQ,kBACR,WACA,WACA,WACA,WACA,WAC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,GAAA,IACR"}
1
+ {"version":3,"file":"util.d.ts","names":[],"sources":["../src/interface.ts","../src/types.ts","../src/math/arcTools.ts","../src/math/bezier.ts","../src/math/cubicTools.ts","../src/math/lineTools.ts","../src/math/quadTools.ts","../src/math/polygonTools.ts","../src/math/distanceSquareRoot.ts","../src/math/midPoint.ts","../src/math/rotateVector.ts","../src/math/roundTo.ts","../src/convert/pathToAbsolute.ts","../src/convert/pathToRelative.ts","../src/convert/pathToCurve.ts","../src/convert/pathToString.ts","../src/parser/parsePathString.ts","../src/parser/pathParser.ts","../src/parser/finalizeSegment.ts","../src/parser/invalidPathValue.ts","../src/parser/isArcCommand.ts","../src/parser/isDigit.ts","../src/parser/isDigitStart.ts","../src/parser/isMoveCommand.ts","../src/parser/isPathCommand.ts","../src/parser/isSpace.ts","../src/parser/paramsCount.ts","../src/parser/paramsParser.ts","../src/parser/scanFlag.ts","../src/parser/scanParam.ts","../src/parser/scanSegment.ts","../src/parser/skipSpaces.ts","../src/util/getPathBBox.ts","../src/util/getTotalLength.ts","../src/util/distanceEpsilon.ts","../src/util/getClosestPoint.ts","../src/util/getDrawDirection.ts","../src/util/getPathArea.ts","../src/util/getPointAtLength.ts","../src/util/getPropertiesAtLength.ts","../src/util/getPropertiesAtPoint.ts","../src/util/getSegmentAtLength.ts","../src/util/getSegmentOfPoint.ts","../src/util/isAbsoluteArray.ts","../src/util/isCurveArray.ts","../src/util/isNormalizedArray.ts","../src/util/isPathArray.ts","../src/util/isPointInStroke.ts","../src/util/isPolygonArray.ts","../src/util/isPolylineArray.ts","../src/util/isRelativeArray.ts","../src/util/isValidPath.ts","../src/util/isMultiPath.ts","../src/util/isClosedPath.ts","../src/util/shapeParams.ts","../src/util/shapeToPath.ts","../src/util/shapeToPathArray.ts","../src/process/normalizePath.ts","../src/process/optimizePath.ts","../src/process/reversePath.ts","../src/process/splitPath.ts","../src/process/transformPath.ts","../src/process/absolutizeSegment.ts","../src/process/arcToCubic.ts","../src/process/getSVGMatrix.ts","../src/process/iterate.ts","../src/process/lineToCubic.ts","../src/process/normalizeSegment.ts","../src/process/projection2d.ts","../src/process/quadToCubic.ts","../src/process/relativizeSegment.ts","../src/process/reverseCurve.ts","../src/process/roundPath.ts","../src/process/roundSegment.ts","../src/process/segmentToCubic.ts","../src/process/shortenSegment.ts","../src/morph/fixPath.ts","../src/morph/splitCubicSegment.ts","../src/morph/equalizeSegments.ts","../src/morph/equalizePaths.ts","../src/intersect/pathIntersection.ts","../src/intersect/boundingBoxIntersect.ts","../src/intersect/isPointInsideBBox.ts"],"mappings":";;;;;;;;KAGY;;EAEV,SAAS;;EAET;;EAEA;;EAEA;;;KAIU;;EAEV;;IAEE;;IAEA;;;EAGF;;EAEA,UAAU;;;KAIA;;EAEV;;EAEA;;EAEA;;EAEA;;EAEA;GACC;;;KAGS;;EAEV;;EAEA;GACC;;;KAGS;;EAEV;;EAEA;;EAEA;;EAEA;GACC;;;KAGS;;EAEV;;EAEA;;EAEA;;EAEA;;EAEA;GACC;;;KAGS;;EAEV;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;GACC;;;KAGS;;EAEV;;EAEA;GACC;;;KAIS;;EAEV;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;KA2CU;;EAEV;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;KAmDU;;EAEV;;EAEA;;EAEA;;EAEA;;EAEA;;;;;KCvOU;;KA8BA;;KAaA;;KAcA;;KAEA;;KAGA;;KAEA;;KAGA;;KAEA;;KAGA;;KAEA;;KAGA;;KAEA;;KAGA;;KAEA;;KAGA;;KAEA;;KAGA;;KAEA;;KAGA;;KAEA;;KAGA;;KAEA;;KAGA,kBACR,WACA,WACA,WACA,WACA,WACA,WACA,WACA,WACA,WACA;;KAGQ,kBACR,WACA,WACA,WACA,WACA,WACA,WACA,WACA,WACA,WACA;;KAGQ,cAAc,kBAAkB;;KAGhC,YAAY;;KAEZ,YAA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1,5 @@
1
1
  /*!
2
- * SVGPathCommander v2.2.3 (http://thednp.github.io/svg-path-commander)
2
+ * SVGPathCommander v2.2.4 (http://thednp.github.io/svg-path-commander)
3
3
  * Copyright 2026 © thednp
4
4
  * Licensed under MIT (https://github.com/thednp/svg-path-commander/blob/master/LICENSE)
5
5
  */
@@ -4308,7 +4308,7 @@ const interHelper = (bez1, bez2, config) => {
4308
4308
  * pathsIntersection('M0 50C0 0,100 0,100 50', 'M50 0C100 0,100 100,50 100', true)
4309
4309
  * // => 1
4310
4310
  * pathsIntersection('M0 50C0 0,100 0,100 50', 'M50 0C100 0,100 100,50 100', false)
4311
- * // => [{ x: 50, y: 25, t1: 0.5, t2: 0.5 }]
4311
+ * // => [{ x: 80.4136, y: 19.5864, t1: 0.7262, t2: 0.2738 }]
4312
4312
  * ```
4313
4313
  */
4314
4314
  const pathsIntersection = (pathInput1, pathInput2, justCount = true) => {