pantograph2d 0.6.0 → 0.8.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/Diagram-2450b2e6.js +1750 -0
- package/dist/Diagram-2450b2e6.js.map +1 -0
- package/dist/Diagram-57e17509.cjs +4 -0
- package/dist/Diagram-57e17509.cjs.map +1 -0
- package/dist/QuadraticBezier-e116a2d6.js +3647 -0
- package/dist/QuadraticBezier-e116a2d6.js.map +1 -0
- package/dist/QuadraticBezier-e3d7218b.cjs +9 -0
- package/dist/QuadraticBezier-e3d7218b.cjs.map +1 -0
- package/dist/algorithms/intersections/arcsCubicBezierIntersection.d.ts +5 -0
- package/dist/algorithms/intersections/arcsQuadraticBezierIntersection.d.ts +5 -0
- package/dist/algorithms/intersections/bezierClip.d.ts +28 -0
- package/dist/algorithms/intersections/cubicBezierCubicBezierIntersection.d.ts +4 -0
- package/dist/algorithms/intersections/lineBezierIntersection.d.ts +5 -0
- package/dist/algorithms/intersections/quadraticBezierQuadraticBezierIntersection.d.ts +4 -0
- package/dist/algorithms/optimisation/Brent.d.ts +6 -0
- package/dist/api/svg.d.ts +1 -0
- package/dist/draw-27ac6dae.cjs +2 -0
- package/dist/draw-27ac6dae.cjs.map +1 -0
- package/dist/draw-c7b2705c.js +344 -0
- package/dist/draw-c7b2705c.js.map +1 -0
- package/dist/{types/draw.d.ts → draw.d.ts} +15 -0
- package/dist/export/json/exportJSON.d.ts +393 -0
- package/dist/export/json/jsonDiagram.d.ts +135 -0
- package/dist/export/json/jsonFigure.d.ts +132 -0
- package/dist/export/json/jsonLoop.d.ts +65 -0
- package/dist/export/json/jsonSegment.d.ts +62 -0
- package/dist/export/svg/api.d.ts +6 -0
- package/dist/{types/export → export}/svg/exportSVG.d.ts +5 -5
- package/dist/{types/export → export}/svg/wrapSVG.d.ts +1 -1
- package/dist/{types/import → import}/json/importJSON.d.ts +3 -1
- package/dist/{types/main.d.ts → main.d.ts} +1 -1
- package/dist/{types/models → models}/BoundingBox.d.ts +3 -0
- package/dist/{types/models → models}/exports.d.ts +4 -0
- package/dist/models/segments/CubicBezier.d.ts +31 -0
- package/dist/models/segments/QuadraticBezier.d.ts +30 -0
- package/dist/models/segments/utils/deCasteljau.d.ts +3 -0
- package/dist/models/segments/utils/isSegment.d.ts +8 -0
- package/dist/pantograph/drawShape.cjs +1 -1
- package/dist/pantograph/drawShape.cjs.map +1 -1
- package/dist/pantograph/drawShape.js +12 -11
- package/dist/pantograph/drawShape.js.map +1 -1
- package/dist/pantograph/models.cjs +1 -1
- package/dist/pantograph/models.js +15 -10
- package/dist/pantograph/models.js.map +1 -1
- package/dist/pantograph/svg.cjs +2 -0
- package/dist/pantograph/svg.cjs.map +1 -0
- package/dist/pantograph/svg.js +11 -0
- package/dist/pantograph/svg.js.map +1 -0
- package/dist/pantograph.cjs +2 -8
- package/dist/pantograph.cjs.map +1 -1
- package/dist/pantograph.js +368 -375
- package/dist/pantograph.js.map +1 -1
- package/dist/utils/removeDuplicateValues.d.ts +1 -0
- package/dist/wrapSVG-02b823ac.cjs +8 -0
- package/dist/wrapSVG-02b823ac.cjs.map +1 -0
- package/dist/wrapSVG-0ec8a111.js +62 -0
- package/dist/wrapSVG-0ec8a111.js.map +1 -0
- package/package.json +33 -22
- package/dist/Diagram-ab93c8b7.cjs +0 -11
- package/dist/Diagram-ab93c8b7.cjs.map +0 -1
- package/dist/Diagram-d848c815.js +0 -4252
- package/dist/Diagram-d848c815.js.map +0 -1
- package/dist/draw-0f591ea4.cjs +0 -2
- package/dist/draw-0f591ea4.cjs.map +0 -1
- package/dist/draw-a830827a.js +0 -288
- package/dist/draw-a830827a.js.map +0 -1
- package/dist/types/export/json/exportJSON.d.ts +0 -196
- package/dist/types/export/json/jsonDiagram.d.ts +0 -69
- package/dist/types/export/json/jsonFigure.d.ts +0 -66
- package/dist/types/export/json/jsonLoop.d.ts +0 -32
- package/dist/types/export/json/jsonSegment.d.ts +0 -29
- /package/dist/{types/algorithms → algorithms}/boolean/figureBooleans.d.ts +0 -0
- /package/dist/{types/algorithms → algorithms}/boolean/loopBooleans.d.ts +0 -0
- /package/dist/{types/algorithms → algorithms}/boolean/strandBoolean.d.ts +0 -0
- /package/dist/{types/algorithms → algorithms}/boolean/strandsBetweenIntersections.d.ts +0 -0
- /package/dist/{types/algorithms → algorithms}/distances/arcArcDistance.d.ts +0 -0
- /package/dist/{types/algorithms → algorithms}/distances/genericDistance.d.ts +0 -0
- /package/dist/{types/algorithms → algorithms}/distances/index.d.ts +0 -0
- /package/dist/{types/algorithms → algorithms}/distances/lineArcDistance.d.ts +0 -0
- /package/dist/{types/algorithms → algorithms}/distances/lineLineDistance.d.ts +0 -0
- /package/dist/{types/algorithms → algorithms}/filletSegments.d.ts +0 -0
- /package/dist/{types/algorithms → algorithms}/intersections/arcArcIntersection.d.ts +0 -0
- /package/dist/{types/algorithms → algorithms}/intersections/arcEllipseArcIntersection.d.ts +0 -0
- /package/dist/{types/algorithms → algorithms}/intersections/ellipseArcEllipseArcIntersection.d.ts +0 -0
- /package/dist/{types/algorithms → algorithms}/intersections/ellipseEllipseIntersection.d.ts +0 -0
- /package/dist/{types/algorithms → algorithms}/intersections/index.d.ts +0 -0
- /package/dist/{types/algorithms → algorithms}/intersections/lineArcIntersection.d.ts +0 -0
- /package/dist/{types/algorithms → algorithms}/intersections/lineEllipseArcIntersection.d.ts +0 -0
- /package/dist/{types/algorithms → algorithms}/intersections/lineLineIntersection.d.ts +0 -0
- /package/dist/{types/algorithms → algorithms}/intersections/rayIntersections.d.ts +0 -0
- /package/dist/{types/algorithms → algorithms}/offsets/offsetFigure.d.ts +0 -0
- /package/dist/{types/algorithms → algorithms}/offsets/offsetSegment.d.ts +0 -0
- /package/dist/{types/algorithms → algorithms}/offsets/offsetStroke.d.ts +0 -0
- /package/dist/{types/algorithms → algorithms}/optimisation/DiRect.d.ts +0 -0
- /package/dist/{types/algorithms → algorithms}/organiseLoops.d.ts +0 -0
- /package/dist/{types/algorithms → algorithms}/simplify.d.ts +0 -0
- /package/dist/{types/algorithms → algorithms}/solvers/solvePolynomials.d.ts +0 -0
- /package/dist/{types/algorithms → algorithms}/stitchSegments.d.ts +0 -0
- /package/dist/{types/api → api}/drawShape.d.ts +0 -0
- /package/dist/{types/api → api}/models.d.ts +0 -0
- /package/dist/{types/booleanOperations.d.ts → booleanOperations.d.ts} +0 -0
- /package/dist/{types/definitions.d.ts → definitions.d.ts} +0 -0
- /package/dist/{types/drawShape → drawShape}/drawCircle.d.ts +0 -0
- /package/dist/{types/drawShape → drawShape}/drawRect.d.ts +0 -0
- /package/dist/{types/export → export}/svg/svgDiagram.d.ts +0 -0
- /package/dist/{types/export → export}/svg/svgFigure.d.ts +0 -0
- /package/dist/{types/export → export}/svg/svgLoop.d.ts +0 -0
- /package/dist/{types/export → export}/svg/svgSegment.d.ts +0 -0
- /package/dist/{types/export → export}/svg/svgStrand.d.ts +0 -0
- /package/dist/{types/models → models}/Diagram.d.ts +0 -0
- /package/dist/{types/models → models}/Figure.d.ts +0 -0
- /package/dist/{types/models → models}/Loop.d.ts +0 -0
- /package/dist/{types/models → models}/Strand.d.ts +0 -0
- /package/dist/{types/models → models}/Stroke.d.ts +0 -0
- /package/dist/{types/models → models}/TransformationMatrix.d.ts +0 -0
- /package/dist/{types/models → models}/segments/Arc.d.ts +0 -0
- /package/dist/{types/models → models}/segments/EllipseArc.d.ts +0 -0
- /package/dist/{types/models → models}/segments/Line.d.ts +0 -0
- /package/dist/{types/models → models}/segments/Segment.d.ts +0 -0
- /package/dist/{types/models → models}/utils/Transformable.d.ts +0 -0
- /package/dist/{types/offsetOperations.d.ts → offsetOperations.d.ts} +0 -0
- /package/dist/{types/operations.d.ts → operations.d.ts} +0 -0
- /package/dist/{types/utils → utils}/allCombinations.d.ts +0 -0
- /package/dist/{types/utils → utils}/allPairs.d.ts +0 -0
- /package/dist/{types/utils → utils}/angularDistance.d.ts +0 -0
- /package/dist/{types/utils → utils}/listOfFigures.d.ts +0 -0
- /package/dist/{types/utils → utils}/projectPointOnLine.d.ts +0 -0
- /package/dist/{types/utils → utils}/range.d.ts +0 -0
- /package/dist/{types/utils → utils}/removeDuplicatePoints.d.ts +0 -0
- /package/dist/{types/utils → utils}/unitAngle.d.ts +0 -0
- /package/dist/{types/utils → utils}/zip.d.ts +0 -0
- /package/dist/{types/vectorOperations.d.ts → vectorOperations.d.ts} +0 -0
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { Diagram } from "../../models/Diagram.js";
|
|
2
|
-
export declare function jsonDiagram(diagram: Diagram): {
|
|
3
|
-
type: string;
|
|
4
|
-
figures: {
|
|
5
|
-
type: string;
|
|
6
|
-
contour: {
|
|
7
|
-
type: string;
|
|
8
|
-
segments: ({
|
|
9
|
-
type: string;
|
|
10
|
-
firstPoint: import("../../definitions.js").Vector;
|
|
11
|
-
lastPoint: import("../../definitions.js").Vector;
|
|
12
|
-
center?: undefined;
|
|
13
|
-
clockwise?: undefined;
|
|
14
|
-
majorRadius?: undefined;
|
|
15
|
-
minorRadius?: undefined;
|
|
16
|
-
tiltAngle?: undefined;
|
|
17
|
-
} | {
|
|
18
|
-
type: string;
|
|
19
|
-
firstPoint: import("../../definitions.js").Vector;
|
|
20
|
-
lastPoint: import("../../definitions.js").Vector;
|
|
21
|
-
center: import("../../definitions.js").Vector;
|
|
22
|
-
clockwise: boolean;
|
|
23
|
-
majorRadius?: undefined;
|
|
24
|
-
minorRadius?: undefined;
|
|
25
|
-
tiltAngle?: undefined;
|
|
26
|
-
} | {
|
|
27
|
-
type: string;
|
|
28
|
-
firstPoint: import("../../definitions.js").Vector;
|
|
29
|
-
lastPoint: import("../../definitions.js").Vector;
|
|
30
|
-
center: import("../../definitions.js").Vector;
|
|
31
|
-
clockwise: boolean;
|
|
32
|
-
majorRadius: number;
|
|
33
|
-
minorRadius: number;
|
|
34
|
-
tiltAngle: number;
|
|
35
|
-
})[];
|
|
36
|
-
};
|
|
37
|
-
holes: {
|
|
38
|
-
type: string;
|
|
39
|
-
segments: ({
|
|
40
|
-
type: string;
|
|
41
|
-
firstPoint: import("../../definitions.js").Vector;
|
|
42
|
-
lastPoint: import("../../definitions.js").Vector;
|
|
43
|
-
center?: undefined;
|
|
44
|
-
clockwise?: undefined;
|
|
45
|
-
majorRadius?: undefined;
|
|
46
|
-
minorRadius?: undefined;
|
|
47
|
-
tiltAngle?: undefined;
|
|
48
|
-
} | {
|
|
49
|
-
type: string;
|
|
50
|
-
firstPoint: import("../../definitions.js").Vector;
|
|
51
|
-
lastPoint: import("../../definitions.js").Vector;
|
|
52
|
-
center: import("../../definitions.js").Vector;
|
|
53
|
-
clockwise: boolean;
|
|
54
|
-
majorRadius?: undefined;
|
|
55
|
-
minorRadius?: undefined;
|
|
56
|
-
tiltAngle?: undefined;
|
|
57
|
-
} | {
|
|
58
|
-
type: string;
|
|
59
|
-
firstPoint: import("../../definitions.js").Vector;
|
|
60
|
-
lastPoint: import("../../definitions.js").Vector;
|
|
61
|
-
center: import("../../definitions.js").Vector;
|
|
62
|
-
clockwise: boolean;
|
|
63
|
-
majorRadius: number;
|
|
64
|
-
minorRadius: number;
|
|
65
|
-
tiltAngle: number;
|
|
66
|
-
})[];
|
|
67
|
-
}[];
|
|
68
|
-
}[];
|
|
69
|
-
};
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import type { Figure } from "../../models/Figure.js";
|
|
2
|
-
export declare function jsonFigure(figure: Figure): {
|
|
3
|
-
type: string;
|
|
4
|
-
contour: {
|
|
5
|
-
type: string;
|
|
6
|
-
segments: ({
|
|
7
|
-
type: string;
|
|
8
|
-
firstPoint: import("../../definitions.js").Vector;
|
|
9
|
-
lastPoint: import("../../definitions.js").Vector;
|
|
10
|
-
center?: undefined;
|
|
11
|
-
clockwise?: undefined;
|
|
12
|
-
majorRadius?: undefined;
|
|
13
|
-
minorRadius?: undefined;
|
|
14
|
-
tiltAngle?: undefined;
|
|
15
|
-
} | {
|
|
16
|
-
type: string;
|
|
17
|
-
firstPoint: import("../../definitions.js").Vector;
|
|
18
|
-
lastPoint: import("../../definitions.js").Vector;
|
|
19
|
-
center: import("../../definitions.js").Vector;
|
|
20
|
-
clockwise: boolean;
|
|
21
|
-
majorRadius?: undefined;
|
|
22
|
-
minorRadius?: undefined;
|
|
23
|
-
tiltAngle?: undefined;
|
|
24
|
-
} | {
|
|
25
|
-
type: string;
|
|
26
|
-
firstPoint: import("../../definitions.js").Vector;
|
|
27
|
-
lastPoint: import("../../definitions.js").Vector;
|
|
28
|
-
center: import("../../definitions.js").Vector;
|
|
29
|
-
clockwise: boolean;
|
|
30
|
-
majorRadius: number;
|
|
31
|
-
minorRadius: number;
|
|
32
|
-
tiltAngle: number;
|
|
33
|
-
})[];
|
|
34
|
-
};
|
|
35
|
-
holes: {
|
|
36
|
-
type: string;
|
|
37
|
-
segments: ({
|
|
38
|
-
type: string;
|
|
39
|
-
firstPoint: import("../../definitions.js").Vector;
|
|
40
|
-
lastPoint: import("../../definitions.js").Vector;
|
|
41
|
-
center?: undefined;
|
|
42
|
-
clockwise?: undefined;
|
|
43
|
-
majorRadius?: undefined;
|
|
44
|
-
minorRadius?: undefined;
|
|
45
|
-
tiltAngle?: undefined;
|
|
46
|
-
} | {
|
|
47
|
-
type: string;
|
|
48
|
-
firstPoint: import("../../definitions.js").Vector;
|
|
49
|
-
lastPoint: import("../../definitions.js").Vector;
|
|
50
|
-
center: import("../../definitions.js").Vector;
|
|
51
|
-
clockwise: boolean;
|
|
52
|
-
majorRadius?: undefined;
|
|
53
|
-
minorRadius?: undefined;
|
|
54
|
-
tiltAngle?: undefined;
|
|
55
|
-
} | {
|
|
56
|
-
type: string;
|
|
57
|
-
firstPoint: import("../../definitions.js").Vector;
|
|
58
|
-
lastPoint: import("../../definitions.js").Vector;
|
|
59
|
-
center: import("../../definitions.js").Vector;
|
|
60
|
-
clockwise: boolean;
|
|
61
|
-
majorRadius: number;
|
|
62
|
-
minorRadius: number;
|
|
63
|
-
tiltAngle: number;
|
|
64
|
-
})[];
|
|
65
|
-
}[];
|
|
66
|
-
};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import type { Loop } from "../../models/Loop.js";
|
|
2
|
-
export declare function jsonLoop(loop: Loop): {
|
|
3
|
-
type: string;
|
|
4
|
-
segments: ({
|
|
5
|
-
type: string;
|
|
6
|
-
firstPoint: import("../../definitions.js").Vector;
|
|
7
|
-
lastPoint: import("../../definitions.js").Vector;
|
|
8
|
-
center?: undefined;
|
|
9
|
-
clockwise?: undefined;
|
|
10
|
-
majorRadius?: undefined;
|
|
11
|
-
minorRadius?: undefined;
|
|
12
|
-
tiltAngle?: undefined;
|
|
13
|
-
} | {
|
|
14
|
-
type: string;
|
|
15
|
-
firstPoint: import("../../definitions.js").Vector;
|
|
16
|
-
lastPoint: import("../../definitions.js").Vector;
|
|
17
|
-
center: import("../../definitions.js").Vector;
|
|
18
|
-
clockwise: boolean;
|
|
19
|
-
majorRadius?: undefined;
|
|
20
|
-
minorRadius?: undefined;
|
|
21
|
-
tiltAngle?: undefined;
|
|
22
|
-
} | {
|
|
23
|
-
type: string;
|
|
24
|
-
firstPoint: import("../../definitions.js").Vector;
|
|
25
|
-
lastPoint: import("../../definitions.js").Vector;
|
|
26
|
-
center: import("../../definitions.js").Vector;
|
|
27
|
-
clockwise: boolean;
|
|
28
|
-
majorRadius: number;
|
|
29
|
-
minorRadius: number;
|
|
30
|
-
tiltAngle: number;
|
|
31
|
-
})[];
|
|
32
|
-
};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { Segment } from "../../models/segments/Segment.js";
|
|
2
|
-
export declare function jsonSegment(segment: Segment): {
|
|
3
|
-
type: string;
|
|
4
|
-
firstPoint: import("../../definitions.js").Vector;
|
|
5
|
-
lastPoint: import("../../definitions.js").Vector;
|
|
6
|
-
center?: undefined;
|
|
7
|
-
clockwise?: undefined;
|
|
8
|
-
majorRadius?: undefined;
|
|
9
|
-
minorRadius?: undefined;
|
|
10
|
-
tiltAngle?: undefined;
|
|
11
|
-
} | {
|
|
12
|
-
type: string;
|
|
13
|
-
firstPoint: import("../../definitions.js").Vector;
|
|
14
|
-
lastPoint: import("../../definitions.js").Vector;
|
|
15
|
-
center: import("../../definitions.js").Vector;
|
|
16
|
-
clockwise: boolean;
|
|
17
|
-
majorRadius?: undefined;
|
|
18
|
-
minorRadius?: undefined;
|
|
19
|
-
tiltAngle?: undefined;
|
|
20
|
-
} | {
|
|
21
|
-
type: string;
|
|
22
|
-
firstPoint: import("../../definitions.js").Vector;
|
|
23
|
-
lastPoint: import("../../definitions.js").Vector;
|
|
24
|
-
center: import("../../definitions.js").Vector;
|
|
25
|
-
clockwise: boolean;
|
|
26
|
-
majorRadius: number;
|
|
27
|
-
minorRadius: number;
|
|
28
|
-
tiltAngle: number;
|
|
29
|
-
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{types/algorithms → algorithms}/intersections/ellipseArcEllipseArcIntersection.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|