pantograph2d 0.8.0 → 0.9.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/LICENSE +4 -658
- package/dist/QuadraticBezier-BKElJOgn.cjs +9 -0
- package/dist/QuadraticBezier-BKElJOgn.cjs.map +1 -0
- package/dist/QuadraticBezier-PcRS9HZK.js +4773 -0
- package/dist/QuadraticBezier-PcRS9HZK.js.map +1 -0
- package/dist/draw-L71G180-.cjs +2 -0
- package/dist/draw-L71G180-.cjs.map +1 -0
- package/dist/draw-N2ntigsw.js +417 -0
- package/dist/draw-N2ntigsw.js.map +1 -0
- package/dist/models-BXU-Gx3U.cjs +4 -0
- package/dist/models-BXU-Gx3U.cjs.map +1 -0
- package/dist/{Diagram-2450b2e6.js → models-BjaFYsN2.js} +278 -279
- package/dist/models-BjaFYsN2.js.map +1 -0
- package/dist/pantograph/drawShape.cjs +1 -1
- package/dist/pantograph/drawShape.cjs.map +1 -1
- package/dist/pantograph/drawShape.js +12 -14
- package/dist/pantograph/drawShape.js.map +1 -1
- package/dist/pantograph/models.cjs +1 -1
- package/dist/pantograph/models.js +2 -2
- package/dist/pantograph/svg.cjs +1 -1
- package/dist/pantograph/svg.js +5 -6
- package/dist/pantograph/svg.js.map +1 -1
- package/dist/pantograph.cjs +2 -2
- package/dist/pantograph.cjs.map +1 -1
- package/dist/pantograph.js +432 -400
- package/dist/pantograph.js.map +1 -1
- package/dist/{wrapSVG-02b823ac.cjs → svg-ZTvNxsWu.cjs} +2 -2
- package/dist/svg-ZTvNxsWu.cjs.map +1 -0
- package/dist/{wrapSVG-0ec8a111.js → svg-hNHYuj_r.js} +2 -2
- package/dist/svg-hNHYuj_r.js.map +1 -0
- package/dist/types/examples/importSVG.d.ts +4 -0
- package/dist/{algorithms → types/src/algorithms}/boolean/figureBooleans.d.ts +1 -1
- package/dist/{algorithms → types/src/algorithms}/boolean/loopBooleans.d.ts +1 -1
- package/dist/{algorithms → types/src/algorithms}/boolean/strandBoolean.d.ts +4 -4
- package/dist/{algorithms → types/src/algorithms}/boolean/strandsBetweenIntersections.d.ts +3 -3
- package/dist/types/src/algorithms/conversions/bezierToArcs.d.ts +7 -0
- package/dist/types/src/algorithms/conversions/bezierToSafeBezier.d.ts +12 -0
- package/dist/types/src/algorithms/conversions/ellipseToArcs.d.ts +0 -0
- package/dist/types/src/algorithms/conversions/ellipseToBezier.d.ts +3 -0
- package/dist/types/src/algorithms/conversions/helpers.d.ts +13 -0
- package/dist/{algorithms → types/src/algorithms}/distances/arcArcDistance.d.ts +1 -1
- package/dist/{algorithms → types/src/algorithms}/distances/genericDistance.d.ts +1 -1
- package/dist/{algorithms → types/src/algorithms}/distances/index.d.ts +1 -1
- package/dist/types/src/algorithms/distances/lineArcDistance.d.ts +3 -0
- package/dist/{algorithms → types/src/algorithms}/distances/lineLineDistance.d.ts +1 -1
- package/dist/{algorithms → types/src/algorithms}/filletSegments.d.ts +1 -1
- package/dist/{algorithms → types/src/algorithms}/intersections/arcArcIntersection.d.ts +2 -2
- package/dist/types/src/algorithms/intersections/arcEllipseArcIntersection.d.ts +3 -0
- package/dist/types/src/algorithms/intersections/arcsCubicBezierIntersection.d.ts +5 -0
- package/dist/types/src/algorithms/intersections/arcsQuadraticBezierIntersection.d.ts +5 -0
- package/dist/{algorithms → types/src/algorithms}/intersections/bezierClip.d.ts +3 -3
- package/dist/{algorithms → types/src/algorithms}/intersections/cubicBezierCubicBezierIntersection.d.ts +2 -2
- package/dist/{algorithms → types/src/algorithms}/intersections/ellipseArcEllipseArcIntersection.d.ts +2 -2
- package/dist/types/src/algorithms/intersections/ellipseEllipseIntersection.d.ts +4 -0
- package/dist/types/src/algorithms/intersections/fullLinesIntersection.d.ts +18 -0
- package/dist/{algorithms → types/src/algorithms}/intersections/index.d.ts +2 -2
- package/dist/types/src/algorithms/intersections/lineArcIntersection.d.ts +4 -0
- package/dist/types/src/algorithms/intersections/lineBezierIntersection.d.ts +5 -0
- package/dist/types/src/algorithms/intersections/lineEllipseArcIntersection.d.ts +4 -0
- package/dist/{algorithms → types/src/algorithms}/intersections/lineLineIntersection.d.ts +4 -4
- package/dist/{algorithms → types/src/algorithms}/intersections/quadraticBezierQuadraticBezierIntersection.d.ts +2 -2
- package/dist/types/src/algorithms/intersections/rayIntersections.d.ts +3 -0
- package/dist/{algorithms → types/src/algorithms}/offsets/offsetFigure.d.ts +2 -2
- package/dist/types/src/algorithms/offsets/offsetSegment.d.ts +15 -0
- package/dist/types/src/algorithms/offsets/offsetStroke.d.ts +11 -0
- package/dist/{algorithms → types/src/algorithms}/organiseLoops.d.ts +2 -2
- package/dist/types/src/algorithms/simplify.d.ts +3 -0
- package/dist/types/src/algorithms/solvers/findZeroViaNewton.d.ts +1 -0
- package/dist/{algorithms → types/src/algorithms}/stitchSegments.d.ts +1 -1
- package/dist/types/src/api/drawShape.d.ts +2 -0
- package/dist/types/src/api/models.d.ts +1 -0
- package/dist/types/src/api/svg.d.ts +1 -0
- package/dist/{booleanOperations.d.ts → types/src/booleanOperations.d.ts} +5 -5
- package/dist/types/src/conversionOperations.d.ts +8 -0
- package/dist/{draw.d.ts → types/src/draw.d.ts} +4 -4
- package/dist/{drawShape → types/src/drawShape}/drawCircle.d.ts +1 -1
- package/dist/types/src/drawShape/drawEllipse.d.ts +2 -0
- package/dist/{drawShape → types/src/drawShape}/drawRect.d.ts +1 -1
- package/dist/types/src/drawShape/drawSVGPath.d.ts +2 -0
- package/dist/types/src/drawShape/index.d.ts +4 -0
- package/dist/{export → types/src/export}/json/exportJSON.d.ts +94 -94
- package/dist/{export → types/src/export}/json/jsonDiagram.d.ts +31 -31
- package/dist/{export → types/src/export}/json/jsonFigure.d.ts +31 -31
- package/dist/{export → types/src/export}/json/jsonLoop.d.ts +16 -16
- package/dist/{export → types/src/export}/json/jsonSegment.d.ts +16 -16
- package/dist/types/src/export/svg/api.d.ts +6 -0
- package/dist/{export → types/src/export}/svg/exportSVG.d.ts +6 -6
- package/dist/{export → types/src/export}/svg/svgDiagram.d.ts +1 -1
- package/dist/{export → types/src/export}/svg/svgFigure.d.ts +1 -1
- package/dist/{export → types/src/export}/svg/svgLoop.d.ts +1 -1
- package/dist/{export → types/src/export}/svg/svgSegment.d.ts +1 -1
- package/dist/{export → types/src/export}/svg/svgStrand.d.ts +1 -1
- package/dist/{export → types/src/export}/svg/wrapSVG.d.ts +1 -1
- package/dist/types/src/import/json/importJSON.d.ts +9 -0
- package/dist/{main.d.ts → types/src/main.d.ts} +7 -7
- package/dist/{models → types/src/models}/BoundingBox.d.ts +1 -1
- package/dist/{models → types/src/models}/Diagram.d.ts +7 -7
- package/dist/{models → types/src/models}/Figure.d.ts +7 -7
- package/dist/{models → types/src/models}/Loop.d.ts +4 -4
- package/dist/{models → types/src/models}/Strand.d.ts +2 -2
- package/dist/{models → types/src/models}/Stroke.d.ts +5 -5
- package/dist/{models → types/src/models}/TransformationMatrix.d.ts +1 -1
- package/dist/types/src/models/exports.d.ts +15 -0
- package/dist/types/src/models/segments/AbstractSegment.d.ts +25 -0
- package/dist/{models → types/src/models}/segments/Arc.d.ts +5 -4
- package/dist/{models → types/src/models}/segments/CubicBezier.d.ts +11 -4
- package/dist/{models → types/src/models}/segments/EllipseArc.d.ts +5 -5
- package/dist/{models → types/src/models}/segments/Line.d.ts +4 -4
- package/dist/{models → types/src/models}/segments/QuadraticBezier.d.ts +9 -4
- package/dist/{models → types/src/models}/segments/Segment.d.ts +4 -4
- package/dist/{models → types/src/models}/segments/utils/deCasteljau.d.ts +1 -1
- package/dist/types/src/models/segments/utils/isSegment.d.ts +8 -0
- package/dist/{models → types/src/models}/utils/Transformable.d.ts +2 -2
- package/dist/{offsetOperations.d.ts → types/src/offsetOperations.d.ts} +4 -4
- package/dist/types/src/operations.d.ts +2 -0
- package/dist/types/src/utils/applyMixins.d.ts +1 -0
- package/dist/types/src/utils/listOfFigures.d.ts +4 -0
- package/dist/types/src/utils/projectPointOnLine.d.ts +3 -0
- package/dist/{utils → types/src/utils}/removeDuplicatePoints.d.ts +1 -1
- package/dist/{vectorOperations.d.ts → types/src/vectorOperations.d.ts} +1 -1
- package/package.json +4 -4
- package/dist/Diagram-2450b2e6.js.map +0 -1
- package/dist/Diagram-57e17509.cjs +0 -4
- package/dist/Diagram-57e17509.cjs.map +0 -1
- package/dist/QuadraticBezier-e116a2d6.js +0 -3647
- package/dist/QuadraticBezier-e116a2d6.js.map +0 -1
- package/dist/QuadraticBezier-e3d7218b.cjs +0 -9
- package/dist/QuadraticBezier-e3d7218b.cjs.map +0 -1
- package/dist/algorithms/distances/lineArcDistance.d.ts +0 -3
- package/dist/algorithms/intersections/arcEllipseArcIntersection.d.ts +0 -3
- package/dist/algorithms/intersections/arcsCubicBezierIntersection.d.ts +0 -5
- package/dist/algorithms/intersections/arcsQuadraticBezierIntersection.d.ts +0 -5
- package/dist/algorithms/intersections/ellipseEllipseIntersection.d.ts +0 -4
- package/dist/algorithms/intersections/lineArcIntersection.d.ts +0 -4
- package/dist/algorithms/intersections/lineBezierIntersection.d.ts +0 -5
- package/dist/algorithms/intersections/lineEllipseArcIntersection.d.ts +0 -4
- package/dist/algorithms/intersections/rayIntersections.d.ts +0 -3
- package/dist/algorithms/offsets/offsetSegment.d.ts +0 -12
- package/dist/algorithms/offsets/offsetStroke.d.ts +0 -9
- package/dist/algorithms/simplify.d.ts +0 -3
- package/dist/api/drawShape.d.ts +0 -2
- package/dist/api/models.d.ts +0 -1
- package/dist/api/svg.d.ts +0 -1
- package/dist/draw-27ac6dae.cjs +0 -2
- package/dist/draw-27ac6dae.cjs.map +0 -1
- package/dist/draw-c7b2705c.js +0 -344
- package/dist/draw-c7b2705c.js.map +0 -1
- package/dist/export/svg/api.d.ts +0 -6
- package/dist/import/json/importJSON.d.ts +0 -9
- package/dist/models/exports.d.ts +0 -15
- package/dist/models/segments/utils/isSegment.d.ts +0 -8
- package/dist/operations.d.ts +0 -2
- package/dist/utils/listOfFigures.d.ts +0 -4
- package/dist/utils/projectPointOnLine.d.ts +0 -3
- package/dist/wrapSVG-02b823ac.cjs.map +0 -1
- package/dist/wrapSVG-0ec8a111.js.map +0 -1
- /package/dist/{algorithms → types/src/algorithms}/optimisation/Brent.d.ts +0 -0
- /package/dist/{algorithms → types/src/algorithms}/optimisation/DiRect.d.ts +0 -0
- /package/dist/{algorithms → types/src/algorithms}/solvers/solvePolynomials.d.ts +0 -0
- /package/dist/{definitions.d.ts → types/src/definitions.d.ts} +0 -0
- /package/dist/{utils → types/src/utils}/allCombinations.d.ts +0 -0
- /package/dist/{utils → types/src/utils}/allPairs.d.ts +0 -0
- /package/dist/{utils → types/src/utils}/angularDistance.d.ts +0 -0
- /package/dist/{utils → types/src/utils}/range.d.ts +0 -0
- /package/dist/{utils → types/src/utils}/removeDuplicateValues.d.ts +0 -0
- /package/dist/{utils → types/src/utils}/unitAngle.d.ts +0 -0
- /package/dist/{utils → types/src/utils}/zip.d.ts +0 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { Segment } from
|
|
2
|
-
import { Diagram } from
|
|
3
|
-
import { Figure } from
|
|
4
|
-
import { Loop } from
|
|
1
|
+
import { Segment } from '../../main.js';
|
|
2
|
+
import { Diagram } from '../../models/Diagram.js';
|
|
3
|
+
import { Figure } from '../../models/Figure.js';
|
|
4
|
+
import { Loop } from '../../models/Loop.js';
|
|
5
5
|
type Shape = Loop | Figure | Diagram | Segment;
|
|
6
6
|
export declare function exportJSON(shape: Shape): {
|
|
7
7
|
type: string;
|
|
8
|
-
firstPoint: import(
|
|
9
|
-
lastPoint: import(
|
|
8
|
+
firstPoint: import('../../definitions.js').Vector;
|
|
9
|
+
lastPoint: import('../../definitions.js').Vector;
|
|
10
10
|
center?: undefined;
|
|
11
11
|
clockwise?: undefined;
|
|
12
12
|
majorRadius?: undefined;
|
|
@@ -17,9 +17,9 @@ export declare function exportJSON(shape: Shape): {
|
|
|
17
17
|
lastControlPoint?: undefined;
|
|
18
18
|
} | {
|
|
19
19
|
type: string;
|
|
20
|
-
firstPoint: import(
|
|
21
|
-
lastPoint: import(
|
|
22
|
-
center: import(
|
|
20
|
+
firstPoint: import('../../definitions.js').Vector;
|
|
21
|
+
lastPoint: import('../../definitions.js').Vector;
|
|
22
|
+
center: import('../../definitions.js').Vector;
|
|
23
23
|
clockwise: boolean;
|
|
24
24
|
majorRadius?: undefined;
|
|
25
25
|
minorRadius?: undefined;
|
|
@@ -29,9 +29,9 @@ export declare function exportJSON(shape: Shape): {
|
|
|
29
29
|
lastControlPoint?: undefined;
|
|
30
30
|
} | {
|
|
31
31
|
type: string;
|
|
32
|
-
firstPoint: import(
|
|
33
|
-
lastPoint: import(
|
|
34
|
-
center: import(
|
|
32
|
+
firstPoint: import('../../definitions.js').Vector;
|
|
33
|
+
lastPoint: import('../../definitions.js').Vector;
|
|
34
|
+
center: import('../../definitions.js').Vector;
|
|
35
35
|
clockwise: boolean;
|
|
36
36
|
majorRadius: number;
|
|
37
37
|
minorRadius: number;
|
|
@@ -41,9 +41,9 @@ export declare function exportJSON(shape: Shape): {
|
|
|
41
41
|
lastControlPoint?: undefined;
|
|
42
42
|
} | {
|
|
43
43
|
type: string;
|
|
44
|
-
firstPoint: import(
|
|
45
|
-
lastPoint: import(
|
|
46
|
-
controlPoint: import(
|
|
44
|
+
firstPoint: import('../../definitions.js').Vector;
|
|
45
|
+
lastPoint: import('../../definitions.js').Vector;
|
|
46
|
+
controlPoint: import('../../definitions.js').Vector;
|
|
47
47
|
center?: undefined;
|
|
48
48
|
clockwise?: undefined;
|
|
49
49
|
majorRadius?: undefined;
|
|
@@ -53,10 +53,10 @@ export declare function exportJSON(shape: Shape): {
|
|
|
53
53
|
lastControlPoint?: undefined;
|
|
54
54
|
} | {
|
|
55
55
|
type: string;
|
|
56
|
-
firstPoint: import(
|
|
57
|
-
lastPoint: import(
|
|
58
|
-
firstControlPoint: import(
|
|
59
|
-
lastControlPoint: import(
|
|
56
|
+
firstPoint: import('../../definitions.js').Vector;
|
|
57
|
+
lastPoint: import('../../definitions.js').Vector;
|
|
58
|
+
firstControlPoint: import('../../definitions.js').Vector;
|
|
59
|
+
lastControlPoint: import('../../definitions.js').Vector;
|
|
60
60
|
center?: undefined;
|
|
61
61
|
clockwise?: undefined;
|
|
62
62
|
majorRadius?: undefined;
|
|
@@ -67,8 +67,8 @@ export declare function exportJSON(shape: Shape): {
|
|
|
67
67
|
type: string;
|
|
68
68
|
segments: ({
|
|
69
69
|
type: string;
|
|
70
|
-
firstPoint: import(
|
|
71
|
-
lastPoint: import(
|
|
70
|
+
firstPoint: import('../../definitions.js').Vector;
|
|
71
|
+
lastPoint: import('../../definitions.js').Vector;
|
|
72
72
|
center?: undefined;
|
|
73
73
|
clockwise?: undefined;
|
|
74
74
|
majorRadius?: undefined;
|
|
@@ -79,9 +79,9 @@ export declare function exportJSON(shape: Shape): {
|
|
|
79
79
|
lastControlPoint?: undefined;
|
|
80
80
|
} | {
|
|
81
81
|
type: string;
|
|
82
|
-
firstPoint: import(
|
|
83
|
-
lastPoint: import(
|
|
84
|
-
center: import(
|
|
82
|
+
firstPoint: import('../../definitions.js').Vector;
|
|
83
|
+
lastPoint: import('../../definitions.js').Vector;
|
|
84
|
+
center: import('../../definitions.js').Vector;
|
|
85
85
|
clockwise: boolean;
|
|
86
86
|
majorRadius?: undefined;
|
|
87
87
|
minorRadius?: undefined;
|
|
@@ -91,9 +91,9 @@ export declare function exportJSON(shape: Shape): {
|
|
|
91
91
|
lastControlPoint?: undefined;
|
|
92
92
|
} | {
|
|
93
93
|
type: string;
|
|
94
|
-
firstPoint: import(
|
|
95
|
-
lastPoint: import(
|
|
96
|
-
center: import(
|
|
94
|
+
firstPoint: import('../../definitions.js').Vector;
|
|
95
|
+
lastPoint: import('../../definitions.js').Vector;
|
|
96
|
+
center: import('../../definitions.js').Vector;
|
|
97
97
|
clockwise: boolean;
|
|
98
98
|
majorRadius: number;
|
|
99
99
|
minorRadius: number;
|
|
@@ -103,9 +103,9 @@ export declare function exportJSON(shape: Shape): {
|
|
|
103
103
|
lastControlPoint?: undefined;
|
|
104
104
|
} | {
|
|
105
105
|
type: string;
|
|
106
|
-
firstPoint: import(
|
|
107
|
-
lastPoint: import(
|
|
108
|
-
controlPoint: import(
|
|
106
|
+
firstPoint: import('../../definitions.js').Vector;
|
|
107
|
+
lastPoint: import('../../definitions.js').Vector;
|
|
108
|
+
controlPoint: import('../../definitions.js').Vector;
|
|
109
109
|
center?: undefined;
|
|
110
110
|
clockwise?: undefined;
|
|
111
111
|
majorRadius?: undefined;
|
|
@@ -115,10 +115,10 @@ export declare function exportJSON(shape: Shape): {
|
|
|
115
115
|
lastControlPoint?: undefined;
|
|
116
116
|
} | {
|
|
117
117
|
type: string;
|
|
118
|
-
firstPoint: import(
|
|
119
|
-
lastPoint: import(
|
|
120
|
-
firstControlPoint: import(
|
|
121
|
-
lastControlPoint: import(
|
|
118
|
+
firstPoint: import('../../definitions.js').Vector;
|
|
119
|
+
lastPoint: import('../../definitions.js').Vector;
|
|
120
|
+
firstControlPoint: import('../../definitions.js').Vector;
|
|
121
|
+
lastControlPoint: import('../../definitions.js').Vector;
|
|
122
122
|
center?: undefined;
|
|
123
123
|
clockwise?: undefined;
|
|
124
124
|
majorRadius?: undefined;
|
|
@@ -132,8 +132,8 @@ export declare function exportJSON(shape: Shape): {
|
|
|
132
132
|
type: string;
|
|
133
133
|
segments: ({
|
|
134
134
|
type: string;
|
|
135
|
-
firstPoint: import(
|
|
136
|
-
lastPoint: import(
|
|
135
|
+
firstPoint: import('../../definitions.js').Vector;
|
|
136
|
+
lastPoint: import('../../definitions.js').Vector;
|
|
137
137
|
center?: undefined;
|
|
138
138
|
clockwise?: undefined;
|
|
139
139
|
majorRadius?: undefined;
|
|
@@ -144,9 +144,9 @@ export declare function exportJSON(shape: Shape): {
|
|
|
144
144
|
lastControlPoint?: undefined;
|
|
145
145
|
} | {
|
|
146
146
|
type: string;
|
|
147
|
-
firstPoint: import(
|
|
148
|
-
lastPoint: import(
|
|
149
|
-
center: import(
|
|
147
|
+
firstPoint: import('../../definitions.js').Vector;
|
|
148
|
+
lastPoint: import('../../definitions.js').Vector;
|
|
149
|
+
center: import('../../definitions.js').Vector;
|
|
150
150
|
clockwise: boolean;
|
|
151
151
|
majorRadius?: undefined;
|
|
152
152
|
minorRadius?: undefined;
|
|
@@ -156,9 +156,9 @@ export declare function exportJSON(shape: Shape): {
|
|
|
156
156
|
lastControlPoint?: undefined;
|
|
157
157
|
} | {
|
|
158
158
|
type: string;
|
|
159
|
-
firstPoint: import(
|
|
160
|
-
lastPoint: import(
|
|
161
|
-
center: import(
|
|
159
|
+
firstPoint: import('../../definitions.js').Vector;
|
|
160
|
+
lastPoint: import('../../definitions.js').Vector;
|
|
161
|
+
center: import('../../definitions.js').Vector;
|
|
162
162
|
clockwise: boolean;
|
|
163
163
|
majorRadius: number;
|
|
164
164
|
minorRadius: number;
|
|
@@ -168,9 +168,9 @@ export declare function exportJSON(shape: Shape): {
|
|
|
168
168
|
lastControlPoint?: undefined;
|
|
169
169
|
} | {
|
|
170
170
|
type: string;
|
|
171
|
-
firstPoint: import(
|
|
172
|
-
lastPoint: import(
|
|
173
|
-
controlPoint: import(
|
|
171
|
+
firstPoint: import('../../definitions.js').Vector;
|
|
172
|
+
lastPoint: import('../../definitions.js').Vector;
|
|
173
|
+
controlPoint: import('../../definitions.js').Vector;
|
|
174
174
|
center?: undefined;
|
|
175
175
|
clockwise?: undefined;
|
|
176
176
|
majorRadius?: undefined;
|
|
@@ -180,10 +180,10 @@ export declare function exportJSON(shape: Shape): {
|
|
|
180
180
|
lastControlPoint?: undefined;
|
|
181
181
|
} | {
|
|
182
182
|
type: string;
|
|
183
|
-
firstPoint: import(
|
|
184
|
-
lastPoint: import(
|
|
185
|
-
firstControlPoint: import(
|
|
186
|
-
lastControlPoint: import(
|
|
183
|
+
firstPoint: import('../../definitions.js').Vector;
|
|
184
|
+
lastPoint: import('../../definitions.js').Vector;
|
|
185
|
+
firstControlPoint: import('../../definitions.js').Vector;
|
|
186
|
+
lastControlPoint: import('../../definitions.js').Vector;
|
|
187
187
|
center?: undefined;
|
|
188
188
|
clockwise?: undefined;
|
|
189
189
|
majorRadius?: undefined;
|
|
@@ -196,8 +196,8 @@ export declare function exportJSON(shape: Shape): {
|
|
|
196
196
|
type: string;
|
|
197
197
|
segments: ({
|
|
198
198
|
type: string;
|
|
199
|
-
firstPoint: import(
|
|
200
|
-
lastPoint: import(
|
|
199
|
+
firstPoint: import('../../definitions.js').Vector;
|
|
200
|
+
lastPoint: import('../../definitions.js').Vector;
|
|
201
201
|
center?: undefined;
|
|
202
202
|
clockwise?: undefined;
|
|
203
203
|
majorRadius?: undefined;
|
|
@@ -208,9 +208,9 @@ export declare function exportJSON(shape: Shape): {
|
|
|
208
208
|
lastControlPoint?: undefined;
|
|
209
209
|
} | {
|
|
210
210
|
type: string;
|
|
211
|
-
firstPoint: import(
|
|
212
|
-
lastPoint: import(
|
|
213
|
-
center: import(
|
|
211
|
+
firstPoint: import('../../definitions.js').Vector;
|
|
212
|
+
lastPoint: import('../../definitions.js').Vector;
|
|
213
|
+
center: import('../../definitions.js').Vector;
|
|
214
214
|
clockwise: boolean;
|
|
215
215
|
majorRadius?: undefined;
|
|
216
216
|
minorRadius?: undefined;
|
|
@@ -220,9 +220,9 @@ export declare function exportJSON(shape: Shape): {
|
|
|
220
220
|
lastControlPoint?: undefined;
|
|
221
221
|
} | {
|
|
222
222
|
type: string;
|
|
223
|
-
firstPoint: import(
|
|
224
|
-
lastPoint: import(
|
|
225
|
-
center: import(
|
|
223
|
+
firstPoint: import('../../definitions.js').Vector;
|
|
224
|
+
lastPoint: import('../../definitions.js').Vector;
|
|
225
|
+
center: import('../../definitions.js').Vector;
|
|
226
226
|
clockwise: boolean;
|
|
227
227
|
majorRadius: number;
|
|
228
228
|
minorRadius: number;
|
|
@@ -232,9 +232,9 @@ export declare function exportJSON(shape: Shape): {
|
|
|
232
232
|
lastControlPoint?: undefined;
|
|
233
233
|
} | {
|
|
234
234
|
type: string;
|
|
235
|
-
firstPoint: import(
|
|
236
|
-
lastPoint: import(
|
|
237
|
-
controlPoint: import(
|
|
235
|
+
firstPoint: import('../../definitions.js').Vector;
|
|
236
|
+
lastPoint: import('../../definitions.js').Vector;
|
|
237
|
+
controlPoint: import('../../definitions.js').Vector;
|
|
238
238
|
center?: undefined;
|
|
239
239
|
clockwise?: undefined;
|
|
240
240
|
majorRadius?: undefined;
|
|
@@ -244,10 +244,10 @@ export declare function exportJSON(shape: Shape): {
|
|
|
244
244
|
lastControlPoint?: undefined;
|
|
245
245
|
} | {
|
|
246
246
|
type: string;
|
|
247
|
-
firstPoint: import(
|
|
248
|
-
lastPoint: import(
|
|
249
|
-
firstControlPoint: import(
|
|
250
|
-
lastControlPoint: import(
|
|
247
|
+
firstPoint: import('../../definitions.js').Vector;
|
|
248
|
+
lastPoint: import('../../definitions.js').Vector;
|
|
249
|
+
firstControlPoint: import('../../definitions.js').Vector;
|
|
250
|
+
lastControlPoint: import('../../definitions.js').Vector;
|
|
251
251
|
center?: undefined;
|
|
252
252
|
clockwise?: undefined;
|
|
253
253
|
majorRadius?: undefined;
|
|
@@ -264,8 +264,8 @@ export declare function exportJSON(shape: Shape): {
|
|
|
264
264
|
type: string;
|
|
265
265
|
segments: ({
|
|
266
266
|
type: string;
|
|
267
|
-
firstPoint: import(
|
|
268
|
-
lastPoint: import(
|
|
267
|
+
firstPoint: import('../../definitions.js').Vector;
|
|
268
|
+
lastPoint: import('../../definitions.js').Vector;
|
|
269
269
|
center?: undefined;
|
|
270
270
|
clockwise?: undefined;
|
|
271
271
|
majorRadius?: undefined;
|
|
@@ -276,9 +276,9 @@ export declare function exportJSON(shape: Shape): {
|
|
|
276
276
|
lastControlPoint?: undefined;
|
|
277
277
|
} | {
|
|
278
278
|
type: string;
|
|
279
|
-
firstPoint: import(
|
|
280
|
-
lastPoint: import(
|
|
281
|
-
center: import(
|
|
279
|
+
firstPoint: import('../../definitions.js').Vector;
|
|
280
|
+
lastPoint: import('../../definitions.js').Vector;
|
|
281
|
+
center: import('../../definitions.js').Vector;
|
|
282
282
|
clockwise: boolean;
|
|
283
283
|
majorRadius?: undefined;
|
|
284
284
|
minorRadius?: undefined;
|
|
@@ -288,9 +288,9 @@ export declare function exportJSON(shape: Shape): {
|
|
|
288
288
|
lastControlPoint?: undefined;
|
|
289
289
|
} | {
|
|
290
290
|
type: string;
|
|
291
|
-
firstPoint: import(
|
|
292
|
-
lastPoint: import(
|
|
293
|
-
center: import(
|
|
291
|
+
firstPoint: import('../../definitions.js').Vector;
|
|
292
|
+
lastPoint: import('../../definitions.js').Vector;
|
|
293
|
+
center: import('../../definitions.js').Vector;
|
|
294
294
|
clockwise: boolean;
|
|
295
295
|
majorRadius: number;
|
|
296
296
|
minorRadius: number;
|
|
@@ -300,9 +300,9 @@ export declare function exportJSON(shape: Shape): {
|
|
|
300
300
|
lastControlPoint?: undefined;
|
|
301
301
|
} | {
|
|
302
302
|
type: string;
|
|
303
|
-
firstPoint: import(
|
|
304
|
-
lastPoint: import(
|
|
305
|
-
controlPoint: import(
|
|
303
|
+
firstPoint: import('../../definitions.js').Vector;
|
|
304
|
+
lastPoint: import('../../definitions.js').Vector;
|
|
305
|
+
controlPoint: import('../../definitions.js').Vector;
|
|
306
306
|
center?: undefined;
|
|
307
307
|
clockwise?: undefined;
|
|
308
308
|
majorRadius?: undefined;
|
|
@@ -312,10 +312,10 @@ export declare function exportJSON(shape: Shape): {
|
|
|
312
312
|
lastControlPoint?: undefined;
|
|
313
313
|
} | {
|
|
314
314
|
type: string;
|
|
315
|
-
firstPoint: import(
|
|
316
|
-
lastPoint: import(
|
|
317
|
-
firstControlPoint: import(
|
|
318
|
-
lastControlPoint: import(
|
|
315
|
+
firstPoint: import('../../definitions.js').Vector;
|
|
316
|
+
lastPoint: import('../../definitions.js').Vector;
|
|
317
|
+
firstControlPoint: import('../../definitions.js').Vector;
|
|
318
|
+
lastControlPoint: import('../../definitions.js').Vector;
|
|
319
319
|
center?: undefined;
|
|
320
320
|
clockwise?: undefined;
|
|
321
321
|
majorRadius?: undefined;
|
|
@@ -328,8 +328,8 @@ export declare function exportJSON(shape: Shape): {
|
|
|
328
328
|
type: string;
|
|
329
329
|
segments: ({
|
|
330
330
|
type: string;
|
|
331
|
-
firstPoint: import(
|
|
332
|
-
lastPoint: import(
|
|
331
|
+
firstPoint: import('../../definitions.js').Vector;
|
|
332
|
+
lastPoint: import('../../definitions.js').Vector;
|
|
333
333
|
center?: undefined;
|
|
334
334
|
clockwise?: undefined;
|
|
335
335
|
majorRadius?: undefined;
|
|
@@ -340,9 +340,9 @@ export declare function exportJSON(shape: Shape): {
|
|
|
340
340
|
lastControlPoint?: undefined;
|
|
341
341
|
} | {
|
|
342
342
|
type: string;
|
|
343
|
-
firstPoint: import(
|
|
344
|
-
lastPoint: import(
|
|
345
|
-
center: import(
|
|
343
|
+
firstPoint: import('../../definitions.js').Vector;
|
|
344
|
+
lastPoint: import('../../definitions.js').Vector;
|
|
345
|
+
center: import('../../definitions.js').Vector;
|
|
346
346
|
clockwise: boolean;
|
|
347
347
|
majorRadius?: undefined;
|
|
348
348
|
minorRadius?: undefined;
|
|
@@ -352,9 +352,9 @@ export declare function exportJSON(shape: Shape): {
|
|
|
352
352
|
lastControlPoint?: undefined;
|
|
353
353
|
} | {
|
|
354
354
|
type: string;
|
|
355
|
-
firstPoint: import(
|
|
356
|
-
lastPoint: import(
|
|
357
|
-
center: import(
|
|
355
|
+
firstPoint: import('../../definitions.js').Vector;
|
|
356
|
+
lastPoint: import('../../definitions.js').Vector;
|
|
357
|
+
center: import('../../definitions.js').Vector;
|
|
358
358
|
clockwise: boolean;
|
|
359
359
|
majorRadius: number;
|
|
360
360
|
minorRadius: number;
|
|
@@ -364,9 +364,9 @@ export declare function exportJSON(shape: Shape): {
|
|
|
364
364
|
lastControlPoint?: undefined;
|
|
365
365
|
} | {
|
|
366
366
|
type: string;
|
|
367
|
-
firstPoint: import(
|
|
368
|
-
lastPoint: import(
|
|
369
|
-
controlPoint: import(
|
|
367
|
+
firstPoint: import('../../definitions.js').Vector;
|
|
368
|
+
lastPoint: import('../../definitions.js').Vector;
|
|
369
|
+
controlPoint: import('../../definitions.js').Vector;
|
|
370
370
|
center?: undefined;
|
|
371
371
|
clockwise?: undefined;
|
|
372
372
|
majorRadius?: undefined;
|
|
@@ -376,10 +376,10 @@ export declare function exportJSON(shape: Shape): {
|
|
|
376
376
|
lastControlPoint?: undefined;
|
|
377
377
|
} | {
|
|
378
378
|
type: string;
|
|
379
|
-
firstPoint: import(
|
|
380
|
-
lastPoint: import(
|
|
381
|
-
firstControlPoint: import(
|
|
382
|
-
lastControlPoint: import(
|
|
379
|
+
firstPoint: import('../../definitions.js').Vector;
|
|
380
|
+
lastPoint: import('../../definitions.js').Vector;
|
|
381
|
+
firstControlPoint: import('../../definitions.js').Vector;
|
|
382
|
+
lastControlPoint: import('../../definitions.js').Vector;
|
|
383
383
|
center?: undefined;
|
|
384
384
|
clockwise?: undefined;
|
|
385
385
|
majorRadius?: undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Diagram } from
|
|
1
|
+
import { Diagram } from '../../models/Diagram.js';
|
|
2
2
|
export declare function jsonDiagram(diagram: Diagram): {
|
|
3
3
|
type: string;
|
|
4
4
|
figures: {
|
|
@@ -7,8 +7,8 @@ export declare function jsonDiagram(diagram: Diagram): {
|
|
|
7
7
|
type: string;
|
|
8
8
|
segments: ({
|
|
9
9
|
type: string;
|
|
10
|
-
firstPoint: import(
|
|
11
|
-
lastPoint: import(
|
|
10
|
+
firstPoint: import('../../definitions.js').Vector;
|
|
11
|
+
lastPoint: import('../../definitions.js').Vector;
|
|
12
12
|
center?: undefined;
|
|
13
13
|
clockwise?: undefined;
|
|
14
14
|
majorRadius?: undefined;
|
|
@@ -19,9 +19,9 @@ export declare function jsonDiagram(diagram: Diagram): {
|
|
|
19
19
|
lastControlPoint?: undefined;
|
|
20
20
|
} | {
|
|
21
21
|
type: string;
|
|
22
|
-
firstPoint: import(
|
|
23
|
-
lastPoint: import(
|
|
24
|
-
center: import(
|
|
22
|
+
firstPoint: import('../../definitions.js').Vector;
|
|
23
|
+
lastPoint: import('../../definitions.js').Vector;
|
|
24
|
+
center: import('../../definitions.js').Vector;
|
|
25
25
|
clockwise: boolean;
|
|
26
26
|
majorRadius?: undefined;
|
|
27
27
|
minorRadius?: undefined;
|
|
@@ -31,9 +31,9 @@ export declare function jsonDiagram(diagram: Diagram): {
|
|
|
31
31
|
lastControlPoint?: undefined;
|
|
32
32
|
} | {
|
|
33
33
|
type: string;
|
|
34
|
-
firstPoint: import(
|
|
35
|
-
lastPoint: import(
|
|
36
|
-
center: import(
|
|
34
|
+
firstPoint: import('../../definitions.js').Vector;
|
|
35
|
+
lastPoint: import('../../definitions.js').Vector;
|
|
36
|
+
center: import('../../definitions.js').Vector;
|
|
37
37
|
clockwise: boolean;
|
|
38
38
|
majorRadius: number;
|
|
39
39
|
minorRadius: number;
|
|
@@ -43,9 +43,9 @@ export declare function jsonDiagram(diagram: Diagram): {
|
|
|
43
43
|
lastControlPoint?: undefined;
|
|
44
44
|
} | {
|
|
45
45
|
type: string;
|
|
46
|
-
firstPoint: import(
|
|
47
|
-
lastPoint: import(
|
|
48
|
-
controlPoint: import(
|
|
46
|
+
firstPoint: import('../../definitions.js').Vector;
|
|
47
|
+
lastPoint: import('../../definitions.js').Vector;
|
|
48
|
+
controlPoint: import('../../definitions.js').Vector;
|
|
49
49
|
center?: undefined;
|
|
50
50
|
clockwise?: undefined;
|
|
51
51
|
majorRadius?: undefined;
|
|
@@ -55,10 +55,10 @@ export declare function jsonDiagram(diagram: Diagram): {
|
|
|
55
55
|
lastControlPoint?: undefined;
|
|
56
56
|
} | {
|
|
57
57
|
type: string;
|
|
58
|
-
firstPoint: import(
|
|
59
|
-
lastPoint: import(
|
|
60
|
-
firstControlPoint: import(
|
|
61
|
-
lastControlPoint: import(
|
|
58
|
+
firstPoint: import('../../definitions.js').Vector;
|
|
59
|
+
lastPoint: import('../../definitions.js').Vector;
|
|
60
|
+
firstControlPoint: import('../../definitions.js').Vector;
|
|
61
|
+
lastControlPoint: import('../../definitions.js').Vector;
|
|
62
62
|
center?: undefined;
|
|
63
63
|
clockwise?: undefined;
|
|
64
64
|
majorRadius?: undefined;
|
|
@@ -71,8 +71,8 @@ export declare function jsonDiagram(diagram: Diagram): {
|
|
|
71
71
|
type: string;
|
|
72
72
|
segments: ({
|
|
73
73
|
type: string;
|
|
74
|
-
firstPoint: import(
|
|
75
|
-
lastPoint: import(
|
|
74
|
+
firstPoint: import('../../definitions.js').Vector;
|
|
75
|
+
lastPoint: import('../../definitions.js').Vector;
|
|
76
76
|
center?: undefined;
|
|
77
77
|
clockwise?: undefined;
|
|
78
78
|
majorRadius?: undefined;
|
|
@@ -83,9 +83,9 @@ export declare function jsonDiagram(diagram: Diagram): {
|
|
|
83
83
|
lastControlPoint?: undefined;
|
|
84
84
|
} | {
|
|
85
85
|
type: string;
|
|
86
|
-
firstPoint: import(
|
|
87
|
-
lastPoint: import(
|
|
88
|
-
center: import(
|
|
86
|
+
firstPoint: import('../../definitions.js').Vector;
|
|
87
|
+
lastPoint: import('../../definitions.js').Vector;
|
|
88
|
+
center: import('../../definitions.js').Vector;
|
|
89
89
|
clockwise: boolean;
|
|
90
90
|
majorRadius?: undefined;
|
|
91
91
|
minorRadius?: undefined;
|
|
@@ -95,9 +95,9 @@ export declare function jsonDiagram(diagram: Diagram): {
|
|
|
95
95
|
lastControlPoint?: undefined;
|
|
96
96
|
} | {
|
|
97
97
|
type: string;
|
|
98
|
-
firstPoint: import(
|
|
99
|
-
lastPoint: import(
|
|
100
|
-
center: import(
|
|
98
|
+
firstPoint: import('../../definitions.js').Vector;
|
|
99
|
+
lastPoint: import('../../definitions.js').Vector;
|
|
100
|
+
center: import('../../definitions.js').Vector;
|
|
101
101
|
clockwise: boolean;
|
|
102
102
|
majorRadius: number;
|
|
103
103
|
minorRadius: number;
|
|
@@ -107,9 +107,9 @@ export declare function jsonDiagram(diagram: Diagram): {
|
|
|
107
107
|
lastControlPoint?: undefined;
|
|
108
108
|
} | {
|
|
109
109
|
type: string;
|
|
110
|
-
firstPoint: import(
|
|
111
|
-
lastPoint: import(
|
|
112
|
-
controlPoint: import(
|
|
110
|
+
firstPoint: import('../../definitions.js').Vector;
|
|
111
|
+
lastPoint: import('../../definitions.js').Vector;
|
|
112
|
+
controlPoint: import('../../definitions.js').Vector;
|
|
113
113
|
center?: undefined;
|
|
114
114
|
clockwise?: undefined;
|
|
115
115
|
majorRadius?: undefined;
|
|
@@ -119,10 +119,10 @@ export declare function jsonDiagram(diagram: Diagram): {
|
|
|
119
119
|
lastControlPoint?: undefined;
|
|
120
120
|
} | {
|
|
121
121
|
type: string;
|
|
122
|
-
firstPoint: import(
|
|
123
|
-
lastPoint: import(
|
|
124
|
-
firstControlPoint: import(
|
|
125
|
-
lastControlPoint: import(
|
|
122
|
+
firstPoint: import('../../definitions.js').Vector;
|
|
123
|
+
lastPoint: import('../../definitions.js').Vector;
|
|
124
|
+
firstControlPoint: import('../../definitions.js').Vector;
|
|
125
|
+
lastControlPoint: import('../../definitions.js').Vector;
|
|
126
126
|
center?: undefined;
|
|
127
127
|
clockwise?: undefined;
|
|
128
128
|
majorRadius?: undefined;
|