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
|
@@ -0,0 +1,393 @@
|
|
|
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
|
+
type Shape = Loop | Figure | Diagram | Segment;
|
|
6
|
+
export declare function exportJSON(shape: Shape): {
|
|
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
|
+
controlPoint?: undefined;
|
|
16
|
+
firstControlPoint?: undefined;
|
|
17
|
+
lastControlPoint?: undefined;
|
|
18
|
+
} | {
|
|
19
|
+
type: string;
|
|
20
|
+
firstPoint: import("../../definitions.js").Vector;
|
|
21
|
+
lastPoint: import("../../definitions.js").Vector;
|
|
22
|
+
center: import("../../definitions.js").Vector;
|
|
23
|
+
clockwise: boolean;
|
|
24
|
+
majorRadius?: undefined;
|
|
25
|
+
minorRadius?: undefined;
|
|
26
|
+
tiltAngle?: undefined;
|
|
27
|
+
controlPoint?: undefined;
|
|
28
|
+
firstControlPoint?: undefined;
|
|
29
|
+
lastControlPoint?: undefined;
|
|
30
|
+
} | {
|
|
31
|
+
type: string;
|
|
32
|
+
firstPoint: import("../../definitions.js").Vector;
|
|
33
|
+
lastPoint: import("../../definitions.js").Vector;
|
|
34
|
+
center: import("../../definitions.js").Vector;
|
|
35
|
+
clockwise: boolean;
|
|
36
|
+
majorRadius: number;
|
|
37
|
+
minorRadius: number;
|
|
38
|
+
tiltAngle: number;
|
|
39
|
+
controlPoint?: undefined;
|
|
40
|
+
firstControlPoint?: undefined;
|
|
41
|
+
lastControlPoint?: undefined;
|
|
42
|
+
} | {
|
|
43
|
+
type: string;
|
|
44
|
+
firstPoint: import("../../definitions.js").Vector;
|
|
45
|
+
lastPoint: import("../../definitions.js").Vector;
|
|
46
|
+
controlPoint: import("../../definitions.js").Vector;
|
|
47
|
+
center?: undefined;
|
|
48
|
+
clockwise?: undefined;
|
|
49
|
+
majorRadius?: undefined;
|
|
50
|
+
minorRadius?: undefined;
|
|
51
|
+
tiltAngle?: undefined;
|
|
52
|
+
firstControlPoint?: undefined;
|
|
53
|
+
lastControlPoint?: undefined;
|
|
54
|
+
} | {
|
|
55
|
+
type: string;
|
|
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
|
+
center?: undefined;
|
|
61
|
+
clockwise?: undefined;
|
|
62
|
+
majorRadius?: undefined;
|
|
63
|
+
minorRadius?: undefined;
|
|
64
|
+
tiltAngle?: undefined;
|
|
65
|
+
controlPoint?: undefined;
|
|
66
|
+
} | {
|
|
67
|
+
type: string;
|
|
68
|
+
segments: ({
|
|
69
|
+
type: string;
|
|
70
|
+
firstPoint: import("../../definitions.js").Vector;
|
|
71
|
+
lastPoint: import("../../definitions.js").Vector;
|
|
72
|
+
center?: undefined;
|
|
73
|
+
clockwise?: undefined;
|
|
74
|
+
majorRadius?: undefined;
|
|
75
|
+
minorRadius?: undefined;
|
|
76
|
+
tiltAngle?: undefined;
|
|
77
|
+
controlPoint?: undefined;
|
|
78
|
+
firstControlPoint?: undefined;
|
|
79
|
+
lastControlPoint?: undefined;
|
|
80
|
+
} | {
|
|
81
|
+
type: string;
|
|
82
|
+
firstPoint: import("../../definitions.js").Vector;
|
|
83
|
+
lastPoint: import("../../definitions.js").Vector;
|
|
84
|
+
center: import("../../definitions.js").Vector;
|
|
85
|
+
clockwise: boolean;
|
|
86
|
+
majorRadius?: undefined;
|
|
87
|
+
minorRadius?: undefined;
|
|
88
|
+
tiltAngle?: undefined;
|
|
89
|
+
controlPoint?: undefined;
|
|
90
|
+
firstControlPoint?: undefined;
|
|
91
|
+
lastControlPoint?: undefined;
|
|
92
|
+
} | {
|
|
93
|
+
type: string;
|
|
94
|
+
firstPoint: import("../../definitions.js").Vector;
|
|
95
|
+
lastPoint: import("../../definitions.js").Vector;
|
|
96
|
+
center: import("../../definitions.js").Vector;
|
|
97
|
+
clockwise: boolean;
|
|
98
|
+
majorRadius: number;
|
|
99
|
+
minorRadius: number;
|
|
100
|
+
tiltAngle: number;
|
|
101
|
+
controlPoint?: undefined;
|
|
102
|
+
firstControlPoint?: undefined;
|
|
103
|
+
lastControlPoint?: undefined;
|
|
104
|
+
} | {
|
|
105
|
+
type: string;
|
|
106
|
+
firstPoint: import("../../definitions.js").Vector;
|
|
107
|
+
lastPoint: import("../../definitions.js").Vector;
|
|
108
|
+
controlPoint: import("../../definitions.js").Vector;
|
|
109
|
+
center?: undefined;
|
|
110
|
+
clockwise?: undefined;
|
|
111
|
+
majorRadius?: undefined;
|
|
112
|
+
minorRadius?: undefined;
|
|
113
|
+
tiltAngle?: undefined;
|
|
114
|
+
firstControlPoint?: undefined;
|
|
115
|
+
lastControlPoint?: undefined;
|
|
116
|
+
} | {
|
|
117
|
+
type: string;
|
|
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
|
+
center?: undefined;
|
|
123
|
+
clockwise?: undefined;
|
|
124
|
+
majorRadius?: undefined;
|
|
125
|
+
minorRadius?: undefined;
|
|
126
|
+
tiltAngle?: undefined;
|
|
127
|
+
controlPoint?: undefined;
|
|
128
|
+
})[];
|
|
129
|
+
} | {
|
|
130
|
+
type: string;
|
|
131
|
+
contour: {
|
|
132
|
+
type: string;
|
|
133
|
+
segments: ({
|
|
134
|
+
type: string;
|
|
135
|
+
firstPoint: import("../../definitions.js").Vector;
|
|
136
|
+
lastPoint: import("../../definitions.js").Vector;
|
|
137
|
+
center?: undefined;
|
|
138
|
+
clockwise?: undefined;
|
|
139
|
+
majorRadius?: undefined;
|
|
140
|
+
minorRadius?: undefined;
|
|
141
|
+
tiltAngle?: undefined;
|
|
142
|
+
controlPoint?: undefined;
|
|
143
|
+
firstControlPoint?: undefined;
|
|
144
|
+
lastControlPoint?: undefined;
|
|
145
|
+
} | {
|
|
146
|
+
type: string;
|
|
147
|
+
firstPoint: import("../../definitions.js").Vector;
|
|
148
|
+
lastPoint: import("../../definitions.js").Vector;
|
|
149
|
+
center: import("../../definitions.js").Vector;
|
|
150
|
+
clockwise: boolean;
|
|
151
|
+
majorRadius?: undefined;
|
|
152
|
+
minorRadius?: undefined;
|
|
153
|
+
tiltAngle?: undefined;
|
|
154
|
+
controlPoint?: undefined;
|
|
155
|
+
firstControlPoint?: undefined;
|
|
156
|
+
lastControlPoint?: undefined;
|
|
157
|
+
} | {
|
|
158
|
+
type: string;
|
|
159
|
+
firstPoint: import("../../definitions.js").Vector;
|
|
160
|
+
lastPoint: import("../../definitions.js").Vector;
|
|
161
|
+
center: import("../../definitions.js").Vector;
|
|
162
|
+
clockwise: boolean;
|
|
163
|
+
majorRadius: number;
|
|
164
|
+
minorRadius: number;
|
|
165
|
+
tiltAngle: number;
|
|
166
|
+
controlPoint?: undefined;
|
|
167
|
+
firstControlPoint?: undefined;
|
|
168
|
+
lastControlPoint?: undefined;
|
|
169
|
+
} | {
|
|
170
|
+
type: string;
|
|
171
|
+
firstPoint: import("../../definitions.js").Vector;
|
|
172
|
+
lastPoint: import("../../definitions.js").Vector;
|
|
173
|
+
controlPoint: import("../../definitions.js").Vector;
|
|
174
|
+
center?: undefined;
|
|
175
|
+
clockwise?: undefined;
|
|
176
|
+
majorRadius?: undefined;
|
|
177
|
+
minorRadius?: undefined;
|
|
178
|
+
tiltAngle?: undefined;
|
|
179
|
+
firstControlPoint?: undefined;
|
|
180
|
+
lastControlPoint?: undefined;
|
|
181
|
+
} | {
|
|
182
|
+
type: string;
|
|
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
|
+
center?: undefined;
|
|
188
|
+
clockwise?: undefined;
|
|
189
|
+
majorRadius?: undefined;
|
|
190
|
+
minorRadius?: undefined;
|
|
191
|
+
tiltAngle?: undefined;
|
|
192
|
+
controlPoint?: undefined;
|
|
193
|
+
})[];
|
|
194
|
+
};
|
|
195
|
+
holes: {
|
|
196
|
+
type: string;
|
|
197
|
+
segments: ({
|
|
198
|
+
type: string;
|
|
199
|
+
firstPoint: import("../../definitions.js").Vector;
|
|
200
|
+
lastPoint: import("../../definitions.js").Vector;
|
|
201
|
+
center?: undefined;
|
|
202
|
+
clockwise?: undefined;
|
|
203
|
+
majorRadius?: undefined;
|
|
204
|
+
minorRadius?: undefined;
|
|
205
|
+
tiltAngle?: undefined;
|
|
206
|
+
controlPoint?: undefined;
|
|
207
|
+
firstControlPoint?: undefined;
|
|
208
|
+
lastControlPoint?: undefined;
|
|
209
|
+
} | {
|
|
210
|
+
type: string;
|
|
211
|
+
firstPoint: import("../../definitions.js").Vector;
|
|
212
|
+
lastPoint: import("../../definitions.js").Vector;
|
|
213
|
+
center: import("../../definitions.js").Vector;
|
|
214
|
+
clockwise: boolean;
|
|
215
|
+
majorRadius?: undefined;
|
|
216
|
+
minorRadius?: undefined;
|
|
217
|
+
tiltAngle?: undefined;
|
|
218
|
+
controlPoint?: undefined;
|
|
219
|
+
firstControlPoint?: undefined;
|
|
220
|
+
lastControlPoint?: undefined;
|
|
221
|
+
} | {
|
|
222
|
+
type: string;
|
|
223
|
+
firstPoint: import("../../definitions.js").Vector;
|
|
224
|
+
lastPoint: import("../../definitions.js").Vector;
|
|
225
|
+
center: import("../../definitions.js").Vector;
|
|
226
|
+
clockwise: boolean;
|
|
227
|
+
majorRadius: number;
|
|
228
|
+
minorRadius: number;
|
|
229
|
+
tiltAngle: number;
|
|
230
|
+
controlPoint?: undefined;
|
|
231
|
+
firstControlPoint?: undefined;
|
|
232
|
+
lastControlPoint?: undefined;
|
|
233
|
+
} | {
|
|
234
|
+
type: string;
|
|
235
|
+
firstPoint: import("../../definitions.js").Vector;
|
|
236
|
+
lastPoint: import("../../definitions.js").Vector;
|
|
237
|
+
controlPoint: import("../../definitions.js").Vector;
|
|
238
|
+
center?: undefined;
|
|
239
|
+
clockwise?: undefined;
|
|
240
|
+
majorRadius?: undefined;
|
|
241
|
+
minorRadius?: undefined;
|
|
242
|
+
tiltAngle?: undefined;
|
|
243
|
+
firstControlPoint?: undefined;
|
|
244
|
+
lastControlPoint?: undefined;
|
|
245
|
+
} | {
|
|
246
|
+
type: string;
|
|
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
|
+
center?: undefined;
|
|
252
|
+
clockwise?: undefined;
|
|
253
|
+
majorRadius?: undefined;
|
|
254
|
+
minorRadius?: undefined;
|
|
255
|
+
tiltAngle?: undefined;
|
|
256
|
+
controlPoint?: undefined;
|
|
257
|
+
})[];
|
|
258
|
+
}[];
|
|
259
|
+
} | {
|
|
260
|
+
type: string;
|
|
261
|
+
figures: {
|
|
262
|
+
type: string;
|
|
263
|
+
contour: {
|
|
264
|
+
type: string;
|
|
265
|
+
segments: ({
|
|
266
|
+
type: string;
|
|
267
|
+
firstPoint: import("../../definitions.js").Vector;
|
|
268
|
+
lastPoint: import("../../definitions.js").Vector;
|
|
269
|
+
center?: undefined;
|
|
270
|
+
clockwise?: undefined;
|
|
271
|
+
majorRadius?: undefined;
|
|
272
|
+
minorRadius?: undefined;
|
|
273
|
+
tiltAngle?: undefined;
|
|
274
|
+
controlPoint?: undefined;
|
|
275
|
+
firstControlPoint?: undefined;
|
|
276
|
+
lastControlPoint?: undefined;
|
|
277
|
+
} | {
|
|
278
|
+
type: string;
|
|
279
|
+
firstPoint: import("../../definitions.js").Vector;
|
|
280
|
+
lastPoint: import("../../definitions.js").Vector;
|
|
281
|
+
center: import("../../definitions.js").Vector;
|
|
282
|
+
clockwise: boolean;
|
|
283
|
+
majorRadius?: undefined;
|
|
284
|
+
minorRadius?: undefined;
|
|
285
|
+
tiltAngle?: undefined;
|
|
286
|
+
controlPoint?: undefined;
|
|
287
|
+
firstControlPoint?: undefined;
|
|
288
|
+
lastControlPoint?: undefined;
|
|
289
|
+
} | {
|
|
290
|
+
type: string;
|
|
291
|
+
firstPoint: import("../../definitions.js").Vector;
|
|
292
|
+
lastPoint: import("../../definitions.js").Vector;
|
|
293
|
+
center: import("../../definitions.js").Vector;
|
|
294
|
+
clockwise: boolean;
|
|
295
|
+
majorRadius: number;
|
|
296
|
+
minorRadius: number;
|
|
297
|
+
tiltAngle: number;
|
|
298
|
+
controlPoint?: undefined;
|
|
299
|
+
firstControlPoint?: undefined;
|
|
300
|
+
lastControlPoint?: undefined;
|
|
301
|
+
} | {
|
|
302
|
+
type: string;
|
|
303
|
+
firstPoint: import("../../definitions.js").Vector;
|
|
304
|
+
lastPoint: import("../../definitions.js").Vector;
|
|
305
|
+
controlPoint: import("../../definitions.js").Vector;
|
|
306
|
+
center?: undefined;
|
|
307
|
+
clockwise?: undefined;
|
|
308
|
+
majorRadius?: undefined;
|
|
309
|
+
minorRadius?: undefined;
|
|
310
|
+
tiltAngle?: undefined;
|
|
311
|
+
firstControlPoint?: undefined;
|
|
312
|
+
lastControlPoint?: undefined;
|
|
313
|
+
} | {
|
|
314
|
+
type: string;
|
|
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
|
+
center?: undefined;
|
|
320
|
+
clockwise?: undefined;
|
|
321
|
+
majorRadius?: undefined;
|
|
322
|
+
minorRadius?: undefined;
|
|
323
|
+
tiltAngle?: undefined;
|
|
324
|
+
controlPoint?: undefined;
|
|
325
|
+
})[];
|
|
326
|
+
};
|
|
327
|
+
holes: {
|
|
328
|
+
type: string;
|
|
329
|
+
segments: ({
|
|
330
|
+
type: string;
|
|
331
|
+
firstPoint: import("../../definitions.js").Vector;
|
|
332
|
+
lastPoint: import("../../definitions.js").Vector;
|
|
333
|
+
center?: undefined;
|
|
334
|
+
clockwise?: undefined;
|
|
335
|
+
majorRadius?: undefined;
|
|
336
|
+
minorRadius?: undefined;
|
|
337
|
+
tiltAngle?: undefined;
|
|
338
|
+
controlPoint?: undefined;
|
|
339
|
+
firstControlPoint?: undefined;
|
|
340
|
+
lastControlPoint?: undefined;
|
|
341
|
+
} | {
|
|
342
|
+
type: string;
|
|
343
|
+
firstPoint: import("../../definitions.js").Vector;
|
|
344
|
+
lastPoint: import("../../definitions.js").Vector;
|
|
345
|
+
center: import("../../definitions.js").Vector;
|
|
346
|
+
clockwise: boolean;
|
|
347
|
+
majorRadius?: undefined;
|
|
348
|
+
minorRadius?: undefined;
|
|
349
|
+
tiltAngle?: undefined;
|
|
350
|
+
controlPoint?: undefined;
|
|
351
|
+
firstControlPoint?: undefined;
|
|
352
|
+
lastControlPoint?: undefined;
|
|
353
|
+
} | {
|
|
354
|
+
type: string;
|
|
355
|
+
firstPoint: import("../../definitions.js").Vector;
|
|
356
|
+
lastPoint: import("../../definitions.js").Vector;
|
|
357
|
+
center: import("../../definitions.js").Vector;
|
|
358
|
+
clockwise: boolean;
|
|
359
|
+
majorRadius: number;
|
|
360
|
+
minorRadius: number;
|
|
361
|
+
tiltAngle: number;
|
|
362
|
+
controlPoint?: undefined;
|
|
363
|
+
firstControlPoint?: undefined;
|
|
364
|
+
lastControlPoint?: undefined;
|
|
365
|
+
} | {
|
|
366
|
+
type: string;
|
|
367
|
+
firstPoint: import("../../definitions.js").Vector;
|
|
368
|
+
lastPoint: import("../../definitions.js").Vector;
|
|
369
|
+
controlPoint: import("../../definitions.js").Vector;
|
|
370
|
+
center?: undefined;
|
|
371
|
+
clockwise?: undefined;
|
|
372
|
+
majorRadius?: undefined;
|
|
373
|
+
minorRadius?: undefined;
|
|
374
|
+
tiltAngle?: undefined;
|
|
375
|
+
firstControlPoint?: undefined;
|
|
376
|
+
lastControlPoint?: undefined;
|
|
377
|
+
} | {
|
|
378
|
+
type: string;
|
|
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
|
+
center?: undefined;
|
|
384
|
+
clockwise?: undefined;
|
|
385
|
+
majorRadius?: undefined;
|
|
386
|
+
minorRadius?: undefined;
|
|
387
|
+
tiltAngle?: undefined;
|
|
388
|
+
controlPoint?: undefined;
|
|
389
|
+
})[];
|
|
390
|
+
}[];
|
|
391
|
+
}[];
|
|
392
|
+
};
|
|
393
|
+
export {};
|
|
@@ -0,0 +1,135 @@
|
|
|
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
|
+
controlPoint?: undefined;
|
|
18
|
+
firstControlPoint?: undefined;
|
|
19
|
+
lastControlPoint?: 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?: undefined;
|
|
27
|
+
minorRadius?: undefined;
|
|
28
|
+
tiltAngle?: undefined;
|
|
29
|
+
controlPoint?: undefined;
|
|
30
|
+
firstControlPoint?: undefined;
|
|
31
|
+
lastControlPoint?: undefined;
|
|
32
|
+
} | {
|
|
33
|
+
type: string;
|
|
34
|
+
firstPoint: import("../../definitions.js").Vector;
|
|
35
|
+
lastPoint: import("../../definitions.js").Vector;
|
|
36
|
+
center: import("../../definitions.js").Vector;
|
|
37
|
+
clockwise: boolean;
|
|
38
|
+
majorRadius: number;
|
|
39
|
+
minorRadius: number;
|
|
40
|
+
tiltAngle: number;
|
|
41
|
+
controlPoint?: undefined;
|
|
42
|
+
firstControlPoint?: undefined;
|
|
43
|
+
lastControlPoint?: undefined;
|
|
44
|
+
} | {
|
|
45
|
+
type: string;
|
|
46
|
+
firstPoint: import("../../definitions.js").Vector;
|
|
47
|
+
lastPoint: import("../../definitions.js").Vector;
|
|
48
|
+
controlPoint: import("../../definitions.js").Vector;
|
|
49
|
+
center?: undefined;
|
|
50
|
+
clockwise?: undefined;
|
|
51
|
+
majorRadius?: undefined;
|
|
52
|
+
minorRadius?: undefined;
|
|
53
|
+
tiltAngle?: undefined;
|
|
54
|
+
firstControlPoint?: undefined;
|
|
55
|
+
lastControlPoint?: undefined;
|
|
56
|
+
} | {
|
|
57
|
+
type: string;
|
|
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
|
+
center?: undefined;
|
|
63
|
+
clockwise?: undefined;
|
|
64
|
+
majorRadius?: undefined;
|
|
65
|
+
minorRadius?: undefined;
|
|
66
|
+
tiltAngle?: undefined;
|
|
67
|
+
controlPoint?: undefined;
|
|
68
|
+
})[];
|
|
69
|
+
};
|
|
70
|
+
holes: {
|
|
71
|
+
type: string;
|
|
72
|
+
segments: ({
|
|
73
|
+
type: string;
|
|
74
|
+
firstPoint: import("../../definitions.js").Vector;
|
|
75
|
+
lastPoint: import("../../definitions.js").Vector;
|
|
76
|
+
center?: undefined;
|
|
77
|
+
clockwise?: undefined;
|
|
78
|
+
majorRadius?: undefined;
|
|
79
|
+
minorRadius?: undefined;
|
|
80
|
+
tiltAngle?: undefined;
|
|
81
|
+
controlPoint?: undefined;
|
|
82
|
+
firstControlPoint?: undefined;
|
|
83
|
+
lastControlPoint?: undefined;
|
|
84
|
+
} | {
|
|
85
|
+
type: string;
|
|
86
|
+
firstPoint: import("../../definitions.js").Vector;
|
|
87
|
+
lastPoint: import("../../definitions.js").Vector;
|
|
88
|
+
center: import("../../definitions.js").Vector;
|
|
89
|
+
clockwise: boolean;
|
|
90
|
+
majorRadius?: undefined;
|
|
91
|
+
minorRadius?: undefined;
|
|
92
|
+
tiltAngle?: undefined;
|
|
93
|
+
controlPoint?: undefined;
|
|
94
|
+
firstControlPoint?: undefined;
|
|
95
|
+
lastControlPoint?: undefined;
|
|
96
|
+
} | {
|
|
97
|
+
type: string;
|
|
98
|
+
firstPoint: import("../../definitions.js").Vector;
|
|
99
|
+
lastPoint: import("../../definitions.js").Vector;
|
|
100
|
+
center: import("../../definitions.js").Vector;
|
|
101
|
+
clockwise: boolean;
|
|
102
|
+
majorRadius: number;
|
|
103
|
+
minorRadius: number;
|
|
104
|
+
tiltAngle: number;
|
|
105
|
+
controlPoint?: undefined;
|
|
106
|
+
firstControlPoint?: undefined;
|
|
107
|
+
lastControlPoint?: undefined;
|
|
108
|
+
} | {
|
|
109
|
+
type: string;
|
|
110
|
+
firstPoint: import("../../definitions.js").Vector;
|
|
111
|
+
lastPoint: import("../../definitions.js").Vector;
|
|
112
|
+
controlPoint: import("../../definitions.js").Vector;
|
|
113
|
+
center?: undefined;
|
|
114
|
+
clockwise?: undefined;
|
|
115
|
+
majorRadius?: undefined;
|
|
116
|
+
minorRadius?: undefined;
|
|
117
|
+
tiltAngle?: undefined;
|
|
118
|
+
firstControlPoint?: undefined;
|
|
119
|
+
lastControlPoint?: undefined;
|
|
120
|
+
} | {
|
|
121
|
+
type: string;
|
|
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
|
+
center?: undefined;
|
|
127
|
+
clockwise?: undefined;
|
|
128
|
+
majorRadius?: undefined;
|
|
129
|
+
minorRadius?: undefined;
|
|
130
|
+
tiltAngle?: undefined;
|
|
131
|
+
controlPoint?: undefined;
|
|
132
|
+
})[];
|
|
133
|
+
}[];
|
|
134
|
+
}[];
|
|
135
|
+
};
|
|
@@ -0,0 +1,132 @@
|
|
|
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
|
+
controlPoint?: undefined;
|
|
16
|
+
firstControlPoint?: undefined;
|
|
17
|
+
lastControlPoint?: undefined;
|
|
18
|
+
} | {
|
|
19
|
+
type: string;
|
|
20
|
+
firstPoint: import("../../definitions.js").Vector;
|
|
21
|
+
lastPoint: import("../../definitions.js").Vector;
|
|
22
|
+
center: import("../../definitions.js").Vector;
|
|
23
|
+
clockwise: boolean;
|
|
24
|
+
majorRadius?: undefined;
|
|
25
|
+
minorRadius?: undefined;
|
|
26
|
+
tiltAngle?: undefined;
|
|
27
|
+
controlPoint?: undefined;
|
|
28
|
+
firstControlPoint?: undefined;
|
|
29
|
+
lastControlPoint?: undefined;
|
|
30
|
+
} | {
|
|
31
|
+
type: string;
|
|
32
|
+
firstPoint: import("../../definitions.js").Vector;
|
|
33
|
+
lastPoint: import("../../definitions.js").Vector;
|
|
34
|
+
center: import("../../definitions.js").Vector;
|
|
35
|
+
clockwise: boolean;
|
|
36
|
+
majorRadius: number;
|
|
37
|
+
minorRadius: number;
|
|
38
|
+
tiltAngle: number;
|
|
39
|
+
controlPoint?: undefined;
|
|
40
|
+
firstControlPoint?: undefined;
|
|
41
|
+
lastControlPoint?: undefined;
|
|
42
|
+
} | {
|
|
43
|
+
type: string;
|
|
44
|
+
firstPoint: import("../../definitions.js").Vector;
|
|
45
|
+
lastPoint: import("../../definitions.js").Vector;
|
|
46
|
+
controlPoint: import("../../definitions.js").Vector;
|
|
47
|
+
center?: undefined;
|
|
48
|
+
clockwise?: undefined;
|
|
49
|
+
majorRadius?: undefined;
|
|
50
|
+
minorRadius?: undefined;
|
|
51
|
+
tiltAngle?: undefined;
|
|
52
|
+
firstControlPoint?: undefined;
|
|
53
|
+
lastControlPoint?: undefined;
|
|
54
|
+
} | {
|
|
55
|
+
type: string;
|
|
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
|
+
center?: undefined;
|
|
61
|
+
clockwise?: undefined;
|
|
62
|
+
majorRadius?: undefined;
|
|
63
|
+
minorRadius?: undefined;
|
|
64
|
+
tiltAngle?: undefined;
|
|
65
|
+
controlPoint?: undefined;
|
|
66
|
+
})[];
|
|
67
|
+
};
|
|
68
|
+
holes: {
|
|
69
|
+
type: string;
|
|
70
|
+
segments: ({
|
|
71
|
+
type: string;
|
|
72
|
+
firstPoint: import("../../definitions.js").Vector;
|
|
73
|
+
lastPoint: import("../../definitions.js").Vector;
|
|
74
|
+
center?: undefined;
|
|
75
|
+
clockwise?: undefined;
|
|
76
|
+
majorRadius?: undefined;
|
|
77
|
+
minorRadius?: undefined;
|
|
78
|
+
tiltAngle?: undefined;
|
|
79
|
+
controlPoint?: undefined;
|
|
80
|
+
firstControlPoint?: undefined;
|
|
81
|
+
lastControlPoint?: undefined;
|
|
82
|
+
} | {
|
|
83
|
+
type: string;
|
|
84
|
+
firstPoint: import("../../definitions.js").Vector;
|
|
85
|
+
lastPoint: import("../../definitions.js").Vector;
|
|
86
|
+
center: import("../../definitions.js").Vector;
|
|
87
|
+
clockwise: boolean;
|
|
88
|
+
majorRadius?: undefined;
|
|
89
|
+
minorRadius?: undefined;
|
|
90
|
+
tiltAngle?: undefined;
|
|
91
|
+
controlPoint?: undefined;
|
|
92
|
+
firstControlPoint?: undefined;
|
|
93
|
+
lastControlPoint?: undefined;
|
|
94
|
+
} | {
|
|
95
|
+
type: string;
|
|
96
|
+
firstPoint: import("../../definitions.js").Vector;
|
|
97
|
+
lastPoint: import("../../definitions.js").Vector;
|
|
98
|
+
center: import("../../definitions.js").Vector;
|
|
99
|
+
clockwise: boolean;
|
|
100
|
+
majorRadius: number;
|
|
101
|
+
minorRadius: number;
|
|
102
|
+
tiltAngle: number;
|
|
103
|
+
controlPoint?: undefined;
|
|
104
|
+
firstControlPoint?: undefined;
|
|
105
|
+
lastControlPoint?: undefined;
|
|
106
|
+
} | {
|
|
107
|
+
type: string;
|
|
108
|
+
firstPoint: import("../../definitions.js").Vector;
|
|
109
|
+
lastPoint: import("../../definitions.js").Vector;
|
|
110
|
+
controlPoint: import("../../definitions.js").Vector;
|
|
111
|
+
center?: undefined;
|
|
112
|
+
clockwise?: undefined;
|
|
113
|
+
majorRadius?: undefined;
|
|
114
|
+
minorRadius?: undefined;
|
|
115
|
+
tiltAngle?: undefined;
|
|
116
|
+
firstControlPoint?: undefined;
|
|
117
|
+
lastControlPoint?: undefined;
|
|
118
|
+
} | {
|
|
119
|
+
type: string;
|
|
120
|
+
firstPoint: import("../../definitions.js").Vector;
|
|
121
|
+
lastPoint: import("../../definitions.js").Vector;
|
|
122
|
+
firstControlPoint: import("../../definitions.js").Vector;
|
|
123
|
+
lastControlPoint: import("../../definitions.js").Vector;
|
|
124
|
+
center?: undefined;
|
|
125
|
+
clockwise?: undefined;
|
|
126
|
+
majorRadius?: undefined;
|
|
127
|
+
minorRadius?: undefined;
|
|
128
|
+
tiltAngle?: undefined;
|
|
129
|
+
controlPoint?: undefined;
|
|
130
|
+
})[];
|
|
131
|
+
}[];
|
|
132
|
+
};
|