pantograph2d 0.7.0 → 0.8.1
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-BAVasVfu.cjs +9 -0
- package/dist/QuadraticBezier-BAVasVfu.cjs.map +1 -0
- package/dist/QuadraticBezier-BzVqiExF.js +4736 -0
- package/dist/QuadraticBezier-BzVqiExF.js.map +1 -0
- package/dist/draw-DqsKIWJD.js +337 -0
- package/dist/draw-DqsKIWJD.js.map +1 -0
- package/dist/draw-NcYfDZjT.cjs +2 -0
- package/dist/draw-NcYfDZjT.cjs.map +1 -0
- package/dist/models-Dxwusy3i.cjs +4 -0
- package/dist/models-Dxwusy3i.cjs.map +1 -0
- package/dist/models-WQ-B7GSL.js +1749 -0
- package/dist/models-WQ-B7GSL.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 -13
- package/dist/pantograph/drawShape.js.map +1 -1
- package/dist/pantograph/models.cjs +1 -1
- package/dist/pantograph/models.js +15 -12
- 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 +10 -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 +406 -452
- package/dist/pantograph.js.map +1 -1
- package/dist/svg-BylQQgsL.js +62 -0
- package/dist/svg-BylQQgsL.js.map +1 -0
- package/dist/svg-D0nYyMk7.cjs +8 -0
- package/dist/svg-D0nYyMk7.cjs.map +1 -0
- package/dist/types/examples/importSVG.d.ts +4 -0
- package/dist/types/{algorithms → src/algorithms}/boolean/figureBooleans.d.ts +1 -1
- package/dist/types/{algorithms → src/algorithms}/boolean/loopBooleans.d.ts +1 -1
- package/dist/types/{algorithms → src/algorithms}/boolean/strandBoolean.d.ts +4 -4
- package/dist/types/{algorithms → src/algorithms}/boolean/strandsBetweenIntersections.d.ts +3 -3
- package/dist/types/{algorithms → src/algorithms}/distances/arcArcDistance.d.ts +1 -1
- package/dist/types/{algorithms → src/algorithms}/distances/genericDistance.d.ts +1 -1
- package/dist/types/{algorithms → src/algorithms}/distances/index.d.ts +1 -1
- package/dist/types/src/algorithms/distances/lineArcDistance.d.ts +3 -0
- package/dist/types/{algorithms → src/algorithms}/distances/lineLineDistance.d.ts +1 -1
- package/dist/types/{algorithms → src/algorithms}/filletSegments.d.ts +1 -1
- package/dist/types/{algorithms → 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/types/{algorithms → src/algorithms}/intersections/bezierClip.d.ts +3 -3
- package/dist/types/{algorithms → src/algorithms}/intersections/cubicBezierCubicBezierIntersection.d.ts +2 -2
- package/dist/types/{algorithms → src/algorithms}/intersections/ellipseArcEllipseArcIntersection.d.ts +2 -2
- package/dist/types/src/algorithms/intersections/ellipseEllipseIntersection.d.ts +4 -0
- package/dist/types/{algorithms → 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/types/{algorithms → src/algorithms}/intersections/lineLineIntersection.d.ts +4 -4
- package/dist/types/{algorithms → src/algorithms}/intersections/quadraticBezierQuadraticBezierIntersection.d.ts +2 -2
- package/dist/types/src/algorithms/intersections/rayIntersections.d.ts +3 -0
- package/dist/types/{algorithms → src/algorithms}/offsets/offsetFigure.d.ts +2 -2
- package/dist/types/{algorithms → src/algorithms}/offsets/offsetSegment.d.ts +4 -4
- package/dist/types/{algorithms → src/algorithms}/offsets/offsetStroke.d.ts +5 -5
- package/dist/types/{algorithms → 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/types/src/algorithms/solvers/zeroViaNewton.d.ts +1 -0
- package/dist/types/{algorithms → 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/types/{booleanOperations.d.ts → src/booleanOperations.d.ts} +5 -5
- package/dist/types/{draw.d.ts → src/draw.d.ts} +4 -4
- package/dist/types/{drawShape → src/drawShape}/drawCircle.d.ts +1 -1
- package/dist/types/src/drawShape/drawEllipse.d.ts +2 -0
- package/dist/types/{drawShape → 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/types/{export → src/export}/json/exportJSON.d.ts +94 -94
- package/dist/types/{export → src/export}/json/jsonDiagram.d.ts +31 -31
- package/dist/types/{export → src/export}/json/jsonFigure.d.ts +31 -31
- package/dist/types/{export → src/export}/json/jsonLoop.d.ts +16 -16
- package/dist/types/{export → src/export}/json/jsonSegment.d.ts +16 -16
- package/dist/types/src/export/svg/api.d.ts +6 -0
- package/dist/types/{export → src/export}/svg/exportSVG.d.ts +6 -6
- package/dist/types/{export → src/export}/svg/svgDiagram.d.ts +1 -1
- package/dist/types/{export → src/export}/svg/svgFigure.d.ts +1 -1
- package/dist/types/{export → src/export}/svg/svgLoop.d.ts +1 -1
- package/dist/types/{export → src/export}/svg/svgSegment.d.ts +1 -1
- package/dist/types/{export → src/export}/svg/svgStrand.d.ts +1 -1
- package/dist/types/{export → src/export}/svg/wrapSVG.d.ts +2 -2
- package/dist/types/src/import/json/importJSON.d.ts +9 -0
- package/dist/types/{main.d.ts → src/main.d.ts} +7 -7
- package/dist/types/{models → src/models}/BoundingBox.d.ts +1 -1
- package/dist/types/{models → src/models}/Diagram.d.ts +7 -7
- package/dist/types/{models → src/models}/Figure.d.ts +7 -7
- package/dist/types/{models → src/models}/Loop.d.ts +4 -4
- package/dist/types/{models → src/models}/Strand.d.ts +2 -2
- package/dist/types/{models → src/models}/Stroke.d.ts +5 -5
- package/dist/types/{models → 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/types/{models → src/models}/segments/Arc.d.ts +4 -4
- package/dist/types/{models → src/models}/segments/CubicBezier.d.ts +4 -4
- package/dist/types/{models → src/models}/segments/EllipseArc.d.ts +5 -5
- package/dist/types/{models → src/models}/segments/Line.d.ts +4 -4
- package/dist/types/{models → src/models}/segments/QuadraticBezier.d.ts +4 -4
- package/dist/types/{models → src/models}/segments/Segment.d.ts +4 -4
- package/dist/types/{models → src/models}/segments/utils/deCasteljau.d.ts +1 -1
- package/dist/types/src/models/segments/utils/isSegment.d.ts +8 -0
- package/dist/types/{models → src/models}/utils/Transformable.d.ts +2 -2
- package/dist/types/{offsetOperations.d.ts → 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/types/{utils → src/utils}/removeDuplicatePoints.d.ts +1 -1
- package/dist/types/{vectorOperations.d.ts → src/vectorOperations.d.ts} +1 -1
- package/package.json +33 -25
- package/dist/Diagram-8c3c5e1b.js +0 -5301
- package/dist/Diagram-8c3c5e1b.js.map +0 -1
- package/dist/Diagram-d8288579.cjs +0 -11
- package/dist/Diagram-d8288579.cjs.map +0 -1
- package/dist/draw-3ee546c3.cjs +0 -2
- package/dist/draw-3ee546c3.cjs.map +0 -1
- package/dist/draw-825692f1.js +0 -336
- package/dist/draw-825692f1.js.map +0 -1
- package/dist/types/algorithms/distances/lineArcDistance.d.ts +0 -3
- package/dist/types/algorithms/intersections/arcEllipseArcIntersection.d.ts +0 -3
- package/dist/types/algorithms/intersections/arcsCubicBezierIntersection.d.ts +0 -5
- package/dist/types/algorithms/intersections/arcsQuadraticBezierIntersection.d.ts +0 -5
- package/dist/types/algorithms/intersections/ellipseEllipseIntersection.d.ts +0 -4
- package/dist/types/algorithms/intersections/lineArcIntersection.d.ts +0 -4
- package/dist/types/algorithms/intersections/lineBezierIntersection.d.ts +0 -5
- package/dist/types/algorithms/intersections/lineEllipseArcIntersection.d.ts +0 -4
- package/dist/types/algorithms/intersections/rayIntersections.d.ts +0 -3
- package/dist/types/algorithms/simplify.d.ts +0 -3
- package/dist/types/api/drawShape.d.ts +0 -2
- package/dist/types/api/models.d.ts +0 -1
- package/dist/types/import/json/importJSON.d.ts +0 -9
- package/dist/types/models/exports.d.ts +0 -13
- package/dist/types/models/segments/utils/isSegment.d.ts +0 -8
- package/dist/types/operations.d.ts +0 -2
- package/dist/types/utils/listOfFigures.d.ts +0 -4
- package/dist/types/utils/projectPointOnLine.d.ts +0 -3
- /package/dist/types/{algorithms → src/algorithms}/optimisation/Brent.d.ts +0 -0
- /package/dist/types/{algorithms → src/algorithms}/optimisation/DiRect.d.ts +0 -0
- /package/dist/types/{algorithms → src/algorithms}/solvers/solvePolynomials.d.ts +0 -0
- /package/dist/types/{definitions.d.ts → src/definitions.d.ts} +0 -0
- /package/dist/types/{utils → src/utils}/allCombinations.d.ts +0 -0
- /package/dist/types/{utils → src/utils}/allPairs.d.ts +0 -0
- /package/dist/types/{utils → src/utils}/angularDistance.d.ts +0 -0
- /package/dist/types/{utils → src/utils}/range.d.ts +0 -0
- /package/dist/types/{utils → src/utils}/removeDuplicateValues.d.ts +0 -0
- /package/dist/types/{utils → src/utils}/unitAngle.d.ts +0 -0
- /package/dist/types/{utils → src/utils}/zip.d.ts +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Vector } from
|
|
2
|
-
import { CubicBezier } from
|
|
1
|
+
import { Vector } from '../../definitions.js';
|
|
2
|
+
import { CubicBezier } from '../../models/segments/CubicBezier.js';
|
|
3
3
|
export declare function handleOverlaps(curve1: CubicBezier, curve2: CubicBezier): CubicBezier[] | null | undefined;
|
|
4
4
|
export declare function cubicBezierCubicBezierIntersection(curve1: CubicBezier, curve2: CubicBezier, includeOverlaps?: boolean): Vector[] | CubicBezier[];
|
package/dist/types/{algorithms → src/algorithms}/intersections/ellipseArcEllipseArcIntersection.d.ts
RENAMED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Vector } from
|
|
2
|
-
import { EllipseArc } from
|
|
1
|
+
import { Vector } from '../../definitions.js';
|
|
2
|
+
import { EllipseArc } from '../../models/segments/EllipseArc.js';
|
|
3
3
|
export declare function ellipseArcEllipseArcIntersection(arc1: EllipseArc, arc2: EllipseArc, includeOverlaps?: boolean): Vector[] | EllipseArc[];
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { EllipseArc } from '../../models/segments/EllipseArc.js';
|
|
2
|
+
import { Arc } from '../../models/segments/Arc.js';
|
|
3
|
+
import { Vector } from '../../definitions.js';
|
|
4
|
+
export declare function ellipseEllipseIntersection(arc1: EllipseArc | Arc, arc2: EllipseArc): Vector[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Segment } from
|
|
1
|
+
import { Vector } from '../../definitions.js';
|
|
2
|
+
import { Segment } from '../../models/segments/Segment.js';
|
|
3
3
|
export declare function findIntersections(segment1: Segment, segment2: Segment, precision?: number): Vector[];
|
|
4
4
|
export declare function findIntersectionsAndOverlaps(segment1: Segment, segment2: Segment, precision?: number): {
|
|
5
5
|
intersections: Vector[];
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Line } from '../../models/segments/Line.js';
|
|
2
|
+
import { CubicBezier } from '../../models/segments/CubicBezier.js';
|
|
3
|
+
import { QuadraticBezier } from '../../models/segments/QuadraticBezier.js';
|
|
4
|
+
import { Vector } from '../../definitions.js';
|
|
5
|
+
export declare function lineBezierIntersection(line: Line, curve: CubicBezier | QuadraticBezier): Vector[];
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Line } from '../../models/segments/Line.js';
|
|
2
|
+
import { EllipseArc } from '../../models/segments/EllipseArc.js';
|
|
3
|
+
import { Vector } from '../../definitions.js';
|
|
4
|
+
export declare function lineEllipseArcIntersection(line: Line, arc: EllipseArc, precision?: number): Vector[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Line } from
|
|
2
|
-
import { Vector } from
|
|
1
|
+
import { Line } from '../../models/segments/Line.js';
|
|
2
|
+
import { Vector } from '../../definitions.js';
|
|
3
3
|
export declare const lineLineParams: (line1: {
|
|
4
4
|
V: Vector;
|
|
5
5
|
firstPoint: Vector;
|
|
@@ -8,10 +8,10 @@ export declare const lineLineParams: (line1: {
|
|
|
8
8
|
V: Vector;
|
|
9
9
|
firstPoint: Vector;
|
|
10
10
|
precision: number;
|
|
11
|
-
}, precision?: number) => {
|
|
11
|
+
}, precision?: number) => "parallel" | {
|
|
12
12
|
intersectionParam1: number;
|
|
13
13
|
intersectionParam2: number;
|
|
14
|
-
}
|
|
14
|
+
};
|
|
15
15
|
/**
|
|
16
16
|
* Returns the intersection point between two segment of lines
|
|
17
17
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Vector } from
|
|
2
|
-
import { QuadraticBezier } from
|
|
1
|
+
import { Vector } from '../../definitions.js';
|
|
2
|
+
import { QuadraticBezier } from '../../models/segments/QuadraticBezier.js';
|
|
3
3
|
export declare function handleOverlaps(curve1: QuadraticBezier, curve2: QuadraticBezier): QuadraticBezier[] | null | undefined;
|
|
4
4
|
export declare function quadraticBezierQuadraticBezierIntersection(curve1: QuadraticBezier, curve2: QuadraticBezier, includeOverlaps?: boolean): Vector[] | QuadraticBezier[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Figure } from
|
|
2
|
-
import { Diagram } from
|
|
1
|
+
import { Figure } from '../../models/Figure';
|
|
2
|
+
import { Diagram } from '../../models/Diagram';
|
|
3
3
|
export declare function offsetFigures(figures: Figure[], offsetDistance: number): Diagram;
|
|
4
4
|
export declare function outlineStrokeFigures(figures: Figure[], width: number): Diagram;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Line } from
|
|
2
|
-
import { Arc } from
|
|
3
|
-
import { Segment } from
|
|
4
|
-
import { Vector } from
|
|
1
|
+
import { Line } from '../../models/segments/Line.js';
|
|
2
|
+
import { Arc } from '../../models/segments/Arc.js';
|
|
3
|
+
import { Segment } from '../../models/segments/Segment.js';
|
|
4
|
+
import { Vector } from '../../definitions.js';
|
|
5
5
|
export declare class DegenerateSegment {
|
|
6
6
|
readonly firstPoint: Vector;
|
|
7
7
|
readonly lastPoint: Vector;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Loop } from
|
|
2
|
-
import { Segment } from
|
|
3
|
-
import { Diagram } from
|
|
4
|
-
import { Stroke } from
|
|
5
|
-
import { Strand } from
|
|
1
|
+
import { Loop } from '../../models/Loop.js';
|
|
2
|
+
import { Segment } from '../../models/segments/Segment.js';
|
|
3
|
+
import { Diagram } from '../../models/Diagram.js';
|
|
4
|
+
import { Stroke } from '../../models/Stroke.js';
|
|
5
|
+
import { Strand } from '../../models/Strand.js';
|
|
6
6
|
export declare function rawOffsets(segmentsToOffset: Segment[], offset: number, loop?: boolean): Segment[];
|
|
7
7
|
export declare function offsetLoop(loop: Loop, offset: number): Diagram;
|
|
8
8
|
export declare function offsetStrand(strand: Strand, offset: number): Stroke[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Figure } from
|
|
2
|
-
import { Loop } from
|
|
1
|
+
import { Figure } from '../models/Figure';
|
|
2
|
+
import { Loop } from '../models/Loop';
|
|
3
3
|
/**
|
|
4
4
|
* Groups an array of loops such that loops that correspond to holes
|
|
5
5
|
* in other loops are set in a Figure
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function findZeroViaNewton(f: (x: number) => number, fPrime: (x: number) => number, x0: number, precision?: number, maxIterations?: number): null | number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function findZeroViaNewton(): any;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Segment } from
|
|
1
|
+
import { Segment } from '../models/segments/Segment.js';
|
|
2
2
|
export declare function stitchSegments(segments: Segment[], precision?: number): Segment[][];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../models/exports.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../export/svg/api.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Strand } from
|
|
2
|
-
import { Diagram } from
|
|
3
|
-
import { Figure } from
|
|
4
|
-
import { Loop } from
|
|
5
|
-
import { Stroke } from
|
|
1
|
+
import { Strand } from './models/Strand';
|
|
2
|
+
import { Diagram } from './models/Diagram';
|
|
3
|
+
import { Figure } from './models/Figure';
|
|
4
|
+
import { Loop } from './models/Loop';
|
|
5
|
+
import { Stroke } from './main';
|
|
6
6
|
export declare function fuse(first: Diagram | Figure | Loop, second: Diagram | Figure | Loop): Diagram;
|
|
7
7
|
export declare function fuseAll(shapes: (Diagram | Figure | Loop)[]): Diagram;
|
|
8
8
|
export declare function cut(first: Diagram | Figure | Loop, second: Diagram | Figure | Loop): Diagram;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Vector } from
|
|
2
|
-
import { Strand } from
|
|
3
|
-
import { Diagram } from
|
|
4
|
-
import { Segment } from
|
|
1
|
+
import { Vector } from './definitions.js';
|
|
2
|
+
import { Strand } from './models/Strand.js';
|
|
3
|
+
import { Diagram } from './models/Diagram.js';
|
|
4
|
+
import { Segment } from './models/segments/Segment.js';
|
|
5
5
|
export declare class DrawingPen {
|
|
6
6
|
pointer: Vector;
|
|
7
7
|
protected firstPoint: Vector;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Diagram } from '../models/Diagram.js';
|
|
2
2
|
export declare function drawCircle(radius: number): Diagram;
|
|
@@ -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;
|