clipper2-ts 2.0.1-1 → 2.0.1-11

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 (51) hide show
  1. package/README.md +26 -12
  2. package/dist/Clipper.d.ts +204 -108
  3. package/dist/Clipper.d.ts.map +1 -1
  4. package/dist/Clipper.js +1114 -1073
  5. package/dist/Clipper.js.map +1 -1
  6. package/dist/Core.d.ts +126 -91
  7. package/dist/Core.d.ts.map +1 -1
  8. package/dist/Core.js +640 -503
  9. package/dist/Core.js.map +1 -1
  10. package/dist/Engine.d.ts +13 -18
  11. package/dist/Engine.d.ts.map +1 -1
  12. package/dist/Engine.js +169 -117
  13. package/dist/Engine.js.map +1 -1
  14. package/dist/Minkowski.d.ts +6 -6
  15. package/dist/Minkowski.d.ts.map +1 -1
  16. package/dist/Minkowski.js +91 -105
  17. package/dist/Minkowski.js.map +1 -1
  18. package/dist/Offset.d.ts.map +1 -1
  19. package/dist/Offset.js +41 -31
  20. package/dist/Offset.js.map +1 -1
  21. package/dist/RectClip.d.ts +1 -0
  22. package/dist/RectClip.d.ts.map +1 -1
  23. package/dist/RectClip.js +135 -98
  24. package/dist/RectClip.js.map +1 -1
  25. package/dist/Triangulation.d.ts +14 -2
  26. package/dist/Triangulation.d.ts.map +1 -1
  27. package/dist/Triangulation.js +408 -92
  28. package/dist/Triangulation.js.map +1 -1
  29. package/dist/clipper2.min.mjs +7 -0
  30. package/dist/clipper2.min.mjs.map +1 -0
  31. package/dist/index.d.ts +4 -5
  32. package/dist/index.d.ts.map +1 -1
  33. package/dist/index.js +2 -3
  34. package/dist/index.js.map +1 -1
  35. package/package.json +17 -6
  36. package/src/Clipper.ts +1065 -928
  37. package/src/Core.ts +664 -434
  38. package/src/Engine.ts +179 -113
  39. package/src/Minkowski.ts +104 -113
  40. package/src/Offset.ts +40 -31
  41. package/src/RectClip.ts +70 -121
  42. package/src/Triangulation.ts +429 -97
  43. package/src/index.ts +17 -17
  44. package/dist/OutPtPool.d.ts +0 -12
  45. package/dist/OutPtPool.d.ts.map +0 -1
  46. package/dist/OutPtPool.js +0 -40
  47. package/dist/OutPtPool.js.map +0 -1
  48. package/dist/VertexPool.d.ts +0 -12
  49. package/dist/VertexPool.d.ts.map +0 -1
  50. package/dist/VertexPool.js +0 -31
  51. package/dist/VertexPool.js.map +0 -1
package/README.md CHANGED
@@ -14,7 +14,7 @@ npm install clipper2-ts
14
14
  ## Usage
15
15
 
16
16
  ```typescript
17
- import { Clipper, FillRule, JoinType, EndType } from 'clipper2-ts';
17
+ import { intersect, union, difference, xor, inflatePaths, FillRule, JoinType, EndType } from 'clipper2-ts';
18
18
 
19
19
  // Define polygons as arrays of points
20
20
  const subject = [[
@@ -32,13 +32,13 @@ const clip = [[
32
32
  ]];
33
33
 
34
34
  // Boolean operations
35
- const intersection = Clipper.intersect(subject, clip, FillRule.NonZero);
36
- const union = Clipper.union(subject, clip, FillRule.NonZero);
37
- const difference = Clipper.difference(subject, clip, FillRule.NonZero);
38
- const xor = Clipper.xor(subject, clip, FillRule.NonZero);
35
+ const intersection = intersect(subject, clip, FillRule.NonZero);
36
+ const unionResult = union(subject, clip, FillRule.NonZero);
37
+ const diff = difference(subject, clip, FillRule.NonZero);
38
+ const xorResult = xor(subject, clip, FillRule.NonZero);
39
39
 
40
40
  // Polygon offsetting (inflate/deflate)
41
- const offset = Clipper.inflatePaths(subject, 10, JoinType.Round, EndType.Polygon);
41
+ const offset = inflatePaths(subject, 10, JoinType.Round, EndType.Polygon);
42
42
  ```
