pantograph2d 0.10.1 → 0.11.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/{QuadraticBezier-DCa0WGs0.js → QuadraticBezier-B2g_Iyyl.js} +5 -5
- package/dist/{QuadraticBezier-DCa0WGs0.js.map → QuadraticBezier-B2g_Iyyl.js.map} +1 -1
- package/dist/{draw-CJWiicbK.js → draw-BJW5kfm9.js} +3 -3
- package/dist/{draw-CJWiicbK.js.map → draw-BJW5kfm9.js.map} +1 -1
- package/dist/{models-CFd5lRKc.js → models-DdZq-waE.js} +2 -2
- package/dist/{models-CFd5lRKc.js.map → models-DdZq-waE.js.map} +1 -1
- package/dist/pantograph/drawShape.js +2 -2
- package/dist/pantograph/models.js +2 -2
- package/dist/pantograph/svg.js +1 -1
- package/dist/pantograph.cjs +2 -2
- package/dist/pantograph.cjs.map +1 -1
- package/dist/pantograph.js +674 -568
- package/dist/pantograph.js.map +1 -1
- package/dist/{svg-CD4q2GBE.js → svg-D8vwkQf7.js} +2 -2
- package/dist/{svg-CD4q2GBE.js.map → svg-D8vwkQf7.js.map} +1 -1
- package/dist/types/src/algorithms/tesselate/tesselateSegment.d.ts +7 -0
- package/dist/types/src/main.d.ts +1 -1
- package/dist/types/src/operations.d.ts +1 -0
- package/dist/types/src/tesselationOperations.d.ts +15 -0
- package/package.json +2 -2
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Vector } from './definitions.js';
|
|
2
|
+
import { Segment } from './models/segments/Segment.js';
|
|
3
|
+
import { Diagram, Figure, Loop, Strand } from './models/exports';
|
|
4
|
+
import { TesselateSegmentOptions } from './algorithms/tesselate/tesselateSegment.js';
|
|
5
|
+
declare function tesselate(shape: Diagram, options?: TesselateSegmentOptions): Diagram;
|
|
6
|
+
declare function tesselate(shape: Figure, options?: TesselateSegmentOptions): Figure;
|
|
7
|
+
declare function tesselate(shape: Loop, options?: TesselateSegmentOptions): Loop;
|
|
8
|
+
declare function tesselate(shape: Strand, options?: TesselateSegmentOptions): Strand;
|
|
9
|
+
declare function tesselate(shape: Segment, options?: TesselateSegmentOptions): Segment[];
|
|
10
|
+
declare function tesselatePoints(shape: Diagram, options?: TesselateSegmentOptions): Vector[][][];
|
|
11
|
+
declare function tesselatePoints(shape: Figure, options?: TesselateSegmentOptions): Vector[][];
|
|
12
|
+
declare function tesselatePoints(shape: Loop, options?: TesselateSegmentOptions): Vector[];
|
|
13
|
+
declare function tesselatePoints(shape: Strand, options?: TesselateSegmentOptions): Vector[];
|
|
14
|
+
declare function tesselatePoints(shape: Segment, options?: TesselateSegmentOptions): Vector[];
|
|
15
|
+
export { tesselate, tesselatePoints };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pantograph2d",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"description": "Pantograph, the pure JS 2D CAD library",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/pantograph.cjs",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"vitest": "^2.1.3",
|
|
79
79
|
"xmldom": "^0.6.0"
|
|
80
80
|
},
|
|
81
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "787b28dafa5153ed1ff51e5a80813834ce1fbca8",
|
|
82
82
|
"dependencies": {
|
|
83
83
|
"@types/flatbush": "^4.2.2",
|
|
84
84
|
"flatbush": "^4.4.0",
|