brepjs 18.28.0 → 18.29.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.cjs +6 -6
- package/dist/2d.js +6 -6
- package/dist/{blueprint-DgVV4JnR.cjs → blueprint-79MQJVZa.cjs} +5 -5
- package/dist/{blueprint-DCaLaW5V.js → blueprint-CUvDkWLs.js} +5 -5
- package/dist/{blueprintFns-DxDohOso.js → blueprintFns-Ce-Mzufq.js} +2 -2
- package/dist/{blueprintFns-CaBBmBbd.cjs → blueprintFns-DX7ftQu1.cjs} +2 -2
- package/dist/{blueprintSketcher-CVzRSGDr.cjs → blueprintSketcher-CoefmhkD.cjs} +3 -3
- package/dist/{blueprintSketcher-DpZtLWPK.js → blueprintSketcher-DiJ7nX5P.js} +3 -3
- package/dist/{boolean2D-BdC7YBQP.js → boolean2D-B-6u7Td3.js} +4 -4
- package/dist/{boolean2D-BT0oRETS.cjs → boolean2D-ByEkLCB7.cjs} +4 -4
- package/dist/{booleanFns-CsFsde9t.cjs → booleanFns-2zKQEuA8.cjs} +4 -4
- package/dist/{booleanFns-DQqY4Dss.js → booleanFns-B-saLmi4.js} +4 -4
- package/dist/brepjs.cjs +24 -24
- package/dist/brepjs.js +24 -24
- package/dist/{cameraFns-Bj-i3990.cjs → cameraFns-C0uWLB4t.cjs} +2 -2
- package/dist/{cameraFns-CDB2SASG.js → cameraFns-ILz-I1EN.js} +2 -2
- package/dist/core.cjs +1 -1
- package/dist/core.js +1 -1
- package/dist/{cornerFinder-D6UY4k4j.cjs → cornerFinder-DheJjEdJ.cjs} +1 -1
- package/dist/{cornerFinder-B2gMJSrd.js → cornerFinder-DnbKeXpc.js} +1 -1
- package/dist/{curveFns-Y73GytYk.cjs → curveFns-BW6fpApo.cjs} +1 -1
- package/dist/{curveFns-qm5yRPDB.js → curveFns-Dp2RyxrR.js} +1 -1
- package/dist/{drawFns-DOe4jAxV.js → drawFns-CJamg2C6.js} +12 -12
- package/dist/{drawFns-9oTTEwVI.cjs → drawFns-rCnf1L3r.cjs} +12 -12
- package/dist/{extrudeFns-DpPpBy40.js → extrudeFns-CMGE0i5l.js} +1 -1
- package/dist/{extrudeFns-D_nDWO4O.cjs → extrudeFns-zngMBHOx.cjs} +1 -1
- package/dist/{faceFns-B_wyCXSR.cjs → faceFns-C8A9sCkb.cjs} +2 -2
- package/dist/{faceFns-CEZFie5M.js → faceFns-DFDKI39R.js} +2 -2
- package/dist/{helpers-BeAdQnoh.cjs → helpers-D-mko0qh.cjs} +6 -6
- package/dist/{helpers-CDzCYf6t.js → helpers-POBaax19.js} +6 -6
- package/dist/{historyFns-CiOuKAHR.js → historyFns-CbT3UJYn.js} +4 -4
- package/dist/{historyFns-o5YPr6kB.cjs → historyFns-D0K337z6.cjs} +4 -4
- package/dist/{importFns-ySU9FOAT.cjs → importFns-B1ym1wuL.cjs} +2 -2
- package/dist/{importFns-DWXQjwcN.js → importFns-CwNl9Ll2.js} +2 -2
- package/dist/io.cjs +2 -2
- package/dist/io.js +2 -2
- package/dist/kernel/brepkit/brepkitWasmTypes.d.ts +9 -7
- package/dist/kernel/brepkit/constructionOps.d.ts +1 -1
- package/dist/kernel/brepkit/geometryOps.d.ts +8 -2
- package/dist/{measureFns-C7sDwFbi.cjs → measureFns-B7x2vp6b.cjs} +3 -3
- package/dist/{measureFns-CnNsxJ3r.js → measureFns-CeEybpyd.js} +3 -3
- package/dist/measurement.cjs +1 -1
- package/dist/measurement.js +1 -1
- package/dist/{meshFns-De5ytGeY.js → meshFns-BtNBXH5S.js} +2 -2
- package/dist/{meshFns-Bnzdb8Hi.cjs → meshFns-By5mtdo9.cjs} +2 -2
- package/dist/operations.cjs +2 -2
- package/dist/operations.js +2 -2
- package/dist/{primitiveFns-BW2Z-ol6.js → primitiveFns-DfsjF4Kj.js} +7 -7
- package/dist/{primitiveFns-DcGUodn_.cjs → primitiveFns-IzSRaAG-.cjs} +7 -7
- package/dist/projection.cjs +1 -1
- package/dist/projection.js +1 -1
- package/dist/query.cjs +2 -2
- package/dist/query.js +2 -2
- package/dist/{shapeFns-BSS9CJ76.js → shapeFns-Cf79IuMn.js} +2 -2
- package/dist/{shapeFns-DeIskguL.cjs → shapeFns-DPjMiDcX.cjs} +2 -2
- package/dist/shapeRef.cjs +1 -1
- package/dist/shapeRef.js +1 -1
- package/dist/{shapeRefFns-C5Pf5Hq4.cjs → shapeRefFns-hCaw9c68.cjs} +4 -4
- package/dist/{shapeRefFns-TS1Z4wYF.js → shapeRefFns-sE77hIRw.js} +4 -4
- package/dist/{shapeTypes-BNSmLg5K.js → shapeTypes-DUC23pOr.js} +14 -11
- package/dist/{shapeTypes-7h6IgcC-.cjs → shapeTypes-q3dLIqqs.cjs} +14 -11
- package/dist/sketching.cjs +3 -3
- package/dist/sketching.js +3 -3
- package/dist/{solidBuilders-DVsQV6gF.cjs → solidBuilders-BoeIWGQs.cjs} +2 -2
- package/dist/{solidBuilders-BVEXfPe5.js → solidBuilders-CwwLuRz8.js} +2 -2
- package/dist/{surfaceBuilders-DlSyRZE7.cjs → surfaceBuilders-BJX_D1VO.cjs} +2 -2
- package/dist/{surfaceBuilders-T8OQoZ1R.js → surfaceBuilders-CRTJ3eLf.js} +2 -2
- package/dist/text.cjs +2 -2
- package/dist/text.js +2 -2
- package/dist/{textBlueprints-DMtErtGx.cjs → textBlueprints-CuPkJa3W.cjs} +7 -7
- package/dist/{textBlueprints-f5p3Ltou.js → textBlueprints-OEB7VKBv.js} +7 -7
- package/dist/{textMetrics-BrvEBE7v.cjs → textMetrics-boJWbnQk.cjs} +1 -1
- package/dist/{textMetrics-uXYdyNt0.js → textMetrics-lTkakQKC.js} +1 -1
- package/dist/topology.cjs +7 -7
- package/dist/topology.js +7 -7
- package/dist/{topologyQueryFns-COoNTJha.js → topologyQueryFns-BELdxJ8R.js} +1 -1
- package/dist/{topologyQueryFns-BV0fjpXF.cjs → topologyQueryFns-C38cIHle.cjs} +1 -1
- package/package.json +2 -2
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { B as createKernelHandle, Z as getKernel, t as castShape } from "./shapeTypes-
|
|
1
|
+
import { B as createKernelHandle, Z as getKernel, t as castShape } from "./shapeTypes-DUC23pOr.js";
|
|
2
2
|
import { A as ok, b as err, d as validationError, n as computationError, r as ioError } from "./errors-BJSTLaDI.js";
|
|
3
3
|
import { d as vecNormalize, s as vecIsZero } from "./vecOps-SKPRvPH-.js";
|
|
4
|
-
import { v as fromBREP } from "./faceFns-
|
|
5
|
-
import { s as toBREP } from "./shapeFns-
|
|
6
|
-
import { a as fuseAll } from "./booleanFns-
|
|
4
|
+
import { v as fromBREP } from "./faceFns-DFDKI39R.js";
|
|
5
|
+
import { s as toBREP } from "./shapeFns-Cf79IuMn.js";
|
|
6
|
+
import { a as fuseAll } from "./booleanFns-B-saLmi4.js";
|
|
7
7
|
//#region src/utils/uuid.ts
|
|
8
8
|
/** Generate a v4-style UUID string using `crypto.getRandomValues`. */
|
|
9
9
|
function uuidv() {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-q3dLIqqs.cjs");
|
|
2
2
|
const require_errors = require("./errors-DxoD7zgx.cjs");
|
|
3
3
|
const require_vecOps = require("./vecOps-CCnJt-yH.cjs");
|
|
4
|
-
const require_faceFns = require("./faceFns-
|
|
5
|
-
const require_shapeFns = require("./shapeFns-
|
|
6
|
-
const require_booleanFns = require("./booleanFns-
|
|
4
|
+
const require_faceFns = require("./faceFns-C8A9sCkb.cjs");
|
|
5
|
+
const require_shapeFns = require("./shapeFns-DPjMiDcX.cjs");
|
|
6
|
+
const require_booleanFns = require("./booleanFns-2zKQEuA8.cjs");
|
|
7
7
|
//#region src/utils/uuid.ts
|
|
8
8
|
/** Generate a v4-style UUID string using `crypto.getRandomValues`. */
|
|
9
9
|
function uuidv() {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-q3dLIqqs.cjs");
|
|
2
2
|
const require_vec3 = require("./vec3-CFwOI0ZI.cjs");
|
|
3
3
|
const require_errors = require("./errors-DxoD7zgx.cjs");
|
|
4
4
|
const require_arrayAccess = require("./arrayAccess-e4H9cBfh.cjs");
|
|
5
|
-
const require_blueprint = require("./blueprint-
|
|
5
|
+
const require_blueprint = require("./blueprint-79MQJVZa.cjs");
|
|
6
6
|
//#region src/io/objExportFns.ts
|
|
7
7
|
/** Read a vec3 from a typed array at the given vertex index. */
|
|
8
8
|
function vec3At(arr, i) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Z as getKernel, t as castShape } from "./shapeTypes-
|
|
1
|
+
import { Z as getKernel, t as castShape } from "./shapeTypes-DUC23pOr.js";
|
|
2
2
|
import { n as wasmIndex, t as vec3At$1 } from "./vec3-Dpha8d5k.js";
|
|
3
3
|
import { A as ok, b as err, r as ioError, t as BrepErrorCode } from "./errors-BJSTLaDI.js";
|
|
4
4
|
import { n as getAtOrThrow } from "./arrayAccess-DrUGPADn.js";
|
|
5
|
-
import { f as make2dSegmentCurve, m as make2dThreePointArc, s as make2dBezierCurve, t as Blueprint } from "./blueprint-
|
|
5
|
+
import { f as make2dSegmentCurve, m as make2dThreePointArc, s as make2dBezierCurve, t as Blueprint } from "./blueprint-CUvDkWLs.js";
|
|
6
6
|
//#region src/io/objExportFns.ts
|
|
7
7
|
/** Read a vec3 from a typed array at the given vertex index. */
|
|
8
8
|
function vec3At(arr, i) {
|
package/dist/io.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_meshFns = require("./meshFns-
|
|
3
|
-
const require_importFns = require("./importFns-
|
|
2
|
+
const require_meshFns = require("./meshFns-By5mtdo9.cjs");
|
|
3
|
+
const require_importFns = require("./importFns-B1ym1wuL.cjs");
|
|
4
4
|
exports.blueprintToDXF = require_importFns.blueprintToDXF;
|
|
5
5
|
exports.exportDXF = require_importFns.exportDXF;
|
|
6
6
|
exports.exportGlb = require_importFns.exportGlb;
|
package/dist/io.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as exportSTEP, r as exportSTL, t as exportIGES } from "./meshFns-
|
|
2
|
-
import { a as importSVG, c as blueprintToDXF, d as exportGltf, f as exportOBJ, i as exportSTEPConfigured, l as exportDXF, n as importSTEP, o as importSVGPathD, r as importSTL, s as exportThreeMF, t as importIGES, u as exportGlb } from "./importFns-
|
|
1
|
+
import { n as exportSTEP, r as exportSTL, t as exportIGES } from "./meshFns-BtNBXH5S.js";
|
|
2
|
+
import { a as importSVG, c as blueprintToDXF, d as exportGltf, f as exportOBJ, i as exportSTEPConfigured, l as exportDXF, n as importSTEP, o as importSVGPathD, r as importSTL, s as exportThreeMF, t as importIGES, u as exportGlb } from "./importFns-CwNl9Ll2.js";
|
|
3
3
|
export { blueprintToDXF, exportDXF, exportGlb, exportGltf, exportIGES, exportOBJ, exportSTEP, exportSTEPConfigured, exportSTL, exportThreeMF, importIGES, importSTEP, importSTL, importSVG, importSVGPathD };
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Type-safe interface for the brepkit WASM kernel (`BrepKernel`).
|
|
3
3
|
*
|
|
4
4
|
* AUTO-GENERATED by `npm run sync:brepkit-types`.
|
|
5
|
-
* Synced against `brepkit-wasm@2.
|
|
5
|
+
* Synced against `brepkit-wasm@2.99.0`.
|
|
6
6
|
*
|
|
7
7
|
* Methods not yet referenced in the adapter layer are tagged `@unwired`.
|
|
8
8
|
*
|
|
@@ -285,27 +285,29 @@ export interface BrepkitKernel {
|
|
|
285
285
|
getNurbsCurveData(edge: number): string;
|
|
286
286
|
/** @unwired */
|
|
287
287
|
getNurbsSurfaceData(face: number): string;
|
|
288
|
+
getNurbsSurfaceDataParity(face: number): string;
|
|
288
289
|
makeCircleEdge(cx: number, cy: number, cz: number, nx: number, ny: number, nz: number, radius: number): number;
|
|
289
290
|
/** @unwired */
|
|
290
291
|
makeCircleEdgeWithRef(cx: number, cy: number, cz: number, nx: number, ny: number, nz: number, radius: number, rx: number, ry: number, rz: number): number;
|
|
291
292
|
makeEllipseEdge(cx: number, cy: number, cz: number, nx: number, ny: number, nz: number, semiMajor: number, semiMinor: number): number;
|
|
292
293
|
makeEllipseEdgeWithRef(cx: number, cy: number, cz: number, nx: number, ny: number, nz: number, semiMajor: number, semiMinor: number, rx: number, ry: number, rz: number): number;
|
|
294
|
+
makePlanarFaceFromWire(wire: number): number;
|
|
293
295
|
/** @unwired */
|
|
294
296
|
sketchAddCircle(sketch: number, centerIdx: number, radius: number): number;
|
|
295
297
|
/** @unwired */
|
|
296
298
|
toBrepJson(solid: number): string;
|
|
297
299
|
transformFace(face: number, matrix: Float64Array | number[]): void;
|
|
298
|
-
/** @future Not in brepkit-wasm 2.
|
|
300
|
+
/** @future Not in brepkit-wasm 2.99.0. Referenced with feature detection in adapter. */
|
|
299
301
|
chamferAsymmetric?(solid: number, edgeHandles: Uint32Array | number[], d1: number, d2: number): number;
|
|
300
|
-
/** @future Not in brepkit-wasm 2.
|
|
302
|
+
/** @future Not in brepkit-wasm 2.99.0. Referenced with feature detection in adapter. */
|
|
301
303
|
compoundFuse?(solidIds: Uint32Array | number[]): number;
|
|
302
|
-
/** @future Not in brepkit-wasm 2.
|
|
304
|
+
/** @future Not in brepkit-wasm 2.99.0. Referenced with feature detection in adapter. */
|
|
303
305
|
copyEdge?(edge: number): number;
|
|
304
|
-
/** @future Not in brepkit-wasm 2.
|
|
306
|
+
/** @future Not in brepkit-wasm 2.99.0. Referenced with feature detection in adapter. */
|
|
305
307
|
copyFace?(face: number): number;
|
|
306
|
-
/** @future Not in brepkit-wasm 2.
|
|
308
|
+
/** @future Not in brepkit-wasm 2.99.0. Referenced with feature detection in adapter. */
|
|
307
309
|
transformEdge?(edge: number, matrix: Float64Array | number[]): void;
|
|
308
|
-
/** @future Not in brepkit-wasm 2.
|
|
310
|
+
/** @future Not in brepkit-wasm 2.99.0. Referenced with feature detection in adapter. */
|
|
309
311
|
validateSolidDetails?(solid: number): string;
|
|
310
312
|
/** Release the entire arena. */
|
|
311
313
|
free(): void;
|
|
@@ -4,7 +4,7 @@ import { Vec3 } from '../../utils/vec3.js';
|
|
|
4
4
|
export declare function makeVertex(bk: BrepkitKernel, x: number, y: number, z: number): KernelShape;
|
|
5
5
|
export declare function makeEdge(bk: BrepkitKernel, curve: KernelType, start?: number, end?: number): KernelShape;
|
|
6
6
|
export declare function makeWire(bk: BrepkitKernel, edges: KernelShape[]): KernelShape;
|
|
7
|
-
export declare function makeFace(bk: BrepkitKernel, wire: KernelShape,
|
|
7
|
+
export declare function makeFace(bk: BrepkitKernel, wire: KernelShape, planar?: boolean): KernelShape;
|
|
8
8
|
export declare function makeBox(bk: BrepkitKernel, width: number, height: number, depth: number): KernelShape;
|
|
9
9
|
export declare function makeRectangle(bk: BrepkitKernel, width: number, height: number): KernelShape;
|
|
10
10
|
export declare function makeCylinder(bk: BrepkitKernel, radius: number, height: number, center?: [number, number, number], direction?: [number, number, number]): KernelShape;
|
|
@@ -55,8 +55,14 @@ export declare function projectEdges(bk: BrepkitKernel, shape: KernelShape, _cam
|
|
|
55
55
|
};
|
|
56
56
|
/** brepkit does not support NURBS introspection on edges. Always returns null. */
|
|
57
57
|
export declare function getNurbsCurveData(_bk: BrepkitKernel, _edge: KernelShape): NurbsCurveData | null;
|
|
58
|
-
/**
|
|
59
|
-
|
|
58
|
+
/**
|
|
59
|
+
* Read-only B-Spline/NURBS surface data for a face.
|
|
60
|
+
*
|
|
61
|
+
* Type-gated: analytic faces (plane, cylinder, cone, sphere, torus) return
|
|
62
|
+
* `null`; only intrinsically free-form faces yield a record. The kernel emits
|
|
63
|
+
* distinct knots paired with multiplicities, matching {@link NurbsSurfaceData}.
|
|
64
|
+
*/
|
|
65
|
+
export declare function getNurbsSurfaceData(bk: BrepkitKernel, face: KernelShape): NurbsSurfaceData | null;
|
|
60
66
|
/** Co-located factory: returns the geometry-query slice of {@link KernelAdapter} bound to `bk`. */
|
|
61
67
|
export declare function makeGeometryOps(bk: BrepkitKernel): {
|
|
62
68
|
vertexPosition: (vertex: any) => [number, number, number];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-q3dLIqqs.cjs");
|
|
2
2
|
const require_errors = require("./errors-DxoD7zgx.cjs");
|
|
3
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
4
|
-
const require_faceFns = require("./faceFns-
|
|
3
|
+
const require_topologyQueryFns = require("./topologyQueryFns-C38cIHle.cjs");
|
|
4
|
+
const require_faceFns = require("./faceFns-C8A9sCkb.cjs");
|
|
5
5
|
//#region src/measurement/measureCache.ts
|
|
6
6
|
var cache = /* @__PURE__ */ new WeakMap();
|
|
7
7
|
function getCachedMeasurement(shape, key) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Z as getKernel } from "./shapeTypes-
|
|
1
|
+
import { Z as getKernel } from "./shapeTypes-DUC23pOr.js";
|
|
2
2
|
import { A as ok, b as err, d as validationError, t as BrepErrorCode } from "./errors-BJSTLaDI.js";
|
|
3
|
-
import { v as kernelCallRaw } from "./topologyQueryFns-
|
|
4
|
-
import { p as uvBounds } from "./faceFns-
|
|
3
|
+
import { v as kernelCallRaw } from "./topologyQueryFns-BELdxJ8R.js";
|
|
4
|
+
import { p as uvBounds } from "./faceFns-DFDKI39R.js";
|
|
5
5
|
//#region src/measurement/measureCache.ts
|
|
6
6
|
var cache = /* @__PURE__ */ new WeakMap();
|
|
7
7
|
function getCachedMeasurement(shape, key) {
|
package/dist/measurement.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_measureFns = require("./measureFns-
|
|
2
|
+
const require_measureFns = require("./measureFns-B7x2vp6b.cjs");
|
|
3
3
|
exports.createDistanceQuery = require_measureFns.createDistanceQuery;
|
|
4
4
|
exports.measureArea = require_measureFns.measureArea;
|
|
5
5
|
exports.measureDistance = require_measureFns.measureDistance;
|
package/dist/measurement.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as measureDistance, c as measureLinearProps, d as measureVolumeProps, l as measureSurfaceProps, n as measureArea, o as measureDistanceProps, s as measureLength, t as createDistanceQuery, u as measureVolume } from "./measureFns-
|
|
1
|
+
import { a as measureDistance, c as measureLinearProps, d as measureVolumeProps, l as measureSurfaceProps, n as measureArea, o as measureDistanceProps, s as measureLength, t as createDistanceQuery, u as measureVolume } from "./measureFns-CeEybpyd.js";
|
|
2
2
|
export { createDistanceQuery, measureArea, measureDistance, measureDistanceProps, measureLength, measureLinearProps, measureSurfaceProps, measureVolume, measureVolumeProps };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Z as getKernel } from "./shapeTypes-
|
|
1
|
+
import { Z as getKernel } from "./shapeTypes-DUC23pOr.js";
|
|
2
2
|
import { A as ok, b as err, r as ioError } from "./errors-BJSTLaDI.js";
|
|
3
|
-
import { O as getFaceOrigins } from "./shapeFns-
|
|
3
|
+
import { O as getFaceOrigins } from "./shapeFns-Cf79IuMn.js";
|
|
4
4
|
//#region src/topology/meshCache.ts
|
|
5
5
|
/**
|
|
6
6
|
* Build a parameter key for the inner cache map (excludes shape identity).
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-q3dLIqqs.cjs");
|
|
2
2
|
const require_errors = require("./errors-DxoD7zgx.cjs");
|
|
3
|
-
const require_shapeFns = require("./shapeFns-
|
|
3
|
+
const require_shapeFns = require("./shapeFns-DPjMiDcX.cjs");
|
|
4
4
|
//#region src/topology/meshCache.ts
|
|
5
5
|
/**
|
|
6
6
|
* Build a parameter key for the inner cache map (excludes shape identity).
|
package/dist/operations.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_historyFns = require("./historyFns-
|
|
3
|
-
const require_extrudeFns = require("./extrudeFns-
|
|
2
|
+
const require_historyFns = require("./historyFns-D0K337z6.cjs");
|
|
3
|
+
const require_extrudeFns = require("./extrudeFns-zngMBHOx.cjs");
|
|
4
4
|
exports.addChild = require_historyFns.addChild;
|
|
5
5
|
exports.addStep = require_historyFns.addStep;
|
|
6
6
|
exports.circularPattern = require_historyFns.circularPattern;
|
package/dist/operations.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { C as walkAssembly, D as exportAssemblySTEP, E as linearPattern, O as createAssembly, S as updateNode, T as gridPattern, _ as collectShapes, a as findStep, b as findNode, c as registerOperation, d as replayHistory, g as addChild, h as undoLast, l as registerShape, m as stepsFrom, n as createHistory, o as getShape, p as stepCount, r as createRegistry, s as modifyStep, t as addStep, u as replayFrom, v as countNodes, w as circularPattern, x as removeChild, y as createAssemblyNode } from "./historyFns-
|
|
2
|
-
import { c as sweep, i as complexExtrude, l as twistExtrude, s as supportExtrude } from "./extrudeFns-
|
|
1
|
+
import { C as walkAssembly, D as exportAssemblySTEP, E as linearPattern, O as createAssembly, S as updateNode, T as gridPattern, _ as collectShapes, a as findStep, b as findNode, c as registerOperation, d as replayHistory, g as addChild, h as undoLast, l as registerShape, m as stepsFrom, n as createHistory, o as getShape, p as stepCount, r as createRegistry, s as modifyStep, t as addStep, u as replayFrom, v as countNodes, w as circularPattern, x as removeChild, y as createAssemblyNode } from "./historyFns-CbT3UJYn.js";
|
|
2
|
+
import { c as sweep, i as complexExtrude, l as twistExtrude, s as supportExtrude } from "./extrudeFns-CMGE0i5l.js";
|
|
3
3
|
export { addChild, addStep, circularPattern, collectShapes, complexExtrude, countNodes, createAssembly, createAssemblyNode, createHistory, createRegistry, exportAssemblySTEP, findNode, findStep, getShape as getHistoryShape, gridPattern, linearPattern, modifyStep, registerOperation, registerShape, removeChild, replayFrom, replayHistory, stepCount, stepsFrom, supportExtrude, sweep, twistExtrude, undoLast, updateNode, walkAssembly };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Z as getKernel, _ as isSolid, c as createSolid, h as isShape3D, p as isFace, r as castShapeWithKnownType, t as castShape, x as isClosedWire, y as isWire } from "./shapeTypes-
|
|
1
|
+
import { Z as getKernel, _ as isSolid, c as createSolid, h as isShape3D, p as isFace, r as castShapeWithKnownType, t as castShape, x as isClosedWire, y as isWire } from "./shapeTypes-DUC23pOr.js";
|
|
2
2
|
import { A as ok, T as isOk, b as err, d as validationError, i as kernelError, l as typeCastError, t as BrepErrorCode, v as andThen, w as isErr } from "./errors-BJSTLaDI.js";
|
|
3
|
-
import { c as getOrCreateCache, d as invalidateShapeCache, i as getCachedIsValid, o as getEdges, s as getFaces, u as getWires } from "./topologyQueryFns-
|
|
3
|
+
import { c as getOrCreateCache, d as invalidateShapeCache, i as getCachedIsValid, o as getEdges, s as getFaces, u as getWires } from "./topologyQueryFns-BELdxJ8R.js";
|
|
4
4
|
import { n as HASH_CODE_MAX, t as DEG2RAD } from "./constants-ITRzCnCp.js";
|
|
5
|
-
import { _ as downcast } from "./faceFns-
|
|
6
|
-
import { _ as propagateAllMetadata, g as collectInputFaceHashes, h as translate } from "./shapeFns-
|
|
5
|
+
import { _ as downcast } from "./faceFns-DFDKI39R.js";
|
|
6
|
+
import { _ as propagateAllMetadata, g as collectInputFaceHashes, h as translate } from "./shapeFns-Cf79IuMn.js";
|
|
7
7
|
import { t as firstOrThrow } from "./arrayAccess-DrUGPADn.js";
|
|
8
|
-
import { _ as makeThreePointArc, a as makeNonPlanarFace, c as makeBSplineApproximation, d as makeCircle, f as makeEllipse, g as makeTangentArc, h as makeLine, i as makeNewFaceWithinFace, m as makeHelix, o as makePolygon, p as makeEllipseArc, r as makeFace, s as assembleWire, t as addHolesInFace, u as makeBezierCurve } from "./surfaceBuilders-
|
|
9
|
-
import { a as fuseAll, i as fuse, n as cut, r as cutAll } from "./booleanFns-
|
|
10
|
-
import { a as makeOffset, c as makeTorus, i as makeEllipsoid, l as makeVertex, n as makeCone, o as makeSolid, r as makeCylinder, s as makeSphere, t as makeCompound, u as weldShellsAndFaces } from "./solidBuilders-
|
|
8
|
+
import { _ as makeThreePointArc, a as makeNonPlanarFace, c as makeBSplineApproximation, d as makeCircle, f as makeEllipse, g as makeTangentArc, h as makeLine, i as makeNewFaceWithinFace, m as makeHelix, o as makePolygon, p as makeEllipseArc, r as makeFace, s as assembleWire, t as addHolesInFace, u as makeBezierCurve } from "./surfaceBuilders-CRTJ3eLf.js";
|
|
9
|
+
import { a as fuseAll, i as fuse, n as cut, r as cutAll } from "./booleanFns-B-saLmi4.js";
|
|
10
|
+
import { a as makeOffset, c as makeTorus, i as makeEllipsoid, l as makeVertex, n as makeCone, o as makeSolid, r as makeCylinder, s as makeSphere, t as makeCompound, u as weldShellsAndFaces } from "./solidBuilders-CwwLuRz8.js";
|
|
11
11
|
//#region src/topology/threeHelpers.ts
|
|
12
12
|
/**
|
|
13
13
|
* Convert a ShapeMesh into BufferGeometry-compatible typed arrays.
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-q3dLIqqs.cjs");
|
|
2
2
|
const require_errors = require("./errors-DxoD7zgx.cjs");
|
|
3
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
3
|
+
const require_topologyQueryFns = require("./topologyQueryFns-C38cIHle.cjs");
|
|
4
4
|
const require_constants = require("./constants-BOVyEYGH.cjs");
|
|
5
|
-
const require_faceFns = require("./faceFns-
|
|
6
|
-
const require_shapeFns = require("./shapeFns-
|
|
5
|
+
const require_faceFns = require("./faceFns-C8A9sCkb.cjs");
|
|
6
|
+
const require_shapeFns = require("./shapeFns-DPjMiDcX.cjs");
|
|
7
7
|
const require_arrayAccess = require("./arrayAccess-e4H9cBfh.cjs");
|
|
8
|
-
const require_surfaceBuilders = require("./surfaceBuilders-
|
|
9
|
-
const require_booleanFns = require("./booleanFns-
|
|
10
|
-
const require_solidBuilders = require("./solidBuilders-
|
|
8
|
+
const require_surfaceBuilders = require("./surfaceBuilders-BJX_D1VO.cjs");
|
|
9
|
+
const require_booleanFns = require("./booleanFns-2zKQEuA8.cjs");
|
|
10
|
+
const require_solidBuilders = require("./solidBuilders-BoeIWGQs.cjs");
|
|
11
11
|
//#region src/topology/threeHelpers.ts
|
|
12
12
|
/**
|
|
13
13
|
* Convert a ShapeMesh into BufferGeometry-compatible typed arrays.
|
package/dist/projection.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_cameraFns = require("./cameraFns-
|
|
2
|
+
const require_cameraFns = require("./cameraFns-C0uWLB4t.cjs");
|
|
3
3
|
exports.PROJECTION_PLANES = require_cameraFns.PROJECTION_PLANES;
|
|
4
4
|
exports.cameraFromPlane = require_cameraFns.cameraFromPlane;
|
|
5
5
|
exports.cameraLookAt = require_cameraFns.cameraLookAt;
|
package/dist/projection.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as makeProjectedEdges, i as projectEdges, n as cameraLookAt, o as PROJECTION_PLANES, r as createCamera, s as isProjectionPlane, t as cameraFromPlane } from "./cameraFns-
|
|
1
|
+
import { a as makeProjectedEdges, i as projectEdges, n as cameraLookAt, o as PROJECTION_PLANES, r as createCamera, s as isProjectionPlane, t as cameraFromPlane } from "./cameraFns-ILz-I1EN.js";
|
|
2
2
|
export { PROJECTION_PLANES, cameraFromPlane, cameraLookAt, createCamera, isProjectionPlane, makeProjectedEdges, projectEdges };
|
package/dist/query.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_helpers = require("./helpers-
|
|
3
|
-
const require_cornerFinder = require("./cornerFinder-
|
|
2
|
+
const require_helpers = require("./helpers-D-mko0qh.cjs");
|
|
3
|
+
const require_cornerFinder = require("./cornerFinder-DheJjEdJ.cjs");
|
|
4
4
|
exports.cornerFinder = require_cornerFinder.cornerFinder;
|
|
5
5
|
exports.edgeFinder = require_helpers.edgeFinder;
|
|
6
6
|
exports.faceFinder = require_helpers.faceFinder;
|
package/dist/query.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as edgeFinder, r as faceFinder, t as getSingleFace } from "./helpers-
|
|
2
|
-
import { t as cornerFinder } from "./cornerFinder-
|
|
1
|
+
import { n as edgeFinder, r as faceFinder, t as getSingleFace } from "./helpers-POBaax19.js";
|
|
2
|
+
import { t as cornerFinder } from "./cornerFinder-DnbKeXpc.js";
|
|
3
3
|
export { cornerFinder, edgeFinder, faceFinder, getSingleFace };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Z as getKernel, t as castShape } from "./shapeTypes-
|
|
1
|
+
import { Z as getKernel, t as castShape } from "./shapeTypes-DUC23pOr.js";
|
|
2
2
|
import { A as ok, b as err, d as validationError, t as BrepErrorCode } from "./errors-BJSTLaDI.js";
|
|
3
|
-
import { _ as kernelCall, c as getOrCreateCache, r as getCacheEntry, s as getFaces, v as kernelCallRaw } from "./topologyQueryFns-
|
|
3
|
+
import { _ as kernelCall, c as getOrCreateCache, r as getCacheEntry, s as getFaces, v as kernelCallRaw } from "./topologyQueryFns-BELdxJ8R.js";
|
|
4
4
|
import { n as HASH_CODE_MAX, t as DEG2RAD } from "./constants-ITRzCnCp.js";
|
|
5
5
|
//#region src/topology/metadata/originTrackingFns.ts
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-q3dLIqqs.cjs");
|
|
2
2
|
const require_errors = require("./errors-DxoD7zgx.cjs");
|
|
3
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
3
|
+
const require_topologyQueryFns = require("./topologyQueryFns-C38cIHle.cjs");
|
|
4
4
|
const require_constants = require("./constants-BOVyEYGH.cjs");
|
|
5
5
|
//#region src/topology/metadata/originTrackingFns.ts
|
|
6
6
|
/**
|
package/dist/shapeRef.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_shapeRefFns = require("./shapeRefFns-
|
|
2
|
+
const require_shapeRefFns = require("./shapeRefFns-hCaw9c68.cjs");
|
|
3
3
|
exports.assignRoles = require_shapeRefFns.assignRoles;
|
|
4
4
|
exports.captureHint = require_shapeRefFns.captureHint;
|
|
5
5
|
exports.createRef = require_shapeRefFns.createRef;
|
package/dist/shapeRef.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as updateRoles, i as resolveRef, n as captureHint, o as defaultScorer, r as createRef, t as assignRoles } from "./shapeRefFns-
|
|
1
|
+
import { a as updateRoles, i as resolveRef, n as captureHint, o as defaultScorer, r as createRef, t as assignRoles } from "./shapeRefFns-sE77hIRw.js";
|
|
2
2
|
export { assignRoles, captureHint, createRef, defaultScorer, resolveRef, updateRoles };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const require_vec3 = require("./vec3-CFwOI0ZI.cjs");
|
|
2
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
3
|
-
const require_faceFns = require("./faceFns-
|
|
4
|
-
const require_shapeFns = require("./shapeFns-
|
|
5
|
-
const require_measureFns = require("./measureFns-
|
|
2
|
+
const require_topologyQueryFns = require("./topologyQueryFns-C38cIHle.cjs");
|
|
3
|
+
const require_faceFns = require("./faceFns-C8A9sCkb.cjs");
|
|
4
|
+
const require_shapeFns = require("./shapeFns-DPjMiDcX.cjs");
|
|
5
|
+
const require_measureFns = require("./measureFns-B7x2vp6b.cjs");
|
|
6
6
|
//#region src/topology/shapeRef/scoring.ts
|
|
7
7
|
/**
|
|
8
8
|
* Default face scorer combining surface type, normal alignment, centroid proximity,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as wasmIndex } from "./vec3-Dpha8d5k.js";
|
|
2
|
-
import { s as getFaces } from "./topologyQueryFns-
|
|
3
|
-
import { c as normalAt, n as faceCenter, r as faceGeomType } from "./faceFns-
|
|
4
|
-
import { n as getHashCode } from "./shapeFns-
|
|
5
|
-
import { n as measureArea } from "./measureFns-
|
|
2
|
+
import { s as getFaces } from "./topologyQueryFns-BELdxJ8R.js";
|
|
3
|
+
import { c as normalAt, n as faceCenter, r as faceGeomType } from "./faceFns-DFDKI39R.js";
|
|
4
|
+
import { n as getHashCode } from "./shapeFns-Cf79IuMn.js";
|
|
5
|
+
import { n as measureArea } from "./measureFns-CeEybpyd.js";
|
|
6
6
|
//#region src/topology/shapeRef/scoring.ts
|
|
7
7
|
/**
|
|
8
8
|
* Default face scorer combining surface type, normal alignment, centroid proximity,
|
|
@@ -6233,9 +6233,15 @@ function projectEdges(bk, shape, _cameraOrigin, _cameraDirection, _cameraXAxis)
|
|
|
6233
6233
|
function getNurbsCurveData(_bk, _edge) {
|
|
6234
6234
|
return null;
|
|
6235
6235
|
}
|
|
6236
|
-
/**
|
|
6237
|
-
|
|
6238
|
-
|
|
6236
|
+
/**
|
|
6237
|
+
* Read-only B-Spline/NURBS surface data for a face.
|
|
6238
|
+
*
|
|
6239
|
+
* Type-gated: analytic faces (plane, cylinder, cone, sphere, torus) return
|
|
6240
|
+
* `null`; only intrinsically free-form faces yield a record. The kernel emits
|
|
6241
|
+
* distinct knots paired with multiplicities, matching {@link NurbsSurfaceData}.
|
|
6242
|
+
*/
|
|
6243
|
+
function getNurbsSurfaceData(bk, face) {
|
|
6244
|
+
return JSON.parse(bk.getNurbsSurfaceDataParity(unwrap(face, "face")));
|
|
6239
6245
|
}
|
|
6240
6246
|
/** Co-located factory: returns the geometry-query slice of {@link KernelAdapter} bound to `bk`. */
|
|
6241
6247
|
function makeGeometryOps(bk) {
|
|
@@ -6863,13 +6869,10 @@ function makeWire(bk, edges) {
|
|
|
6863
6869
|
}
|
|
6864
6870
|
return wireHandle(bk.makeWire(edgeIds, true));
|
|
6865
6871
|
}
|
|
6866
|
-
function makeFace(bk, wire,
|
|
6872
|
+
function makeFace(bk, wire, planar) {
|
|
6867
6873
|
const h = wire;
|
|
6868
|
-
|
|
6869
|
-
|
|
6870
|
-
return faceHandle(bk.makeFaceFromWire(wireId));
|
|
6871
|
-
}
|
|
6872
|
-
return faceHandle(bk.makeFaceFromWire(unwrap(wire, "wire")));
|
|
6874
|
+
const wireId = h.type === "edge" ? bk.makeWire([h.id], true) : unwrap(wire, "wire");
|
|
6875
|
+
return faceHandle(planar ? bk.makePlanarFaceFromWire(wireId) : bk.makeFaceFromWire(wireId));
|
|
6873
6876
|
}
|
|
6874
6877
|
function makeBox(bk, width, height, depth) {
|
|
6875
6878
|
return solidHandle(bk.makeBox(width, height, depth));
|
|
@@ -7072,7 +7075,7 @@ function solidFromShell(bk, shell) {
|
|
|
7072
7075
|
return solidHandle(bk.solidFromShell(unwrap(shell, "shell")));
|
|
7073
7076
|
}
|
|
7074
7077
|
function makeNonPlanarFace(bk, wire) {
|
|
7075
|
-
return makeFace(bk, wire,
|
|
7078
|
+
return makeFace(bk, wire, false);
|
|
7076
7079
|
}
|
|
7077
7080
|
function addHolesInFace(bk, face, holeWires) {
|
|
7078
7081
|
const wireIds = holeWires.map((w) => unwrap(w, "wire"));
|
|
@@ -7082,7 +7085,7 @@ function removeHolesFromFace(bk, face) {
|
|
|
7082
7085
|
return faceHandle(bk.removeHolesFromFace(unwrap(face, "face")));
|
|
7083
7086
|
}
|
|
7084
7087
|
function makeFaceOnSurface(bk, _surface, wire) {
|
|
7085
|
-
return makeFace(bk, wire,
|
|
7088
|
+
return makeFace(bk, wire, false);
|
|
7086
7089
|
}
|
|
7087
7090
|
function bsplineSurface(bk, points, rows, cols) {
|
|
7088
7091
|
const coords = [];
|
|
@@ -6237,9 +6237,15 @@ function projectEdges(bk, shape, _cameraOrigin, _cameraDirection, _cameraXAxis)
|
|
|
6237
6237
|
function getNurbsCurveData(_bk, _edge) {
|
|
6238
6238
|
return null;
|
|
6239
6239
|
}
|
|
6240
|
-
/**
|
|
6241
|
-
|
|
6242
|
-
|
|
6240
|
+
/**
|
|
6241
|
+
* Read-only B-Spline/NURBS surface data for a face.
|
|
6242
|
+
*
|
|
6243
|
+
* Type-gated: analytic faces (plane, cylinder, cone, sphere, torus) return
|
|
6244
|
+
* `null`; only intrinsically free-form faces yield a record. The kernel emits
|
|
6245
|
+
* distinct knots paired with multiplicities, matching {@link NurbsSurfaceData}.
|
|
6246
|
+
*/
|
|
6247
|
+
function getNurbsSurfaceData(bk, face) {
|
|
6248
|
+
return JSON.parse(bk.getNurbsSurfaceDataParity(unwrap(face, "face")));
|
|
6243
6249
|
}
|
|
6244
6250
|
/** Co-located factory: returns the geometry-query slice of {@link KernelAdapter} bound to `bk`. */
|
|
6245
6251
|
function makeGeometryOps(bk) {
|
|
@@ -6867,13 +6873,10 @@ function makeWire(bk, edges) {
|
|
|
6867
6873
|
}
|
|
6868
6874
|
return wireHandle(bk.makeWire(edgeIds, true));
|
|
6869
6875
|
}
|
|
6870
|
-
function makeFace(bk, wire,
|
|
6876
|
+
function makeFace(bk, wire, planar) {
|
|
6871
6877
|
const h = wire;
|
|
6872
|
-
|
|
6873
|
-
|
|
6874
|
-
return faceHandle(bk.makeFaceFromWire(wireId));
|
|
6875
|
-
}
|
|
6876
|
-
return faceHandle(bk.makeFaceFromWire(unwrap(wire, "wire")));
|
|
6878
|
+
const wireId = h.type === "edge" ? bk.makeWire([h.id], true) : unwrap(wire, "wire");
|
|
6879
|
+
return faceHandle(planar ? bk.makePlanarFaceFromWire(wireId) : bk.makeFaceFromWire(wireId));
|
|
6877
6880
|
}
|
|
6878
6881
|
function makeBox(bk, width, height, depth) {
|
|
6879
6882
|
return solidHandle(bk.makeBox(width, height, depth));
|
|
@@ -7076,7 +7079,7 @@ function solidFromShell(bk, shell) {
|
|
|
7076
7079
|
return solidHandle(bk.solidFromShell(unwrap(shell, "shell")));
|
|
7077
7080
|
}
|
|
7078
7081
|
function makeNonPlanarFace(bk, wire) {
|
|
7079
|
-
return makeFace(bk, wire,
|
|
7082
|
+
return makeFace(bk, wire, false);
|
|
7080
7083
|
}
|
|
7081
7084
|
function addHolesInFace(bk, face, holeWires) {
|
|
7082
7085
|
const wireIds = holeWires.map((w) => unwrap(w, "wire"));
|
|
@@ -7086,7 +7089,7 @@ function removeHolesFromFace(bk, face) {
|
|
|
7086
7089
|
return faceHandle(bk.removeHolesFromFace(unwrap(face, "face")));
|
|
7087
7090
|
}
|
|
7088
7091
|
function makeFaceOnSurface(bk, _surface, wire) {
|
|
7089
|
-
return makeFace(bk, wire,
|
|
7092
|
+
return makeFace(bk, wire, false);
|
|
7090
7093
|
}
|
|
7091
7094
|
function bsplineSurface(bk, points, rows, cols) {
|
|
7092
7095
|
const coords = [];
|
package/dist/sketching.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_textBlueprints = require("./textBlueprints-
|
|
3
|
-
const require_blueprintSketcher = require("./blueprintSketcher-
|
|
4
|
-
const require_drawFns = require("./drawFns-
|
|
2
|
+
const require_textBlueprints = require("./textBlueprints-CuPkJa3W.cjs");
|
|
3
|
+
const require_blueprintSketcher = require("./blueprintSketcher-CoefmhkD.cjs");
|
|
4
|
+
const require_drawFns = require("./drawFns-rCnf1L3r.cjs");
|
|
5
5
|
//#region src/sketching.ts
|
|
6
6
|
/**
|
|
7
7
|
* brepjs/sketching — Sketcher, Drawing, and sketch-to-shape operations.
|
package/dist/sketching.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as BaseSketcher2d, t as BlueprintSketcher } from "./blueprintSketcher-
|
|
2
|
-
import { A as sketchEllipse, C as DrawingPen, D as makeBaseBox, E as deserializeDrawing, F as sketchRectangle, I as sketchRoundedRectangle, L as FaceSketcher, M as sketchHelix, N as sketchParametricFunction, O as polysideInnerRadius, P as sketchPolysides, R as Sketcher, S as drawText, T as Drawing, _ as drawPolysides, a as drawingIntersect, b as drawSingleCircle, c as rotateDrawing, d as drawFaceOutline, f as drawProjection, g as drawPointsInterpolation, h as drawParametricFunction, i as drawingFuse, j as sketchFaceOffset, k as sketchCircle, l as scaleDrawing, m as drawEllipse, n as drawingCut, o as drawingToSketchOnPlane, p as drawCircle, r as drawingFillet, s as mirrorDrawing, t as drawingChamfer, u as translateDrawing, v as drawRectangle, w as draw, x as drawSingleEllipse, y as drawRoundedRectangle } from "./drawFns-
|
|
3
|
-
import { a as Sketch, c as compoundSketchLoft, d as sketchFace, f as sketchLoft, h as sketchWires, i as Sketches, l as compoundSketchRevolve, m as sketchSweep, o as compoundSketchExtrude, p as sketchRevolve, s as compoundSketchFace, u as sketchExtrude, v as CompoundSketch } from "./textBlueprints-
|
|
1
|
+
import { n as BaseSketcher2d, t as BlueprintSketcher } from "./blueprintSketcher-DiJ7nX5P.js";
|
|
2
|
+
import { A as sketchEllipse, C as DrawingPen, D as makeBaseBox, E as deserializeDrawing, F as sketchRectangle, I as sketchRoundedRectangle, L as FaceSketcher, M as sketchHelix, N as sketchParametricFunction, O as polysideInnerRadius, P as sketchPolysides, R as Sketcher, S as drawText, T as Drawing, _ as drawPolysides, a as drawingIntersect, b as drawSingleCircle, c as rotateDrawing, d as drawFaceOutline, f as drawProjection, g as drawPointsInterpolation, h as drawParametricFunction, i as drawingFuse, j as sketchFaceOffset, k as sketchCircle, l as scaleDrawing, m as drawEllipse, n as drawingCut, o as drawingToSketchOnPlane, p as drawCircle, r as drawingFillet, s as mirrorDrawing, t as drawingChamfer, u as translateDrawing, v as drawRectangle, w as draw, x as drawSingleEllipse, y as drawRoundedRectangle } from "./drawFns-CJamg2C6.js";
|
|
3
|
+
import { a as Sketch, c as compoundSketchLoft, d as sketchFace, f as sketchLoft, h as sketchWires, i as Sketches, l as compoundSketchRevolve, m as sketchSweep, o as compoundSketchExtrude, p as sketchRevolve, s as compoundSketchFace, u as sketchExtrude, v as CompoundSketch } from "./textBlueprints-OEB7VKBv.js";
|
|
4
4
|
//#region src/sketching.ts
|
|
5
5
|
/**
|
|
6
6
|
* brepjs/sketching — Sketcher, Drawing, and sketch-to-shape operations.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-q3dLIqqs.cjs");
|
|
2
2
|
const require_errors = require("./errors-DxoD7zgx.cjs");
|
|
3
|
-
const require_faceFns = require("./faceFns-
|
|
3
|
+
const require_faceFns = require("./faceFns-C8A9sCkb.cjs");
|
|
4
4
|
//#region src/topology/shapeUtils.ts
|
|
5
5
|
/**
|
|
6
6
|
* Shape assembly utilities — welding and sewing operations.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Z as getKernel, _ as isSolid, c as createSolid, g as isShell, h as isShape3D, i as createCompound, l as createVertex } from "./shapeTypes-
|
|
1
|
+
import { Z as getKernel, _ as isSolid, c as createSolid, g as isShell, h as isShape3D, i as createCompound, l as createVertex } from "./shapeTypes-DUC23pOr.js";
|
|
2
2
|
import { A as ok, R as unwrap, b as err, l as typeCastError, v as andThen } from "./errors-BJSTLaDI.js";
|
|
3
|
-
import { _ as downcast, g as cast } from "./faceFns-
|
|
3
|
+
import { _ as downcast, g as cast } from "./faceFns-DFDKI39R.js";
|
|
4
4
|
//#region src/topology/shapeUtils.ts
|
|
5
5
|
/**
|
|
6
6
|
* Shape assembly utilities — welding and sewing operations.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-q3dLIqqs.cjs");
|
|
2
2
|
const require_errors = require("./errors-DxoD7zgx.cjs");
|
|
3
|
-
const require_faceFns = require("./faceFns-
|
|
3
|
+
const require_faceFns = require("./faceFns-C8A9sCkb.cjs");
|
|
4
4
|
//#region src/utils/range.ts
|
|
5
5
|
/** Generate an array of integers `[0, 1, …, len - 1]`. */
|
|
6
6
|
function range(len) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Z as getKernel, a as createEdge, o as createFace, p as isFace, u as createWire, w as isPlanarFace } from "./shapeTypes-
|
|
1
|
+
import { Z as getKernel, a as createEdge, o as createFace, p as isFace, u as createWire, w as isPlanarFace } from "./shapeTypes-DUC23pOr.js";
|
|
2
2
|
import { A as ok, b as err, d as validationError, i as kernelError, v as andThen } from "./errors-BJSTLaDI.js";
|
|
3
|
-
import { g as cast, l as outerWire } from "./faceFns-
|
|
3
|
+
import { g as cast, l as outerWire } from "./faceFns-DFDKI39R.js";
|
|
4
4
|
//#region src/utils/range.ts
|
|
5
5
|
/** Generate an array of integers `[0, 1, …, len - 1]`. */
|
|
6
6
|
function range(len) {
|
package/dist/text.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_textBlueprints = require("./textBlueprints-
|
|
3
|
-
const require_textMetrics = require("./textMetrics-
|
|
2
|
+
const require_textBlueprints = require("./textBlueprints-CuPkJa3W.cjs");
|
|
3
|
+
const require_textMetrics = require("./textMetrics-boJWbnQk.cjs");
|
|
4
4
|
exports.fontMetrics = require_textMetrics.fontMetrics;
|
|
5
5
|
exports.getFont = require_textBlueprints.getFont;
|
|
6
6
|
exports.loadFont = require_textBlueprints.loadFont;
|
package/dist/text.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as getFont, r as loadFont, t as textBlueprints } from "./textBlueprints-
|
|
2
|
-
import { n as textMetrics, r as sketchText, t as fontMetrics } from "./textMetrics-
|
|
1
|
+
import { n as getFont, r as loadFont, t as textBlueprints } from "./textBlueprints-OEB7VKBv.js";
|
|
2
|
+
import { n as textMetrics, r as sketchText, t as fontMetrics } from "./textMetrics-lTkakQKC.js";
|
|
3
3
|
export { fontMetrics, getFont, loadFont, sketchText, textBlueprints, textMetrics };
|
|
@@ -29,18 +29,18 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
29
29
|
enumerable: true
|
|
30
30
|
}) : target, mod));
|
|
31
31
|
//#endregion
|
|
32
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
32
|
+
const require_shapeTypes = require("./shapeTypes-q3dLIqqs.cjs");
|
|
33
33
|
const require_errors = require("./errors-DxoD7zgx.cjs");
|
|
34
34
|
const require_types = require("./types-KjA8tY4Y.cjs");
|
|
35
35
|
const require_vecOps = require("./vecOps-CCnJt-yH.cjs");
|
|
36
36
|
const require_planeOps = require("./planeOps-C6wxugvC.cjs");
|
|
37
|
-
const require_faceFns = require("./faceFns-
|
|
38
|
-
const require_curveFns = require("./curveFns-
|
|
37
|
+
const require_faceFns = require("./faceFns-C8A9sCkb.cjs");
|
|
38
|
+
const require_curveFns = require("./curveFns-BW6fpApo.cjs");
|
|
39
39
|
const require_arrayAccess = require("./arrayAccess-e4H9cBfh.cjs");
|
|
40
|
-
const require_surfaceBuilders = require("./surfaceBuilders-
|
|
41
|
-
const require_blueprintSketcher = require("./blueprintSketcher-
|
|
42
|
-
const require_solidBuilders = require("./solidBuilders-
|
|
43
|
-
const require_extrudeFns = require("./extrudeFns-
|
|
40
|
+
const require_surfaceBuilders = require("./surfaceBuilders-BJX_D1VO.cjs");
|
|
41
|
+
const require_blueprintSketcher = require("./blueprintSketcher-CoefmhkD.cjs");
|
|
42
|
+
const require_solidBuilders = require("./solidBuilders-BoeIWGQs.cjs");
|
|
43
|
+
const require_extrudeFns = require("./extrudeFns-zngMBHOx.cjs");
|
|
44
44
|
let opentype_js = require("opentype.js");
|
|
45
45
|
opentype_js = __toESM(opentype_js, 1);
|
|
46
46
|
//#region src/operations/loftFns.ts
|