brepjs 12.9.1 → 12.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/2d/blueprints/{approximations.d.ts → blueprintApproximations.d.ts} +1 -1
- package/dist/2d/blueprints/blueprintApproximations.d.ts.map +1 -0
- package/dist/2d/blueprints/{customCorners.d.ts → blueprintCustomCorners.d.ts} +1 -1
- package/dist/2d/blueprints/blueprintCustomCorners.d.ts.map +1 -0
- package/dist/2d/blueprints/blueprintFns.d.ts +17 -3
- package/dist/2d/blueprints/blueprintFns.d.ts.map +1 -1
- package/dist/2d/blueprints/{offset.d.ts → blueprintOffset.d.ts} +1 -1
- package/dist/2d/blueprints/blueprintOffset.d.ts.map +1 -0
- package/dist/2d/blueprints/index.d.ts +4 -4
- package/dist/2d/blueprints/index.d.ts.map +1 -1
- package/dist/2d/lib/Curve2D.d.ts +1 -1
- package/dist/2d/lib/Curve2D.d.ts.map +1 -1
- package/dist/2d.cjs +38 -103
- package/dist/2d.d.ts +1 -1
- package/dist/2d.js +4 -105
- package/dist/Blueprint-C5t_ioHD.cjs +1078 -0
- package/dist/Blueprint-Cum4_uL5.js +953 -0
- package/dist/blueprintFns-CNXZX0L2.js +131 -0
- package/dist/blueprintFns-DlPl1rL5.cjs +262 -0
- package/dist/boolean2D-BGepppR1.js +2536 -0
- package/dist/boolean2D-Cdom7nvT.cjs +2661 -0
- package/dist/booleanFns-COWSvOdh.js +374 -0
- package/dist/booleanFns-D-EsiGSc.cjs +427 -0
- package/dist/brepjs.cjs +3016 -7582
- package/dist/brepjs.js +2637 -7696
- package/dist/core/errors.d.ts +6 -0
- package/dist/core/errors.d.ts.map +1 -1
- package/dist/core.cjs +88 -130
- package/dist/core.js +6 -133
- package/dist/cornerFinder-Dcn6Pszu.js +59 -0
- package/dist/cornerFinder-sCGPP3pR.cjs +64 -0
- package/dist/curveFns-BykTeig7.cjs +207 -0
- package/dist/curveFns-CDMrLZb5.js +124 -0
- package/dist/drawFns-CJ6o-Rn9.cjs +2348 -0
- package/dist/drawFns-CuIz-ZQN.js +1960 -0
- package/dist/errors-B2qrBS1S.js +446 -0
- package/dist/errors-Bkxm3vs2.cjs +691 -0
- package/dist/extrudeFns-CLo8iDP0.js +284 -0
- package/dist/extrudeFns-D2FqeRzF.cjs +331 -0
- package/dist/faceFns-BKPKUXhS.js +217 -0
- package/dist/faceFns-DesFj_h_.cjs +342 -0
- package/dist/helpers-B1hjqUWs.cjs +434 -0
- package/dist/helpers-BB6nGmGK.js +315 -0
- package/dist/historyFns-DhQH3It2.js +456 -0
- package/dist/historyFns-dtGToyya.cjs +623 -0
- package/dist/importFns-CxR4aYOY.js +1171 -0
- package/dist/importFns-DbCS95Ae.cjs +1236 -0
- package/dist/index.d.ts +11 -9
- package/dist/index.d.ts.map +1 -1
- package/dist/io/gltfImportFns.d.ts +18 -0
- package/dist/io/gltfImportFns.d.ts.map +1 -0
- package/dist/io/ioUtils.d.ts +16 -0
- package/dist/io/ioUtils.d.ts.map +1 -0
- package/dist/io/objImportFns.d.ts.map +1 -1
- package/dist/io/threemfImportFns.d.ts.map +1 -1
- package/dist/io.cjs +16 -1020
- package/dist/io.js +3 -1021
- package/dist/kernel/brepkit/measureOps.d.ts.map +1 -1
- package/dist/kernel/brepkitAdapter.d.ts +4 -0
- package/dist/kernel/brepkitAdapter.d.ts.map +1 -1
- package/dist/kernel/brepkitWasmTypes.d.ts +12 -4
- package/dist/kernel/brepkitWasmTypes.d.ts.map +1 -1
- package/dist/kernel/defaultAdapter.d.ts +4 -0
- package/dist/kernel/defaultAdapter.d.ts.map +1 -1
- package/dist/kernel/index.d.ts +1 -1
- package/dist/kernel/index.d.ts.map +1 -1
- package/dist/kernel/interfaces/{construction-ops.d.ts → builder-ops.d.ts} +2 -21
- package/dist/kernel/interfaces/builder-ops.d.ts.map +1 -0
- package/dist/kernel/interfaces/core.d.ts +1 -16
- package/dist/kernel/interfaces/core.d.ts.map +1 -1
- package/dist/kernel/interfaces/curve-ops.d.ts +41 -0
- package/dist/kernel/interfaces/curve-ops.d.ts.map +1 -0
- package/dist/kernel/interfaces/index.d.ts +15 -7
- package/dist/kernel/interfaces/index.d.ts.map +1 -1
- package/dist/kernel/interfaces/measure-ops.d.ts +13 -0
- package/dist/kernel/interfaces/measure-ops.d.ts.map +1 -1
- package/dist/kernel/interfaces/primitive-ops.d.ts +13 -0
- package/dist/kernel/interfaces/primitive-ops.d.ts.map +1 -0
- package/dist/kernel/interfaces/{geometry-ops.d.ts → surface-ops.d.ts} +7 -34
- package/dist/kernel/interfaces/surface-ops.d.ts.map +1 -0
- package/dist/kernel/interfaces/transform-ops.d.ts +41 -0
- package/dist/kernel/interfaces/transform-ops.d.ts.map +1 -1
- package/dist/kernel/measureOps.d.ts +2 -10
- package/dist/kernel/measureOps.d.ts.map +1 -1
- package/dist/kernel/transformOps.d.ts +2 -23
- package/dist/kernel/transformOps.d.ts.map +1 -1
- package/dist/measureFns-55tkotVP.js +219 -0
- package/dist/measureFns-ClqawNo9.cjs +284 -0
- package/dist/measurement/measureCache.d.ts +11 -9
- package/dist/measurement/measureCache.d.ts.map +1 -1
- package/dist/measurement/measureFns.d.ts +23 -70
- package/dist/measurement/measureFns.d.ts.map +1 -1
- package/dist/measurement/measureTypes.d.ts +30 -0
- package/dist/measurement/measureTypes.d.ts.map +1 -0
- package/dist/measurement.cjs +10 -10
- package/dist/measurement.d.ts +1 -1
- package/dist/measurement.d.ts.map +1 -1
- package/dist/measurement.js +2 -11
- package/dist/meshFns-Bb5jCTgk.cjs +263 -0
- package/dist/meshFns-CKftHxBm.js +222 -0
- package/dist/operations/convexHullFns.d.ts +21 -0
- package/dist/operations/convexHullFns.d.ts.map +1 -0
- package/dist/operations/straightSkeleton.d.ts.map +1 -1
- package/dist/operations.cjs +32 -37
- package/dist/operations.d.ts +0 -2
- package/dist/operations.d.ts.map +1 -1
- package/dist/operations.js +3 -38
- package/dist/planeOps-CXJOsSMJ.cjs +322 -0
- package/dist/planeOps-PYHm_Q9z.js +281 -0
- package/dist/primitiveFns-B8CYl7Cv.js +795 -0
- package/dist/primitiveFns-CnGoApUZ.cjs +1052 -0
- package/dist/query/shapeFinders.d.ts +1 -1
- package/dist/query/shapeFinders.d.ts.map +1 -1
- package/dist/query.cjs +6 -61
- package/dist/query.js +3 -63
- package/dist/result.cjs +30 -31
- package/dist/result.js +2 -32
- package/dist/shapeFns-I30BnkwE.cjs +992 -0
- package/dist/shapeFns-Z6i88yCe.js +747 -0
- package/dist/shapeTypes-BG8KMjzV.js +10326 -0
- package/dist/shapeTypes-CIo8EfS5.cjs +10631 -0
- package/dist/sketching/CompoundSketch.d.ts +4 -4
- package/dist/sketching/CompoundSketch.d.ts.map +1 -1
- package/dist/sketching/Sketch.d.ts +3 -3
- package/dist/sketching/Sketch.d.ts.map +1 -1
- package/dist/sketching/Sketches.d.ts +1 -1
- package/dist/sketching/Sketches.d.ts.map +1 -1
- package/dist/sketching/draw.d.ts +1 -20
- package/dist/sketching/draw.d.ts.map +1 -1
- package/dist/sketching/draw3d.d.ts +22 -0
- package/dist/sketching/draw3d.d.ts.map +1 -0
- package/dist/sketching/sketchFns.d.ts +3 -3
- package/dist/sketching/sketchFns.d.ts.map +1 -1
- package/dist/sketching/sketchLib.d.ts +2 -2
- package/dist/sketching/sketchLib.d.ts.map +1 -1
- package/dist/sketching.cjs +65 -56
- package/dist/sketching.d.ts +2 -1
- package/dist/sketching.d.ts.map +1 -1
- package/dist/sketching.js +13 -57
- package/dist/solidBuilders-BoktzxPl.cjs +199 -0
- package/dist/solidBuilders-DJQzmxGl.js +140 -0
- package/dist/surfaceBuilders-D7bmpcp0.cjs +321 -0
- package/dist/surfaceBuilders-_HmVsIUu.js +220 -0
- package/dist/text/textBlueprints.d.ts +4 -3
- package/dist/text/textBlueprints.d.ts.map +1 -1
- package/dist/topology/cast.d.ts +1 -5
- package/dist/topology/cast.d.ts.map +1 -1
- package/dist/topology/curveFns.d.ts +1 -1
- package/dist/topology/curveFns.d.ts.map +1 -1
- package/dist/topology/index.d.ts +2 -2
- package/dist/topology/index.d.ts.map +1 -1
- package/dist/topology/{colorFns.d.ts → metadata/colorFns.d.ts} +2 -2
- package/dist/topology/metadata/colorFns.d.ts.map +1 -0
- package/dist/topology/{faceTagFns.d.ts → metadata/faceTagFns.d.ts} +2 -2
- package/dist/topology/metadata/faceTagFns.d.ts.map +1 -0
- package/dist/topology/{metadataPropagation.d.ts → metadata/metadataPropagation.d.ts} +2 -2
- package/dist/topology/metadata/metadataPropagation.d.ts.map +1 -0
- package/dist/topology/{originTrackingFns.d.ts → metadata/originTrackingFns.d.ts} +2 -2
- package/dist/topology/metadata/originTrackingFns.d.ts.map +1 -0
- package/dist/topology/shapeFns.d.ts +1 -1
- package/dist/topology/shapeFns.d.ts.map +1 -1
- package/dist/topology.cjs +102 -104
- package/dist/topology.js +7 -105
- package/dist/types-BD-VVaWB.cjs +67 -0
- package/dist/types-Bb4KK_iG.js +50 -0
- package/dist/vecOps-4iBMiet9.cjs +250 -0
- package/dist/vecOps-B9-MTeC8.js +137 -0
- package/dist/vectors.cjs +29 -30
- package/dist/vectors.js +4 -31
- package/dist/worker.cjs +16 -182
- package/dist/worker.js +2 -183
- package/dist/workerHandler-Cv_6jKDO.js +205 -0
- package/dist/workerHandler-D9sQ2f5u.cjs +294 -0
- package/package.json +9 -9
- package/dist/2d/blueprints/approximations.d.ts.map +0 -1
- package/dist/2d/blueprints/customCorners.d.ts.map +0 -1
- package/dist/2d/blueprints/offset.d.ts.map +0 -1
- package/dist/Blueprint-1HGbugaC.js +0 -974
- package/dist/Blueprint-CUyXM6CV.cjs +0 -973
- package/dist/boolean2D-9OnbotKT.cjs +0 -2490
- package/dist/boolean2D-CR4efa35.js +0 -2491
- package/dist/booleanFns-BBd2oTvv.cjs +0 -609
- package/dist/booleanFns-Br2KdGJq.js +0 -610
- package/dist/core/definitionMaps.d.ts +0 -5
- package/dist/core/definitionMaps.d.ts.map +0 -1
- package/dist/curveFns-1u0oZ0u0.js +0 -114
- package/dist/curveFns-BwLvO_Ia.cjs +0 -113
- package/dist/drawFns-B0na6sbo.js +0 -1441
- package/dist/drawFns-CzlEePor.cjs +0 -1440
- package/dist/faceFns-BAKkZG6D.cjs +0 -197
- package/dist/faceFns-DGMp47Os.js +0 -198
- package/dist/helpers-DVdscQxW.cjs +0 -258
- package/dist/helpers-sJjnIXDA.js +0 -259
- package/dist/kernel/interfaces/construction-ops.d.ts.map +0 -1
- package/dist/kernel/interfaces/geometry-ops.d.ts.map +0 -1
- package/dist/loft-BNvBZzqe.cjs +0 -227
- package/dist/loft-D0aCZRaB.js +0 -228
- package/dist/measurement-C7o5jE6G.js +0 -136
- package/dist/measurement-DZcaxo1A.cjs +0 -135
- package/dist/meshFns-7dgZgNYK.cjs +0 -177
- package/dist/meshFns-CtUl9fGY.js +0 -178
- package/dist/operations/extrude.d.ts +0 -62
- package/dist/operations/extrude.d.ts.map +0 -1
- package/dist/operations/loft.d.ts +0 -19
- package/dist/operations/loft.d.ts.map +0 -1
- package/dist/operations-DisJ5F8s.js +0 -619
- package/dist/operations-DwZ-RBO1.cjs +0 -618
- package/dist/originTrackingFns-NJ1dWoiF.js +0 -137
- package/dist/originTrackingFns-dhaCe8Yb.cjs +0 -136
- package/dist/result-DJAAj1yb.cjs +0 -328
- package/dist/result-DtuwWSUD.js +0 -329
- package/dist/shapeFns-BJbua5kT.js +0 -34
- package/dist/shapeFns-w9tWELHX.cjs +0 -33
- package/dist/shapeTypes-CAEAyk8j.js +0 -5365
- package/dist/shapeTypes-owrg2MNK.cjs +0 -5364
- package/dist/solidBuilders-BLQ4I6Ig.cjs +0 -70
- package/dist/solidBuilders-BS-1220W.js +0 -71
- package/dist/surfaceBuilders-Dj6AjhOv.js +0 -178
- package/dist/surfaceBuilders-KU_7OD2q.cjs +0 -177
- package/dist/topology/colorFns.d.ts.map +0 -1
- package/dist/topology/faceTagFns.d.ts.map +0 -1
- package/dist/topology/metadataPropagation.d.ts.map +0 -1
- package/dist/topology/originTrackingFns.d.ts.map +0 -1
- package/dist/topology-CyPHYYjV.cjs +0 -777
- package/dist/topology-D6LeuhI_.js +0 -778
- package/dist/topologyQueryFns-De439iBP.js +0 -119
- package/dist/topologyQueryFns-fz5kz5e1.cjs +0 -118
- package/dist/types-CA_xrgDq.cjs +0 -24
- package/dist/types-CcKqsmd0.js +0 -25
- package/dist/vecOps-CjRL1jau.cjs +0 -92
- package/dist/vecOps-LTN--A58.js +0 -93
- package/dist/vectors-C8N_QeEX.cjs +0 -88
- package/dist/vectors-DTREgnVp.js +0 -89
|
@@ -12,4 +12,4 @@ import { Shape2D } from './boolean2D.js';
|
|
|
12
12
|
* @returns A new shape of the same type with SVG-compatible curves.
|
|
13
13
|
*/
|
|
14
14
|
export declare function approximateForSVG<T extends Shape2D>(bp: T, options: ApproximationOptions): T;
|
|
15
|
-
//# sourceMappingURL=
|
|
15
|
+
//# sourceMappingURL=blueprintApproximations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blueprintApproximations.d.ts","sourceRoot":"","sources":["../../../src/2d/blueprints/blueprintApproximations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAI5D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAG9C;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,OAAO,EAAE,EAAE,EAAE,CAAC,EAAE,OAAO,EAAE,oBAAoB,GAAG,CAAC,CAS5F"}
|
|
@@ -26,4 +26,4 @@ export declare function fillet2D(shape: Shape2D, radius: number, finder?: Corner
|
|
|
26
26
|
* @returns A new shape with chamfered corners, or `null` if the input is `null`.
|
|
27
27
|
*/
|
|
28
28
|
export declare function chamfer2D(shape: Shape2D, radius: number, finder?: CornerFilter): Shape2D;
|
|
29
|
-
//# sourceMappingURL=
|
|
29
|
+
//# sourceMappingURL=blueprintCustomCorners.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blueprintCustomCorners.d.ts","sourceRoot":"","sources":["../../../src/2d/blueprints/blueprintCustomCorners.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAU,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAKrE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAgF9C;;;;;;;;;;;GAWG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,YAAY,WAE7E;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,YAAY,WAE9E"}
|
|
@@ -1,15 +1,29 @@
|
|
|
1
1
|
import { Point2D, BoundingBox2d } from '../lib/index.js';
|
|
2
2
|
import { default as Blueprint } from './Blueprint.js';
|
|
3
|
+
import { default as CompoundBlueprint } from './CompoundBlueprint.js';
|
|
3
4
|
import { PointInput } from '../../core/types.js';
|
|
4
5
|
import { Plane, PlaneName } from '../../core/planeTypes.js';
|
|
5
6
|
import { Face } from '../../core/shapeTypes.js';
|
|
6
7
|
import { ScaleMode } from '../curves.js';
|
|
8
|
+
import { Result } from '../../core/result.js';
|
|
7
9
|
/**
|
|
8
10
|
* Create a new Blueprint from an ordered array of 2D curves.
|
|
9
11
|
*
|
|
12
|
+
* Returns a `Result` — use `unwrap()` in tests or `isOk()`/`match()` in
|
|
13
|
+
* production code.
|
|
14
|
+
*
|
|
10
15
|
* @see {@link Blueprint} constructor.
|
|
11
16
|
*/
|
|
12
|
-
export declare function createBlueprint(curves: Blueprint['curves']): Blueprint
|
|
17
|
+
export declare function createBlueprint(curves: Blueprint['curves']): Result<Blueprint>;
|
|
18
|
+
/**
|
|
19
|
+
* Create a CompoundBlueprint from an outer boundary and optional holes.
|
|
20
|
+
*
|
|
21
|
+
* The first element of `blueprints` is the outer boundary; subsequent
|
|
22
|
+
* elements are subtracted as holes.
|
|
23
|
+
*
|
|
24
|
+
* @see {@link CompoundBlueprint} constructor.
|
|
25
|
+
*/
|
|
26
|
+
export declare function createCompoundBlueprint(blueprints: Blueprint[]): Result<CompoundBlueprint>;
|
|
13
27
|
/** Get the axis-aligned bounding box of a 2D blueprint. */
|
|
14
28
|
export declare function getBounds2D(bp: Blueprint): BoundingBox2d;
|
|
15
29
|
/** Get the winding direction of a 2D blueprint. */
|
|
@@ -29,7 +43,7 @@ export declare function mirror2D(bp: Blueprint, centerOrDirection: Point2D, orig
|
|
|
29
43
|
/** Stretch a 2D blueprint along a direction by a given ratio. */
|
|
30
44
|
export declare function stretch2D(bp: Blueprint, ratio: number, direction: Point2D, origin?: Point2D): Blueprint;
|
|
31
45
|
/** Project a blueprint onto a 3D plane, producing sketch data. */
|
|
32
|
-
export declare function
|
|
46
|
+
export declare function sketchOnPlane2D(bp: Blueprint, inputPlane?: PlaneName | Plane, origin?: PointInput | number): any;
|
|
33
47
|
/** Map a blueprint onto a 3D face's UV surface, producing sketch data. */
|
|
34
|
-
export declare function
|
|
48
|
+
export declare function sketchOnFace2D(bp: Blueprint, face: Face, scaleMode?: ScaleMode): any;
|
|
35
49
|
//# sourceMappingURL=blueprintFns.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blueprintFns.d.ts","sourceRoot":"","sources":["../../../src/2d/blueprints/blueprintFns.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAE9D,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"blueprintFns.d.ts","sourceRoot":"","sources":["../../../src/2d/blueprints/blueprintFns.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAE9D,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAC;AAE5C,OAAO,KAAK,iBAAiB,MAAM,wBAAwB,CAAC;AAC5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAC;AACrD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,KAAK,MAAM,EAAW,MAAM,sBAAsB,CAAC;AAG5D;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,SAAS,CAAC,QAAQ,CAAC,GAAG,MAAM,CAAC,SAAS,CAAC,CAU9E;AAED;;;;;;;GAOG;AACH,wBAAgB,uBAAuB,CAAC,UAAU,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC,iBAAiB,CAAC,CAU1F;AAID,2DAA2D;AAC3D,wBAAgB,WAAW,CAAC,EAAE,EAAE,SAAS,GAAG,aAAa,CAExD;AAED,mDAAmD;AACnD,wBAAgB,gBAAgB,CAAC,EAAE,EAAE,SAAS,GAAG,WAAW,GAAG,kBAAkB,CAEhF;AAED,gEAAgE;AAChE,wBAAgB,UAAU,CAAC,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,GAAG,OAAO,CAEjE;AAED,gEAAgE;AAChE,wBAAgB,UAAU,CAAC,EAAE,EAAE,SAAS,GAAG,MAAM,CAEhD;AAID,+DAA+D;AAC/D,wBAAgB,WAAW,CAAC,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,SAAS,CAE5E;AAED,2DAA2D;AAC3D,wBAAgB,QAAQ,CAAC,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAElF;AAED,wEAAwE;AACxE,wBAAgB,OAAO,CAAC,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAElF;AAED,qDAAqD;AACrD,wBAAgB,QAAQ,CACtB,EAAE,EAAE,SAAS,EACb,iBAAiB,EAAE,OAAO,EAC1B,MAAM,CAAC,EAAE,OAAO,EAChB,IAAI,CAAC,EAAE,QAAQ,GAAG,OAAO,GACxB,SAAS,CAEX;AAED,iEAAiE;AACjE,wBAAgB,SAAS,CACvB,EAAE,EAAE,SAAS,EACb,KAAK,EAAE,MAAM,EACb,SAAS,EAAE,OAAO,EAClB,MAAM,CAAC,EAAE,OAAO,GACf,SAAS,CAEX;AAID,kEAAkE;AAClE,wBAAgB,eAAe,CAC7B,EAAE,EAAE,SAAS,EACb,UAAU,CAAC,EAAE,SAAS,GAAG,KAAK,EAC9B,MAAM,CAAC,EAAE,UAAU,GAAG,MAAM,GAE3B,GAAG,CAEL;AAED,0EAA0E;AAC1E,wBAAgB,cAAc,CAC5B,EAAE,EAAE,SAAS,EACb,IAAI,EAAE,IAAI,EACV,SAAS,CAAC,EAAE,SAAS,GAEpB,GAAG,CAEL"}
|
|
@@ -55,4 +55,4 @@ export declare function offsetBlueprint(blueprint: Blueprint, offset: number, of
|
|
|
55
55
|
* ```
|
|
56
56
|
*/
|
|
57
57
|
export default function offset(bp: Shape2D, offsetDistance: number, offsetConfig?: Offset2DConfig): Shape2D;
|
|
58
|
-
//# sourceMappingURL=
|
|
58
|
+
//# sourceMappingURL=blueprintOffset.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blueprintOffset.d.ts","sourceRoot":"","sources":["../../../src/2d/blueprints/blueprintOffset.ts"],"names":[],"mappings":"AAKA,OAAO,EAIL,OAAO,EAQR,MAAM,iBAAiB,CAAC;AACzB,OAAO,SAAS,MAAM,gBAAgB,CAAC;AAGvC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AA2G9C;;;;;;;;;;;;;GAaG;AACH,wBAAgB,UAAU,CACxB,SAAS,EAAE,SAAS,EACpB,MAAM,EAAE,MAAM,EACd,YAAY,GAAE,cAAmB,GAChC,OAAO,EAAE,CA2HX;AAOD,8CAA8C;AAC9C,MAAM,WAAW,cAAc;IAC7B,yEAAyE;IACzE,YAAY,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,OAAO,CAAC;CAC5C;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,eAAe,CAC7B,SAAS,EAAE,SAAS,EACpB,MAAM,EAAE,MAAM,EACd,YAAY,GAAE,cAAmB,GAChC,OAAO,CAmGT;AAUD;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,CAAC,OAAO,UAAU,MAAM,CAC5B,EAAE,EAAE,OAAO,EACX,cAAc,EAAE,MAAM,EACtB,YAAY,GAAE,cAAmB,GAChC,OAAO,CAeT"}
|
|
@@ -3,13 +3,13 @@ import { default as CompoundBlueprint } from './CompoundBlueprint.js';
|
|
|
3
3
|
import { default as Blueprints } from './Blueprints.js';
|
|
4
4
|
import { DrawingInterface, organiseBlueprints } from './lib.js';
|
|
5
5
|
import { ScaleMode } from '../curves.js';
|
|
6
|
-
import { default as offset } from './
|
|
6
|
+
import { default as offset } from './blueprintOffset.js';
|
|
7
7
|
export { Blueprint, CompoundBlueprint, Blueprints, organiseBlueprints, offset };
|
|
8
8
|
export type { DrawingInterface, ScaleMode };
|
|
9
9
|
export * from './cannedBlueprints.js';
|
|
10
10
|
export * from './booleanOperations.js';
|
|
11
11
|
export * from './boolean2D.js';
|
|
12
|
-
export * from './
|
|
13
|
-
export * from './
|
|
14
|
-
export * from './
|
|
12
|
+
export * from './blueprintApproximations.js';
|
|
13
|
+
export * from './blueprintOffset.js';
|
|
14
|
+
export * from './blueprintCustomCorners.js';
|
|
15
15
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/2d/blueprints/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,gBAAgB,CAAC;AACvC,OAAO,iBAAiB,MAAM,wBAAwB,CAAC;AACvD,OAAO,UAAU,MAAM,iBAAiB,CAAC;AACzC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AACjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/2d/blueprints/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,gBAAgB,CAAC;AACvC,OAAO,iBAAiB,MAAM,wBAAwB,CAAC;AACvD,OAAO,UAAU,MAAM,iBAAiB,CAAC;AACzC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AACjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,MAAM,MAAM,sBAAsB,CAAC;AAE1C,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,EAAE,CAAC;AAEhF,YAAY,EAAE,gBAAgB,EAAE,SAAS,EAAE,CAAC;AAE5C,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,sBAAsB,CAAC;AACrC,cAAc,6BAA6B,CAAC"}
|
package/dist/2d/lib/Curve2D.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { KernelType } from '../../kernel/types.js';
|
|
2
|
-
import { CurveType } from '../../core/
|
|
2
|
+
import { CurveType } from '../../core/typeDiscriminants.js';
|
|
3
3
|
import { Result } from '../../core/result.js';
|
|
4
4
|
import { BoundingBox2d } from './BoundingBox2d.js';
|
|
5
5
|
import { Point2D } from './definitions.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Curve2D.d.ts","sourceRoot":"","sources":["../../../src/2d/lib/Curve2D.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAExD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"Curve2D.d.ts","sourceRoot":"","sources":["../../../src/2d/lib/Curve2D.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAExD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAE,KAAK,MAAM,EAAmB,MAAM,sBAAsB,CAAC;AAMpE,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAMhD;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAExD;AAED;;;;;GAKG;AACH,qBAAa,OAAO;IAClB,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAa;IACtC,OAAO,CAAC,QAAQ,CAAS;IACzB,YAAY,EAAE,IAAI,GAAG,aAAa,CAAC;IACnC,OAAO,CAAC,WAAW,CAAwB;IAC3C,OAAO,CAAC,UAAU,CAAwB;gBAE9B,MAAM,EAAE,UAAU;IAM9B,IAAI,OAAO,IAAI,UAAU,CAGxB;IAED,MAAM,IAAI,IAAI;IAQd,6DAA6D;IAC7D,IAAI,WAAW,kBAOd;IAED,yEAAyE;IACzE,IAAI,IAAI,WAEP;IAED,6FAA6F;IAC7F,SAAS,IAAI,MAAM;IAInB,yEAAyE;IACzE,KAAK,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO;IAIjC,8EAA8E;IAC9E,IAAI,UAAU,IAAI,OAAO,CAKxB;IAED,4EAA4E;IAC5E,IAAI,SAAS,IAAI,OAAO,CAKvB;IAED,4DAA4D;IAC5D,IAAI,cAAc,IAAI,MAAM,CAE3B;IAED,0DAA0D;IAC1D,IAAI,aAAa,IAAI,MAAM,CAE1B;IAED,wFAAwF;IACxF,IAAI,QAAQ,IAAI,SAAS,CAExB;IAED,qDAAqD;IACrD,KAAK,IAAI,OAAO;IAQhB,sDAAsD;IACtD,OAAO,IAAI,IAAI;IAQf,OAAO,CAAC,iBAAiB;IAWzB,OAAO,CAAC,iBAAiB;IAyBzB,gFAAgF;IAChF,YAAY,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,GAAG,MAAM;IAQhD,8EAA8E;IAC9E,SAAS,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO;IAIlC;;;;OAIG;IACH,SAAS,CAAC,KAAK,EAAE,OAAO,EAAE,SAAS,SAAO,GAAG,MAAM,CAAC,MAAM,CAAC;IA2B3D;;;;OAIG;IACH,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,GAAG,OAAO;IAe3C;;;;OAIG;IACH,OAAO,CAAC,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,EAAE,EAAE,SAAS,SAAO,GAAG,OAAO,EAAE;CAiCnE"}
|
package/dist/2d.cjs
CHANGED
|
@@ -1,104 +1,39 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
return bp.orientation;
|
|
42
|
-
}
|
|
43
|
-
function isInside2D(bp, point) {
|
|
44
|
-
return bp.isInside(point);
|
|
45
|
-
}
|
|
46
|
-
function toSVGPathD(bp) {
|
|
47
|
-
return bp.toSVGPathD();
|
|
48
|
-
}
|
|
49
|
-
function translate2D(bp, dx, dy) {
|
|
50
|
-
return bp.translate(dx, dy);
|
|
51
|
-
}
|
|
52
|
-
function rotate2D(bp, angle, center) {
|
|
53
|
-
return bp.rotate(angle, center);
|
|
54
|
-
}
|
|
55
|
-
function scale2D(bp, factor, center) {
|
|
56
|
-
return bp.scale(factor, center);
|
|
57
|
-
}
|
|
58
|
-
function mirror2D(bp, centerOrDirection, origin, mode) {
|
|
59
|
-
return bp.mirror(centerOrDirection, origin, mode);
|
|
60
|
-
}
|
|
61
|
-
function stretch2D(bp, ratio, direction, origin) {
|
|
62
|
-
return bp.stretch(ratio, direction, origin);
|
|
63
|
-
}
|
|
64
|
-
function sketch2DOnPlane(bp, inputPlane, origin) {
|
|
65
|
-
return bp.sketchOnPlane(inputPlane, origin);
|
|
66
|
-
}
|
|
67
|
-
function sketch2DOnFace(bp, face, scaleMode) {
|
|
68
|
-
return bp.sketchOnFace(face, scaleMode);
|
|
69
|
-
}
|
|
70
|
-
exports.Blueprint = Blueprint.Blueprint;
|
|
71
|
-
exports.BoundingBox2d = Blueprint.BoundingBox2d;
|
|
72
|
-
exports.Curve2D = Blueprint.Curve2D;
|
|
73
|
-
exports.Blueprints = boolean2D.Blueprints;
|
|
74
|
-
exports.CompoundBlueprint = boolean2D.CompoundBlueprint;
|
|
75
|
-
exports.cut2D = boolean2D.cut2D;
|
|
76
|
-
exports.cutBlueprints = boolean2D.cutBlueprints;
|
|
77
|
-
exports.fuse2D = boolean2D.fuse2D;
|
|
78
|
-
exports.fuseBlueprints = boolean2D.fuseBlueprints;
|
|
79
|
-
exports.intersect2D = boolean2D.intersect2D;
|
|
80
|
-
exports.intersectBlueprints = boolean2D.intersectBlueprints;
|
|
81
|
-
exports.organiseBlueprints = boolean2D.organiseBlueprints;
|
|
82
|
-
exports.polysidesBlueprint = boolean2D.polysidesBlueprint;
|
|
83
|
-
exports.roundedRectangleBlueprint = boolean2D.roundedRectangleBlueprint;
|
|
84
|
-
exports.createBlueprint = createBlueprint;
|
|
85
|
-
exports.curve2dBoundingBox = curve2dBoundingBox;
|
|
86
|
-
exports.curve2dDistanceFrom = curve2dDistanceFrom;
|
|
87
|
-
exports.curve2dFirstPoint = curve2dFirstPoint;
|
|
88
|
-
exports.curve2dIsOnCurve = curve2dIsOnCurve;
|
|
89
|
-
exports.curve2dLastPoint = curve2dLastPoint;
|
|
90
|
-
exports.curve2dParameter = curve2dParameter;
|
|
91
|
-
exports.curve2dSplitAt = curve2dSplitAt;
|
|
92
|
-
exports.curve2dTangentAt = curve2dTangentAt;
|
|
93
|
-
exports.getBounds2D = getBounds2D;
|
|
94
|
-
exports.getOrientation2D = getOrientation2D;
|
|
95
|
-
exports.isInside2D = isInside2D;
|
|
96
|
-
exports.mirror2D = mirror2D;
|
|
97
|
-
exports.reverseCurve = reverseCurve;
|
|
98
|
-
exports.rotate2D = rotate2D;
|
|
99
|
-
exports.scale2D = scale2D;
|
|
100
|
-
exports.sketch2DOnFace = sketch2DOnFace;
|
|
101
|
-
exports.sketch2DOnPlane = sketch2DOnPlane;
|
|
102
|
-
exports.stretch2D = stretch2D;
|
|
103
|
-
exports.toSVGPathD = toSVGPathD;
|
|
104
|
-
exports.translate2D = translate2D;
|
|
2
|
+
const require_Blueprint = require("./Blueprint-C5t_ioHD.cjs");
|
|
3
|
+
const require_boolean2D = require("./boolean2D-Cdom7nvT.cjs");
|
|
4
|
+
const require_blueprintFns = require("./blueprintFns-DlPl1rL5.cjs");
|
|
5
|
+
exports.Blueprint = require_Blueprint.Blueprint;
|
|
6
|
+
exports.Blueprints = require_boolean2D.Blueprints;
|
|
7
|
+
exports.BoundingBox2d = require_Blueprint.BoundingBox2d;
|
|
8
|
+
exports.CompoundBlueprint = require_boolean2D.CompoundBlueprint;
|
|
9
|
+
exports.Curve2D = require_Blueprint.Curve2D;
|
|
10
|
+
exports.createBlueprint = require_blueprintFns.createBlueprint;
|
|
11
|
+
exports.curve2dBoundingBox = require_blueprintFns.curve2dBoundingBox;
|
|
12
|
+
exports.curve2dDistanceFrom = require_blueprintFns.curve2dDistanceFrom;
|
|
13
|
+
exports.curve2dFirstPoint = require_blueprintFns.curve2dFirstPoint;
|
|
14
|
+
exports.curve2dIsOnCurve = require_blueprintFns.curve2dIsOnCurve;
|
|
15
|
+
exports.curve2dLastPoint = require_blueprintFns.curve2dLastPoint;
|
|
16
|
+
exports.curve2dParameter = require_blueprintFns.curve2dParameter;
|
|
17
|
+
exports.curve2dSplitAt = require_blueprintFns.curve2dSplitAt;
|
|
18
|
+
exports.curve2dTangentAt = require_blueprintFns.curve2dTangentAt;
|
|
19
|
+
exports.cut2D = require_boolean2D.cut2D;
|
|
20
|
+
exports.cutBlueprints = require_boolean2D.cutBlueprints;
|
|
21
|
+
exports.fuse2D = require_boolean2D.fuse2D;
|
|
22
|
+
exports.fuseBlueprints = require_boolean2D.fuseBlueprints;
|
|
23
|
+
exports.getBounds2D = require_blueprintFns.getBounds2D;
|
|
24
|
+
exports.getOrientation2D = require_blueprintFns.getOrientation2D;
|
|
25
|
+
exports.intersect2D = require_boolean2D.intersect2D;
|
|
26
|
+
exports.intersectBlueprints = require_boolean2D.intersectBlueprints;
|
|
27
|
+
exports.isInside2D = require_blueprintFns.isInside2D;
|
|
28
|
+
exports.mirror2D = require_blueprintFns.mirror2D;
|
|
29
|
+
exports.organiseBlueprints = require_boolean2D.organiseBlueprints;
|
|
30
|
+
exports.polysidesBlueprint = require_boolean2D.polysidesBlueprint;
|
|
31
|
+
exports.reverseCurve = require_blueprintFns.reverseCurve;
|
|
32
|
+
exports.rotate2D = require_blueprintFns.rotate2D;
|
|
33
|
+
exports.roundedRectangleBlueprint = require_boolean2D.roundedRectangleBlueprint;
|
|
34
|
+
exports.scale2D = require_blueprintFns.scale2D;
|
|
35
|
+
exports.sketchOnFace2D = require_blueprintFns.sketchOnFace2D;
|
|
36
|
+
exports.sketchOnPlane2D = require_blueprintFns.sketchOnPlane2D;
|
|
37
|
+
exports.stretch2D = require_blueprintFns.stretch2D;
|
|
38
|
+
exports.toSVGPathD = require_blueprintFns.toSVGPathD;
|
|
39
|
+
exports.translate2D = require_blueprintFns.translate2D;
|
package/dist/2d.d.ts
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
export { default as Blueprint } from './2d/blueprints/Blueprint.js';
|
|
14
14
|
export { default as CompoundBlueprint } from './2d/blueprints/CompoundBlueprint.js';
|
|
15
15
|
export { default as Blueprints } from './2d/blueprints/Blueprints.js';
|
|
16
|
-
export { createBlueprint, getBounds2D, getOrientation2D, isInside2D, toSVGPathD, translate2D, rotate2D, scale2D, mirror2D, stretch2D,
|
|
16
|
+
export { createBlueprint, getBounds2D, getOrientation2D, isInside2D, toSVGPathD, translate2D, rotate2D, scale2D, mirror2D, stretch2D, sketchOnPlane2D, sketchOnFace2D, } from './2d/blueprints/blueprintFns.js';
|
|
17
17
|
export { fuseBlueprints, cutBlueprints, intersectBlueprints, } from './2d/blueprints/booleanOperations.js';
|
|
18
18
|
export { fuse2D, cut2D, intersect2D, type Shape2D } from './2d/blueprints/boolean2D.js';
|
|
19
19
|
export { reverseCurve, curve2dBoundingBox, curve2dFirstPoint, curve2dLastPoint, curve2dSplitAt, curve2dParameter, curve2dTangentAt, curve2dIsOnCurve, curve2dDistanceFrom, } from './2d/lib/curve2dFns.js';
|
package/dist/2d.js
CHANGED
|
@@ -1,105 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
const cloned = curve.clone();
|
|
6
|
-
cloned.reverse();
|
|
7
|
-
return cloned;
|
|
8
|
-
}
|
|
9
|
-
function curve2dBoundingBox(curve) {
|
|
10
|
-
return curve.boundingBox;
|
|
11
|
-
}
|
|
12
|
-
function curve2dFirstPoint(curve) {
|
|
13
|
-
return curve.firstPoint;
|
|
14
|
-
}
|
|
15
|
-
function curve2dLastPoint(curve) {
|
|
16
|
-
return curve.lastPoint;
|
|
17
|
-
}
|
|
18
|
-
function curve2dSplitAt(curve, params, precision) {
|
|
19
|
-
return curve.splitAt(params, precision);
|
|
20
|
-
}
|
|
21
|
-
function curve2dParameter(curve, point, precision) {
|
|
22
|
-
return curve.parameter(point, precision);
|
|
23
|
-
}
|
|
24
|
-
function curve2dTangentAt(curve, param) {
|
|
25
|
-
return curve.tangentAt(param);
|
|
26
|
-
}
|
|
27
|
-
function curve2dIsOnCurve(curve, point) {
|
|
28
|
-
return curve.isOnCurve(point);
|
|
29
|
-
}
|
|
30
|
-
function curve2dDistanceFrom(curve, point) {
|
|
31
|
-
return curve.distanceFrom(point);
|
|
32
|
-
}
|
|
33
|
-
function createBlueprint(curves) {
|
|
34
|
-
return new Blueprint(curves);
|
|
35
|
-
}
|
|
36
|
-
function getBounds2D(bp) {
|
|
37
|
-
return bp.boundingBox;
|
|
38
|
-
}
|
|
39
|
-
function getOrientation2D(bp) {
|
|
40
|
-
return bp.orientation;
|
|
41
|
-
}
|
|
42
|
-
function isInside2D(bp, point) {
|
|
43
|
-
return bp.isInside(point);
|
|
44
|
-
}
|
|
45
|
-
function toSVGPathD(bp) {
|
|
46
|
-
return bp.toSVGPathD();
|
|
47
|
-
}
|
|
48
|
-
function translate2D(bp, dx, dy) {
|
|
49
|
-
return bp.translate(dx, dy);
|
|
50
|
-
}
|
|
51
|
-
function rotate2D(bp, angle, center) {
|
|
52
|
-
return bp.rotate(angle, center);
|
|
53
|
-
}
|
|
54
|
-
function scale2D(bp, factor, center) {
|
|
55
|
-
return bp.scale(factor, center);
|
|
56
|
-
}
|
|
57
|
-
function mirror2D(bp, centerOrDirection, origin, mode) {
|
|
58
|
-
return bp.mirror(centerOrDirection, origin, mode);
|
|
59
|
-
}
|
|
60
|
-
function stretch2D(bp, ratio, direction, origin) {
|
|
61
|
-
return bp.stretch(ratio, direction, origin);
|
|
62
|
-
}
|
|
63
|
-
function sketch2DOnPlane(bp, inputPlane, origin) {
|
|
64
|
-
return bp.sketchOnPlane(inputPlane, origin);
|
|
65
|
-
}
|
|
66
|
-
function sketch2DOnFace(bp, face, scaleMode) {
|
|
67
|
-
return bp.sketchOnFace(face, scaleMode);
|
|
68
|
-
}
|
|
69
|
-
export {
|
|
70
|
-
Blueprint,
|
|
71
|
-
c as Blueprints,
|
|
72
|
-
d as BoundingBox2d,
|
|
73
|
-
C2 as CompoundBlueprint,
|
|
74
|
-
C as Curve2D,
|
|
75
|
-
createBlueprint,
|
|
76
|
-
curve2dBoundingBox,
|
|
77
|
-
curve2dDistanceFrom,
|
|
78
|
-
curve2dFirstPoint,
|
|
79
|
-
curve2dIsOnCurve,
|
|
80
|
-
curve2dLastPoint,
|
|
81
|
-
curve2dParameter,
|
|
82
|
-
curve2dSplitAt,
|
|
83
|
-
curve2dTangentAt,
|
|
84
|
-
d2 as cut2D,
|
|
85
|
-
j as cutBlueprints,
|
|
86
|
-
f as fuse2D,
|
|
87
|
-
k as fuseBlueprints,
|
|
88
|
-
getBounds2D,
|
|
89
|
-
getOrientation2D,
|
|
90
|
-
h as intersect2D,
|
|
91
|
-
l as intersectBlueprints,
|
|
92
|
-
isInside2D,
|
|
93
|
-
mirror2D,
|
|
94
|
-
o as organiseBlueprints,
|
|
95
|
-
p as polysidesBlueprint,
|
|
96
|
-
reverseCurve,
|
|
97
|
-
rotate2D,
|
|
98
|
-
r as roundedRectangleBlueprint,
|
|
99
|
-
scale2D,
|
|
100
|
-
sketch2DOnFace,
|
|
101
|
-
sketch2DOnPlane,
|
|
102
|
-
stretch2D,
|
|
103
|
-
toSVGPathD,
|
|
104
|
-
translate2D
|
|
105
|
-
};
|
|
1
|
+
import { _ as Curve2D, t as Blueprint, y as BoundingBox2d } from "./Blueprint-Cum4_uL5.js";
|
|
2
|
+
import { a as fuseBlueprints, c as roundedRectangleBlueprint, g as CompoundBlueprint, h as Blueprints, i as cutBlueprints, m as organiseBlueprints, n as fuse2D, o as intersectBlueprints, r as intersect2D, s as polysidesBlueprint, t as cut2D } from "./boolean2D-BGepppR1.js";
|
|
3
|
+
import { S as reverseCurve, _ as curve2dIsOnCurve, a as isInside2D, b as curve2dSplitAt, c as scale2D, d as stretch2D, f as toSVGPathD, g as curve2dFirstPoint, h as curve2dDistanceFrom, i as getOrientation2D, l as sketchOnFace2D, m as curve2dBoundingBox, o as mirror2D, p as translate2D, r as getBounds2D, s as rotate2D, t as createBlueprint, u as sketchOnPlane2D, v as curve2dLastPoint, x as curve2dTangentAt, y as curve2dParameter } from "./blueprintFns-CNXZX0L2.js";
|
|
4
|
+
export { Blueprint, Blueprints, BoundingBox2d, CompoundBlueprint, Curve2D, createBlueprint, curve2dBoundingBox, curve2dDistanceFrom, curve2dFirstPoint, curve2dIsOnCurve, curve2dLastPoint, curve2dParameter, curve2dSplitAt, curve2dTangentAt, cut2D, cutBlueprints, fuse2D, fuseBlueprints, getBounds2D, getOrientation2D, intersect2D, intersectBlueprints, isInside2D, mirror2D, organiseBlueprints, polysidesBlueprint, reverseCurve, rotate2D, roundedRectangleBlueprint, scale2D, sketchOnFace2D, sketchOnPlane2D, stretch2D, toSVGPathD, translate2D };
|