43
43
 
44
44
  ### Triangulation
@@ -46,7 +46,7 @@ const offset = Clipper.inflatePaths(subject, 10, JoinType.Round, EndType.Polygon
46
46
  Convert polygons into triangles using constrained Delaunay triangulation:
47
47
 
48
48
  ```typescript
49
- import { Clipper, TriangulateResult } from 'clipper2-ts';
49
+ import { triangulate, triangulateD, TriangulateResult } from 'clipper2-ts';
50
50
 
51
51
  const polygon = [[
52
52
  { x: 0, y: 0 },
@@ -55,14 +55,14 @@ const polygon = [[
55
55
  { x: 0, y: 100 }
56
56
  ]];
57
57
 
58
- const { result, solution } = Clipper.triangulate(polygon);
58
+ const { result, solution } = triangulate(polygon);
59
59
  if (result === TriangulateResult.success) {
60
60
  // solution contains triangles (each with 3 vertices)
61
61
  console.log(`Created ${solution.length} triangles`);
62
62
  }
63
63
 
64
64
  // For floating-point coordinates:
65
- const { result: resultD, solution: solutionD } = Clipper.triangulateD(polygon, 2);
65
+ const { result: resultD, solution: solutionD } = triangulateD(polygon, 2);
66
66
  ```
67
67
 
68
68
  ### Z-coordinate support
@@ -98,9 +98,21 @@ npm test:coverage # Run with coverage report
98
98
 
99
99
  The test suite validates clipping, offsetting, triangulation, and Z-callbacks against Clipper2's reference implementation. Polygon test 16 (bow-tie) uses relaxed tolerances as this edge case also fails in the C# reference
100
100
 
101
- ## Peformance
101
+ ## Numeric precision
102
102
 
103
- Faster than JavaScript-based Clipper (Clipper1) ports, slower than Clipper2-WASM; choose based on your contraints
103
+ Unlike C# Clipper2, which has full int64 support, this library uses JavaScript's `Number` rather than `BigInt` for performance, with `BigInt` used for some intermediate arithmetic where needed. Coordinates must stay within the [safe integer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isSafeInteger) range (2^53); the library throws on overflow
104
+
105
+ If you have a use case that requires the full 64-bit range, and Clipper2-WASM isn't an option, please open an issue and we can discuss!
106
+
107
+ ### Bundlers / minifiers (terser)
108
+
109
+ This library uses `BigInt` internally. Some versions/configurations of terser have had issues when compressing `BigInt` literals (eg `0n`). `clipper2-ts` avoids BigInt literal syntax in its source to improve compatibility
110
+
111
+ If you still hit terser issues in a consuming build, one workaround is `terserOptions: { compress: { evaluate: false } }`
112
+
113
+ ## Performance
114
+
115
+ Faster than JavaScript-based Clipper (Clipper1) ports, slower than Clipper2-WASM; choose based on your constraints
104
116
 
105
117
  ## License
106
118
 
@@ -108,4 +120,6 @@ Boost Software License 1.0 (same as Clipper2)
108
120
 
109
121
  ## Credits
110
122
 
111
- Original library by Angus Johnson. TypeScript port maintained by Jeremy Tribby
123
+ Original Clipper2 library by Angus Johnson. TypeScript port maintained by Jeremy Tribby
124
+
125
+ Benchmark polygon data from [Poly2Tri](https://github.com/jhasse/poly2tri) (BSD 3-clause). See `LICENSE_THIRD_PARTY` for details
package/dist/Clipper.d.ts CHANGED
@@ -12,112 +12,208 @@ import { Point64, PointD, Path64, PathD, Paths64, PathsD, Rect64, RectD, ClipTyp
12
12
  import { PolyTree64, PolyTreeD, PolyPathD } from './Engine.js';
13
13
  import { JoinType, EndType } from './Offset.js';
14
14
  import { TriangulateResult } from './Triangulation.js';
15
- export declare namespace Clipper {
16
- const invalidRect64: Rect64;
17
- const invalidRectD: RectD;
18
- function intersect(subject: Paths64, clip: Paths64, fillRule: FillRule): Paths64;
19
- function intersectD(subject: PathsD, clip: PathsD, fillRule: FillRule, precision?: number): PathsD;
20
- function union(subject: Paths64, fillRule: FillRule): Paths64;
21
- function union(subject: Paths64, clip: Paths64, fillRule: FillRule): Paths64;
22
- function unionD(subject: PathsD, fillRule: FillRule): PathsD;
23
- function unionD(subject: PathsD, clip: PathsD, fillRule: FillRule, precision?: number): PathsD;
24
- function difference(subject: Paths64, clip: Paths64, fillRule: FillRule): Paths64;
25
- function differenceD(subject: PathsD, clip: PathsD, fillRule: FillRule, precision?: number): PathsD;
26
- function xor(subject: Paths64, clip: Paths64, fillRule: FillRule): Paths64;
27
- function xorD(subject: PathsD, clip: PathsD, fillRule: FillRule, precision?: number): PathsD;
28
- function booleanOp(clipType: ClipType, subject: Paths64 | null, clip: Paths64 | null, fillRule: FillRule): Paths64;
29
- function booleanOpWithPolyTree(clipType: ClipType, subject: Paths64 | null, clip: Paths64 | null, polytree: PolyTree64, fillRule: FillRule): void;
30
- function booleanOpD(clipType: ClipType, subject: PathsD, clip: PathsD | null, fillRule: FillRule, precision?: number): PathsD;
31
- function booleanOpDWithPolyTree(clipType: ClipType, subject: PathsD | null, clip: PathsD | null, polytree: PolyTreeD, fillRule: FillRule, precision?: number): void;
32
- function inflatePaths(paths: Paths64, delta: number, joinType: JoinType, endType: EndType, miterLimit?: number, arcTolerance?: number): Paths64;
33
- function inflatePathsD(paths: PathsD, delta: number, joinType: JoinType, endType: EndType, miterLimit?: number, precision?: number, arcTolerance?: number): PathsD;
34
- function rectClip(rect: Rect64, paths: Paths64): Paths64;
35
- function rectClip(rect: Rect64, path: Path64): Paths64;
36
- function rectClip(rect: RectD, paths: PathsD, precision?: number): PathsD;
37
- function rectClip(rect: RectD, path: PathD, precision?: number): PathsD;
38
- function rectClipLines(rect: Rect64, paths: Paths64): Paths64;
39
- function rectClipLines(rect: Rect64, path: Path64): Paths64;
40
- function rectClipLines(rect: RectD, paths: PathsD, precision?: number): PathsD;
41
- function rectClipLines(rect: RectD, path: PathD, precision?: number): PathsD;
42
- function minkowskiSum(pattern: Path64, path: Path64, isClosed: boolean): Paths64;
43
- function minkowskiSumD(pattern: PathD, path: PathD, isClosed: boolean): PathsD;
44
- function minkowskiDiff(pattern: Path64, path: Path64, isClosed: boolean): Paths64;
45
- function minkowskiDiffD(pattern: PathD, path: PathD, isClosed: boolean): PathsD;
46
- function area(path: Path64): number;
47
- function areaPaths(paths: Paths64): number;
48
- function areaD(path: PathD): number;
49
- function areaPathsD(paths: PathsD): number;
50
- function isPositive(poly: Path64): boolean;
51
- function isPositiveD(poly: PathD): boolean;
52
- function path64ToString(path: Path64): string;
53
- function paths64ToString(paths: Paths64): string;
54
- function pathDToString(path: PathD, precision?: number): string;
55
- function pathsDToString(paths: PathsD, precision?: number): string;
56
- function offsetPath(path: Path64, dx: number, dy: number): Path64;
57
- function scalePoint64(pt: Point64, scale: number): Point64;
58
- function scalePointD(pt: Point64, scale: number): PointD;
59
- function scaleRect(rec: RectD, scale: number): Rect64;
60
- function scalePath(path: Path64, scale: number): Path64;
61
- function scalePaths(paths: Paths64, scale: number): Paths64;
62
- function scalePathD(path: PathD, scale: number): PathD;
63
- function scalePathsD(paths: PathsD, scale: number): PathsD;
64
- function scalePath64(path: PathD, scale: number): Path64;
65
- function scalePaths64(paths: PathsD, scale: number): Paths64;
66
- function scalePathDFromInt(path: Path64, scale: number): PathD;
67
- function scalePathsDFromInt(paths: Paths64, scale: number): PathsD;
68
- function path64FromD(path: PathD): Path64;
69
- function paths64FromD(paths: PathsD): Paths64;
70
- function pathsD(paths: Paths64): PathsD;
71
- function pathD(path: Path64): PathD;
72
- function translatePath(path: Path64, dx: number, dy: number): Path64;
73
- function translatePaths(paths: Paths64, dx: number, dy: number): Paths64;
74
- function translatePathD(path: PathD, dx: number, dy: number): PathD;
75
- function translatePathsD(paths: PathsD, dx: number, dy: number): PathsD;
76
- function reversePath(path: Path64): Path64;
77
- function reversePathD(path: PathD): PathD;
78
- function reversePaths(paths: Paths64): Paths64;
79
- function reversePathsD(paths: PathsD): PathsD;
80
- function getBounds(path: Path64): Rect64;
81
- function getBoundsPaths(paths: Paths64): Rect64;
82
- function getBoundsD(path: PathD): RectD;
83
- function getBoundsPathsD(paths: PathsD): RectD;
84
- function makePath(arr: number[]): Path64;
85
- function makePathD(arr: number[]): PathD;
86
- function sqr(val: number): number;
87
- function distanceSqr(pt1: Point64, pt2: Point64): number;
88
- function midPoint(pt1: Point64, pt2: Point64): Point64;
89
- function midPointD(pt1: PointD, pt2: PointD): PointD;
90
- function inflateRect(rec: Rect64, dx: number, dy: number): void;
91
- function inflateRectD(rec: RectD, dx: number, dy: number): void;
92
- function pointsNearEqual(pt1: PointD, pt2: PointD, distanceSqrd: number): boolean;
93
- function stripNearDuplicates(path: PathD, minEdgeLenSqrd: number, isClosedPath: boolean): PathD;
94
- function stripDuplicates(path: Path64, isClosedPath: boolean): Path64;
95
- function polyTreeToPaths64(polyTree: PolyTree64): Paths64;
96
- function addPolyNodeToPathsD(polyPath: PolyPathD, paths: PathsD): void;
97
- function polyTreeToPathsD(polyTree: PolyTreeD): PathsD;
98
- function perpendicDistFromLineSqrd(pt: PointD, line1: PointD, line2: PointD): number;
99
- function perpendicDistFromLineSqrd64(pt: Point64, line1: Point64, line2: Point64): number;
100
- function ramerDouglasPeucker(path: Path64, epsilon: number): Path64;
101
- function ramerDouglasPeuckerPaths(paths: Paths64, epsilon: number): Paths64;
102
- function ramerDouglasPeuckerD(path: PathD, epsilon: number): PathD;
103
- function ramerDouglasPeuckerPathsD(paths: PathsD, epsilon: number): PathsD;
104
- function simplifyPath(path: Path64, epsilon: number, isClosedPath?: boolean): Path64;
105
- function simplifyPaths(paths: Paths64, epsilon: number, isClosedPaths?: boolean): Paths64;
106
- function simplifyPathD(path: PathD, epsilon: number, isClosedPath?: boolean): PathD;
107
- function simplifyPathsD(paths: PathsD, epsilon: number, isClosedPath?: boolean): PathsD;
108
- function trimCollinear(path: Path64, isOpen?: boolean): Path64;
109
- function trimCollinearD(path: PathD, precision: number, isOpen?: boolean): PathD;
110
- function pointInPolygon(pt: Point64, polygon: Path64): PointInPolygonResult;
111
- function pointInPolygonD(pt: PointD, polygon: PathD, precision?: number): PointInPolygonResult;
112
- function ellipse(center: Point64, radiusX: number, radiusY?: number, steps?: number): Path64;
113
- function ellipseD(center: PointD, radiusX: number, radiusY?: number, steps?: number): PathD;
114
- function triangulate(pp: Paths64, useDelaunay?: boolean): {
115
- result: TriangulateResult;
116
- solution: Paths64;
117
- };
118
- function triangulateD(pp: PathsD, decPlaces: number, useDelaunay?: boolean): {
119
- result: TriangulateResult;
120
- solution: PathsD;
121
- };
122
- }
15
+ export declare const invalidRect64: Rect64;
16
+ export declare const invalidRectD: RectD;
17
+ export declare function intersect(subject: Paths64, clip: Paths64, fillRule: FillRule): Paths64;
18
+ export declare function intersectD(subject: PathsD, clip: PathsD, fillRule: FillRule, precision?: number): PathsD;
19
+ export declare function union(subject: Paths64, fillRule: FillRule): Paths64;
20
+ export declare function union(subject: Paths64, clip: Paths64, fillRule: FillRule): Paths64;
21
+ export declare function unionD(subject: PathsD, fillRule: FillRule): PathsD;
22
+ export declare function unionD(subject: PathsD, clip: PathsD, fillRule: FillRule, precision?: number): PathsD;
23
+ export declare function difference(subject: Paths64, clip: Paths64, fillRule: FillRule): Paths64;
24
+ export declare function differenceD(subject: PathsD, clip: PathsD, fillRule: FillRule, precision?: number): PathsD;
25
+ export declare function xor(subject: Paths64, clip: Paths64, fillRule: FillRule): Paths64;
26
+ export declare function xorD(subject: PathsD, clip: PathsD, fillRule: FillRule, precision?: number): PathsD;
27
+ export declare function booleanOp(clipType: ClipType, subject: Paths64 | null, clip: Paths64 | null, fillRule: FillRule): Paths64;
28
+ export declare function booleanOpWithPolyTree(clipType: ClipType, subject: Paths64 | null, clip: Paths64 | null, polytree: PolyTree64, fillRule: FillRule): void;
29
+ export declare function booleanOpD(clipType: ClipType, subject: PathsD, clip: PathsD | null, fillRule: FillRule, precision?: number): PathsD;
30
+ export declare function booleanOpDWithPolyTree(clipType: ClipType, subject: PathsD | null, clip: PathsD | null, polytree: PolyTreeD, fillRule: FillRule, precision?: number): void;
31
+ export declare function inflatePaths(paths: Paths64, delta: number, joinType: JoinType, endType: EndType, miterLimit?: number, arcTolerance?: number): Paths64;
32
+ export declare function inflatePathsD(paths: PathsD, delta: number, joinType: JoinType, endType: EndType, miterLimit?: number, precision?: number, arcTolerance?: number): PathsD;
33
+ export declare function rectClip(rect: Rect64, paths: Paths64): Paths64;
34
+ export declare function rectClip(rect: Rect64, path: Path64): Paths64;
35
+ export declare function rectClip(rect: RectD, paths: PathsD, precision?: number): PathsD;
36
+ export declare function rectClip(rect: RectD, path: PathD, precision?: number): PathsD;
37
+ export declare function rectClipLines(rect: Rect64, paths: Paths64): Paths64;
38
+ export declare function rectClipLines(rect: Rect64, path: Path64): Paths64;
39
+ export declare function rectClipLines(rect: RectD, paths: PathsD, precision?: number): PathsD;
40
+ export declare function rectClipLines(rect: RectD, path: PathD, precision?: number): PathsD;
41
+ export declare function minkowskiSum(pattern: Path64, path: Path64, isClosed: boolean): Paths64;
42
+ export declare function minkowskiSumD(pattern: PathD, path: PathD, isClosed: boolean): PathsD;
43
+ export declare function minkowskiDiff(pattern: Path64, path: Path64, isClosed: boolean): Paths64;
44
+ export declare function minkowskiDiffD(pattern: PathD, path: PathD, isClosed: boolean): PathsD;
45
+ export declare function area(path: Path64): number;
46
+ export declare function areaPaths(paths: Paths64): number;
47
+ export declare function areaD(path: PathD): number;
48
+ export declare function areaPathsD(paths: PathsD): number;
49
+ export declare function isPositive(poly: Path64): boolean;
50
+ export declare function isPositiveD(poly: PathD): boolean;
51
+ export declare function path64ToString(path: Path64): string;
52
+ export declare function paths64ToString(paths: Paths64): string;
53
+ export declare function pathDToString(path: PathD, precision?: number): string;
54
+ export declare function pathsDToString(paths: PathsD, precision?: number): string;
55
+ export declare function offsetPath(path: Path64, dx: number, dy: number): Path64;
56
+ export declare function scalePoint64(pt: Point64, scale: number): Point64;
57
+ export declare function scalePointD(pt: Point64, scale: number): PointD;
58
+ export declare function scaleRect(rec: RectD, scale: number): Rect64;
59
+ export declare function scalePath(path: Path64, scale: number): Path64;
60
+ export declare function scalePaths(paths: Paths64, scale: number): Paths64;
61
+ export declare function scalePathD(path: PathD, scale: number): PathD;
62
+ export declare function scalePathsD(paths: PathsD, scale: number): PathsD;
63
+ export declare function scalePath64(path: PathD, scale: number): Path64;
64
+ export declare function scalePaths64(paths: PathsD, scale: number): Paths64;
65
+ export declare function scalePathDFromInt(path: Path64, scale: number): PathD;
66
+ export declare function scalePathsDFromInt(paths: Paths64, scale: number): PathsD;
67
+ export declare function path64FromD(path: PathD): Path64;
68
+ export declare function paths64FromD(paths: PathsD): Paths64;
69
+ export declare function pathsD(paths: Paths64): PathsD;
70
+ export declare function pathD(path: Path64): PathD;
71
+ export declare function translatePath(path: Path64, dx: number, dy: number): Path64;
72
+ export declare function translatePaths(paths: Paths64, dx: number, dy: number): Paths64;
73
+ export declare function translatePathD(path: PathD, dx: number, dy: number): PathD;
74
+ export declare function translatePathsD(paths: PathsD, dx: number, dy: number): PathsD;
75
+ export declare function reversePath(path: Path64): Path64;
76
+ export declare function reversePathD(path: PathD): PathD;
77
+ export declare function reversePaths(paths: Paths64): Paths64;
78
+ export declare function reversePathsD(paths: PathsD): PathsD;
79
+ export declare function getBounds(path: Path64): Rect64;
80
+ export declare function getBoundsPaths(paths: Paths64): Rect64;
81
+ export declare function getBoundsD(path: PathD): RectD;
82
+ export declare function getBoundsPathsD(paths: PathsD): RectD;
83
+ export declare function makePath(arr: number[]): Path64;
84
+ export declare function makePathD(arr: number[]): PathD;
85
+ export declare function sqr(val: number): number;
86
+ export declare function distanceSqr(pt1: Point64, pt2: Point64): number;
87
+ export declare function midPoint(pt1: Point64, pt2: Point64): Point64;
88
+ export declare function midPointD(pt1: PointD, pt2: PointD): PointD;
89
+ export declare function inflateRect(rec: Rect64, dx: number, dy: number): void;
90
+ export declare function inflateRectD(rec: RectD, dx: number, dy: number): void;
91
+ export declare function pointsNearEqual(pt1: PointD, pt2: PointD, distanceSqrd: number): boolean;
92
+ export declare function stripNearDuplicates(path: PathD, minEdgeLenSqrd: number, isClosedPath: boolean): PathD;
93
+ export declare function stripDuplicates(path: Path64, isClosedPath: boolean): Path64;
94
+ export declare function polyTreeToPaths64(polyTree: PolyTree64): Paths64;
95
+ export declare function addPolyNodeToPathsD(polyPath: PolyPathD, paths: PathsD): void;
96
+ export declare function polyTreeToPathsD(polyTree: PolyTreeD): PathsD;
97
+ export declare function perpendicDistFromLineSqrd(pt: PointD, line1: PointD, line2: PointD): number;
98
+ export declare function perpendicDistFromLineSqrd64(pt: Point64, line1: Point64, line2: Point64): number;
99
+ export declare function ramerDouglasPeucker(path: Path64, epsilon: number): Path64;
100
+ export declare function ramerDouglasPeuckerPaths(paths: Paths64, epsilon: number): Paths64;
101
+ export declare function ramerDouglasPeuckerD(path: PathD, epsilon: number): PathD;
102
+ export declare function ramerDouglasPeuckerPathsD(paths: PathsD, epsilon: number): PathsD;
103
+ export declare function simplifyPath(path: Path64, epsilon: number, isClosedPath?: boolean): Path64;
104
+ export declare function simplifyPaths(paths: Paths64, epsilon: number, isClosedPaths?: boolean): Paths64;
105
+ export declare function simplifyPathD(path: PathD, epsilon: number, isClosedPath?: boolean): PathD;
106
+ export declare function simplifyPathsD(paths: PathsD, epsilon: number, isClosedPath?: boolean): PathsD;
107
+ export declare function trimCollinear(path: Path64, isOpen?: boolean): Path64;
108
+ export declare function trimCollinearD(path: PathD, precision: number, isOpen?: boolean): PathD;
109
+ export declare function pointInPolygon(pt: Point64, polygon: Path64): PointInPolygonResult;
110
+ export declare function pointInPolygonD(pt: PointD, polygon: PathD, precision?: number): PointInPolygonResult;
111
+ export declare function ellipse(center: Point64, radiusX: number, radiusY?: number, steps?: number): Path64;
112
+ export declare function ellipseD(center: PointD, radiusX: number, radiusY?: number, steps?: number): PathD;
113
+ export declare function triangulate(pp: Paths64, useDelaunay?: boolean): {
114
+ result: TriangulateResult;
115
+ solution: Paths64;
116
+ };
117
+ export declare function triangulateD(pp: PathsD, decPlaces: number, useDelaunay?: boolean): {
118
+ result: TriangulateResult;
119
+ solution: PathsD;
120
+ };
121
+ /**
122
+ * @deprecated Use named exports or \`import * as Clipper\` instead
123
+ * Compatibility alias for direct imports from Clipper.js
124
+ */
125
+ export declare const Clipper: {
126
+ invalidRect64: Rect64;
127
+ invalidRectD: RectD;
128
+ intersect: typeof intersect;
129
+ intersectD: typeof intersectD;
130
+ union: typeof union;
131
+ unionD: typeof unionD;
132
+ difference: typeof difference;
133
+ differenceD: typeof differenceD;
134
+ xor: typeof xor;
135
+ xorD: typeof xorD;
136
+ booleanOp: typeof booleanOp;
137
+ booleanOpWithPolyTree: typeof booleanOpWithPolyTree;
138
+ booleanOpD: typeof booleanOpD;
139
+ booleanOpDWithPolyTree: typeof booleanOpDWithPolyTree;
140
+ inflatePaths: typeof inflatePaths;
141
+ inflatePathsD: typeof inflatePathsD;
142
+ rectClip: typeof rectClip;
143
+ rectClipLines: typeof rectClipLines;
144
+ minkowskiSum: typeof minkowskiSum;
145
+ minkowskiSumD: typeof minkowskiSumD;
146
+ minkowskiDiff: typeof minkowskiDiff;
147
+ minkowskiDiffD: typeof minkowskiDiffD;
148
+ area: typeof area;
149
+ areaPaths: typeof areaPaths;
150
+ areaD: typeof areaD;
151
+ areaPathsD: typeof areaPathsD;
152
+ isPositive: typeof isPositive;
153
+ isPositiveD: typeof isPositiveD;
154
+ path64ToString: typeof path64ToString;
155
+ paths64ToString: typeof paths64ToString;
156
+ pathDToString: typeof pathDToString;
157
+ pathsDToString: typeof pathsDToString;
158
+ offsetPath: typeof offsetPath;
159
+ scalePoint64: typeof scalePoint64;
160
+ scalePointD: typeof scalePointD;
161
+ scaleRect: typeof scaleRect;
162
+ scalePath: typeof scalePath;
163
+ scalePaths: typeof scalePaths;
164
+ scalePathD: typeof scalePathD;
165
+ scalePathsD: typeof scalePathsD;
166
+ scalePath64: typeof scalePath64;
167
+ scalePaths64: typeof scalePaths64;
168
+ scalePathDFromInt: typeof scalePathDFromInt;
169
+ scalePathsDFromInt: typeof scalePathsDFromInt;
170
+ path64FromD: typeof path64FromD;
171
+ paths64FromD: typeof paths64FromD;
172
+ pathsD: typeof pathsD;
173
+ pathD: typeof pathD;
174
+ translatePath: typeof translatePath;
175
+ translatePaths: typeof translatePaths;
176
+ translatePathD: typeof translatePathD;
177
+ translatePathsD: typeof translatePathsD;
178
+ reversePath: typeof reversePath;
179
+ reversePathD: typeof reversePathD;
180
+ reversePaths: typeof reversePaths;
181
+ reversePathsD: typeof reversePathsD;
182
+ getBounds: typeof getBounds;
183
+ getBoundsPaths: typeof getBoundsPaths;
184
+ getBoundsD: typeof getBoundsD;
185
+ getBoundsPathsD: typeof getBoundsPathsD;
186
+ makePath: typeof makePath;
187
+ makePathD: typeof makePathD;
188
+ sqr: typeof sqr;
189
+ distanceSqr: typeof distanceSqr;
190
+ midPoint: typeof midPoint;
191
+ midPointD: typeof midPointD;
192
+ inflateRect: typeof inflateRect;
193
+ inflateRectD: typeof inflateRectD;
194
+ pointsNearEqual: typeof pointsNearEqual;
195
+ stripNearDuplicates: typeof stripNearDuplicates;
196
+ stripDuplicates: typeof stripDuplicates;
197
+ polyTreeToPaths64: typeof polyTreeToPaths64;
198
+ addPolyNodeToPathsD: typeof addPolyNodeToPathsD;
199
+ polyTreeToPathsD: typeof polyTreeToPathsD;
200
+ perpendicDistFromLineSqrd: typeof perpendicDistFromLineSqrd;
201
+ perpendicDistFromLineSqrd64: typeof perpendicDistFromLineSqrd64;
202
+ ramerDouglasPeucker: typeof ramerDouglasPeucker;
203
+ ramerDouglasPeuckerPaths: typeof ramerDouglasPeuckerPaths;
204
+ ramerDouglasPeuckerD: typeof ramerDouglasPeuckerD;
205
+ ramerDouglasPeuckerPathsD: typeof ramerDouglasPeuckerPathsD;
206
+ simplifyPath: typeof simplifyPath;
207
+ simplifyPaths: typeof simplifyPaths;
208
+ simplifyPathD: typeof simplifyPathD;
209
+ simplifyPathsD: typeof simplifyPathsD;
210
+ trimCollinear: typeof trimCollinear;
211
+ trimCollinearD: typeof trimCollinearD;
212
+ pointInPolygon: typeof pointInPolygon;
213
+ pointInPolygonD: typeof pointInPolygonD;
214
+ ellipse: typeof ellipse;
215
+ ellipseD: typeof ellipseD;
216
+ triangulate: typeof triangulate;
217
+ triangulateD: typeof triangulateD;
218
+ };
123
219
  //# sourceMappingURL=Clipper.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Clipper.d.ts","sourceRoot":"","sources":["../src/Clipper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;gFASgF;AAEhF,OAAO,EACL,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAC9D,QAAQ,EAAY,QAAQ,EAAE,oBAAoB,EAGnD,MAAM,WAAW,CAAC;AACnB,OAAO,EAAuB,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACpF,OAAO,EAAiB,QAAQ,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAG/D,OAAO,EAAY,iBAA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