brepjs 18.118.1 → 18.118.2
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/{adjacencyFns-BCBxn5fI.cjs → adjacencyFns-COWMJ1OX.cjs} +2 -2
- package/dist/{adjacencyFns-B6LgGNt5.js → adjacencyFns-D026zKM3.js} +2 -2
- package/dist/{blueprint-C08UoSjN.js → blueprint-BeCL-AAl.js} +5 -5
- package/dist/{blueprint-Bf5G2J-D.cjs → blueprint-xcDMSkia.cjs} +5 -5
- package/dist/{blueprintFns-D8UfbJ7P.js → blueprintFns-BkSFPipn.js} +2 -2
- package/dist/{blueprintFns-DimPFaTL.cjs → blueprintFns-DIMiD67q.cjs} +2 -2
- package/dist/{blueprintSketcher-CCKCEADO.cjs → blueprintSketcher-DGcCDQq2.cjs} +3 -3
- package/dist/{blueprintSketcher-BYeTILZK.js → blueprintSketcher-DKfkNg71.js} +3 -3
- package/dist/{boolean2D-CwiND6NG.js → boolean2D-BCTOcf19.js} +4 -4
- package/dist/{boolean2D-BxU1RmyX.cjs → boolean2D-Dh4IPW_X.cjs} +4 -4
- package/dist/brepjs.cjs +25 -25
- package/dist/brepjs.js +25 -25
- package/dist/{cameraFns-zRSasMz9.cjs → cameraFns-BAm-2Clq.cjs} +2 -2
- package/dist/{cameraFns-CcPjRKGj.js → cameraFns-CRln-7RT.js} +2 -2
- package/dist/core.cjs +1 -1
- package/dist/core.js +1 -1
- package/dist/{cornerFinder-DXsCe6hW.js → cornerFinder-Bu482P3S.js} +1 -1
- package/dist/{cornerFinder-AsmKTFPN.cjs → cornerFinder-DMJBP4I2.cjs} +1 -1
- package/dist/{curveFns-BxnvFB23.cjs → curveFns-CpaxYpa4.cjs} +1 -1
- package/dist/{curveFns-DwIe8GZy.js → curveFns-pGQFlJG-.js} +1 -1
- package/dist/{drawFns-CwyVApwp.js → drawFns-BAETgRWM.js} +12 -12
- package/dist/{drawFns-BZEbW2zC.cjs → drawFns-D-PqWuBQ.cjs} +12 -12
- package/dist/{faceFns-TRIg5br4.js → faceFns-Bc6sBrBV.js} +2 -2
- package/dist/{faceFns-BLSzVAYl.cjs → faceFns-rbWcdpvj.cjs} +2 -2
- package/dist/{healingFns-B0LgUrq5.js → healingFns-DHxzmeCt.js} +5 -5
- package/dist/{healingFns-R5ADfh-0.cjs → healingFns-DfshoSeQ.cjs} +5 -5
- package/dist/{helpers-COiTc4_Y.cjs → helpers-CKbgoPDr.cjs} +6 -6
- package/dist/{helpers-BnIUjlaU.js → helpers-YD71h41H.js} +6 -6
- package/dist/{importFns-DhQLyPlO.js → importFns-A437Sgj6.js} +2 -2
- package/dist/{importFns-lTAr_GsL.cjs → importFns-CQ16LqPQ.cjs} +2 -2
- package/dist/io.cjs +2 -2
- package/dist/io.js +2 -2
- package/dist/kernel/optionalBackend.d.ts +15 -0
- package/dist/{loftFns-DaTo1-RY.cjs → loftFns-BQktV4u4.cjs} +1 -1
- package/dist/{loftFns-BJZVDHc8.js → loftFns-CXc9tRv6.js} +1 -1
- package/dist/{measureFns-BYTMfzr_.js → measureFns-B_vJqwDc.js} +3 -3
- package/dist/{measureFns-BpsPuZB8.cjs → measureFns-I5KcAgSb.cjs} +3 -3
- package/dist/measurement.cjs +1 -1
- package/dist/measurement.js +1 -1
- package/dist/{meshFns-nqU2Movr.js → meshFns-COdN1kVO.js} +3 -3
- package/dist/{meshFns-_1joEZ-4.cjs → meshFns-fPnPGEPl.cjs} +3 -3
- package/dist/operations.cjs +2 -2
- package/dist/operations.js +2 -2
- package/dist/{primitiveFns-BHnZEs_k.cjs → primitiveFns-Cohp602Q.cjs} +4 -4
- package/dist/{primitiveFns-LPYKSZBG.js → primitiveFns-DxP7GVQh.js} +4 -4
- 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/quick.js +7 -2
- package/dist/{refResolveFns-CJJka2Mh.cjs → refResolveFns-Du0v4e3Y.cjs} +5 -5
- package/dist/{refResolveFns-BccjAW94.js → refResolveFns-NGXXyTBa.js} +5 -5
- package/dist/{shapeFns-DNSBgjUO.js → shapeFns-DqGDtCsE.js} +2 -2
- package/dist/{shapeFns-BrTfsWJn.cjs → shapeFns-DvmBIZaX.cjs} +2 -2
- package/dist/shapeRef.cjs +1 -1
- package/dist/shapeRef.js +1 -1
- package/dist/{shapeTypes-BhYxXYb2.cjs → shapeTypes-BLREi6xB.cjs} +25 -12
- package/dist/{shapeTypes-CaEfw1Eg.js → shapeTypes-EI4Uxlsb.js} +25 -12
- package/dist/sketching.cjs +3 -3
- package/dist/sketching.js +3 -3
- package/dist/{solidBuilders-o9zolEOg.cjs → solidBuilders-B6DBRdRc.cjs} +5 -5
- package/dist/{solidBuilders-WzTJyb9Y.js → solidBuilders-Oq-hxTvJ.js} +5 -5
- package/dist/{surfaceBuilders-t14F6N55.cjs → surfaceBuilders-C-UhFlpS.cjs} +2 -2
- package/dist/{surfaceBuilders-DFwryByV.js → surfaceBuilders-C0pJwtCO.js} +2 -2
- package/dist/text.cjs +2 -2
- package/dist/text.js +2 -2
- package/dist/{textBlueprints-D4kbdi05.js → textBlueprints-fBpuvT3m.js} +7 -7
- package/dist/{textBlueprints-DMDC2cTp.cjs → textBlueprints-lSKzw-nT.cjs} +7 -7
- package/dist/{textMetrics-D2Ql48ch.cjs → textMetrics-BkTdFBwC.cjs} +1 -1
- package/dist/{textMetrics-DLvQucTf.js → textMetrics-CnrAQwLI.js} +1 -1
- package/dist/{threadFns-D6b6Edd7.cjs → threadFns-DJt3EStH.cjs} +7 -7
- package/dist/{threadFns-EkvfYJTh.js → threadFns-Dlts4xFy.js} +7 -7
- package/dist/topology.cjs +9 -9
- package/dist/topology.js +9 -9
- package/dist/{topologyQueryFns-CgapZiGe.cjs → topologyQueryFns-1PqfeHrV.cjs} +1 -1
- package/dist/{topologyQueryFns-DCItb0s7.js → topologyQueryFns-BjgBf2t-.js} +1 -1
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { Z as getKernel, p as isFace } from "./shapeTypes-
|
|
1
|
+
import { Z as getKernel, p as isFace } from "./shapeTypes-EI4Uxlsb.js";
|
|
2
2
|
import { A as ok, T as isOk, b as err, h as bug, o as queryError } from "./errors-DNWJsfVU.js";
|
|
3
|
-
import { c as getFaces, f as getVertices, p as getWires, s as getEdges } from "./topologyQueryFns-
|
|
3
|
+
import { c as getFaces, f as getVertices, p as getWires, s as getEdges } from "./topologyQueryFns-BjgBf2t-.js";
|
|
4
4
|
import { t as DEG2RAD } from "./constants-ITRzCnCp.js";
|
|
5
5
|
import { a as vecDot, d as vecNormalize } from "./vecOps-SKPRvPH-.js";
|
|
6
|
-
import { l as normalAt, s as getSurfaceType } from "./faceFns-
|
|
7
|
-
import { a as isSameShape, n as getHashCode } from "./shapeFns-
|
|
8
|
-
import { f as getCurveType, i as curveIsClosed, o as curveLength } from "./curveFns-
|
|
9
|
-
import { n as measureArea } from "./measureFns-
|
|
6
|
+
import { l as normalAt, s as getSurfaceType } from "./faceFns-Bc6sBrBV.js";
|
|
7
|
+
import { a as isSameShape, n as getHashCode } from "./shapeFns-DqGDtCsE.js";
|
|
8
|
+
import { f as getCurveType, i as curveIsClosed, o as curveLength } from "./curveFns-pGQFlJG-.js";
|
|
9
|
+
import { n as measureArea } from "./measureFns-B_vJqwDc.js";
|
|
10
10
|
//#region src/utils/vec2d.ts
|
|
11
11
|
/** Precision for curve intersection and parameter operations. */
|
|
12
12
|
var PRECISION_INTERSECTION = 1e-9;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Z as getKernel, t as castShape } from "./shapeTypes-
|
|
1
|
+
import { Z as getKernel, t as castShape } from "./shapeTypes-EI4Uxlsb.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-DNWJsfVU.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-BeCL-AAl.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) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-BLREi6xB.cjs");
|
|
2
2
|
const require_vec3 = require("./vec3-CFwOI0ZI.cjs");
|
|
3
3
|
const require_errors = require("./errors-CXJtc4I7.cjs");
|
|
4
4
|
const require_arrayAccess = require("./arrayAccess-e4H9cBfh.cjs");
|
|
5
|
-
const require_blueprint = require("./blueprint-
|
|
5
|
+
const require_blueprint = require("./blueprint-xcDMSkia.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) {
|
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-fPnPGEPl.cjs");
|
|
3
|
+
const require_importFns = require("./importFns-CQ16LqPQ.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-COdN1kVO.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-A437Sgj6.js";
|
|
3
3
|
export { blueprintToDXF, exportDXF, exportGlb, exportGltf, exportIGES, exportOBJ, exportSTEP, exportSTEPConfigured, exportSTL, exportThreeMF, importIGES, importSTEP, importSTL, importSVG, importSVGPathD };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dynamically import an optional kernel backend (`occt-wasm`,
|
|
3
|
+
* `brepjs-opencascade`, `brepkit-wasm`) at runtime.
|
|
4
|
+
*
|
|
5
|
+
* The specifier is passed through a parameter so the `import()` argument is a
|
|
6
|
+
* variable, never a string literal. A computed dynamic import is unanalyzable
|
|
7
|
+
* to every bundler (esbuild dep pre-bundling, Rollup, Vite import-analysis), so
|
|
8
|
+
* an uninstalled optional peer is always left as a runtime import instead of
|
|
9
|
+
* hard-failing a build. A string literal guarded only by a `@vite-ignore`
|
|
10
|
+
* comment regresses the moment a consumer's Vite pre-bundles brepjs and reflows
|
|
11
|
+
* the comment off the specifier (#1726); the `@vite-ignore` here only suppresses
|
|
12
|
+
* Vite's "cannot be analyzed" dev warning and its placement no longer affects
|
|
13
|
+
* correctness.
|
|
14
|
+
*/
|
|
15
|
+
export declare function importOptionalBackend(specifier: string): Promise<unknown>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-BLREi6xB.cjs");
|
|
2
2
|
const require_errors = require("./errors-CXJtc4I7.cjs");
|
|
3
3
|
const require_types = require("./types-KjA8tY4Y.cjs");
|
|
4
4
|
const require_vecOps = require("./vecOps-CCnJt-yH.cjs");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Z as getKernel, c as createSolid, h as isShape3D, t as castShape, y as isWire } from "./shapeTypes-
|
|
1
|
+
import { Z as getKernel, c as createSolid, h as isShape3D, t as castShape, y as isWire } from "./shapeTypes-EI4Uxlsb.js";
|
|
2
2
|
import { A as ok, b as err, d as validationError, i as kernelError, l as typeCastError, t as BrepErrorCode, w as isErr } from "./errors-DNWJsfVU.js";
|
|
3
3
|
import { r as toVec3 } from "./types-D24Y27N0.js";
|
|
4
4
|
import { c as vecLength, d as vecNormalize, t as vecAdd } from "./vecOps-SKPRvPH-.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Z as getKernel } from "./shapeTypes-
|
|
1
|
+
import { Z as getKernel } from "./shapeTypes-EI4Uxlsb.js";
|
|
2
2
|
import { A as ok, b as err, d as validationError, t as BrepErrorCode } from "./errors-DNWJsfVU.js";
|
|
3
|
-
import { w as kernelCallRaw } from "./topologyQueryFns-
|
|
4
|
-
import { m as uvBounds } from "./faceFns-
|
|
3
|
+
import { w as kernelCallRaw } from "./topologyQueryFns-BjgBf2t-.js";
|
|
4
|
+
import { m as uvBounds } from "./faceFns-Bc6sBrBV.js";
|
|
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
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-BLREi6xB.cjs");
|
|
2
2
|
const require_errors = require("./errors-CXJtc4I7.cjs");
|
|
3
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
4
|
-
const require_faceFns = require("./faceFns-
|
|
3
|
+
const require_topologyQueryFns = require("./topologyQueryFns-1PqfeHrV.cjs");
|
|
4
|
+
const require_faceFns = require("./faceFns-rbWcdpvj.cjs");
|
|
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-I5KcAgSb.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-B_vJqwDc.js";
|
|
2
2
|
export { createDistanceQuery, measureArea, measureDistance, measureDistanceProps, measureLength, measureLinearProps, measureSurfaceProps, measureVolume, measureVolumeProps };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Z as getKernel, gt as qualityDeflection } from "./shapeTypes-
|
|
1
|
+
import { Z as getKernel, gt as qualityDeflection } from "./shapeTypes-EI4Uxlsb.js";
|
|
2
2
|
import { A as ok, b as err, r as ioError } from "./errors-DNWJsfVU.js";
|
|
3
|
-
import { d as getSolids, n as getBounds } from "./topologyQueryFns-
|
|
4
|
-
import { j as getFaceOrigins } from "./shapeFns-
|
|
3
|
+
import { d as getSolids, n as getBounds } from "./topologyQueryFns-BjgBf2t-.js";
|
|
4
|
+
import { j as getFaceOrigins } from "./shapeFns-DqGDtCsE.js";
|
|
5
5
|
//#region src/topology/meshCache.ts
|
|
6
6
|
/**
|
|
7
7
|
* Build a parameter key for the inner cache map (excludes shape identity).
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-BLREi6xB.cjs");
|
|
2
2
|
const require_errors = require("./errors-CXJtc4I7.cjs");
|
|
3
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
4
|
-
const require_shapeFns = require("./shapeFns-
|
|
3
|
+
const require_topologyQueryFns = require("./topologyQueryFns-1PqfeHrV.cjs");
|
|
4
|
+
const require_shapeFns = require("./shapeFns-DvmBIZaX.cjs");
|
|
5
5
|
//#region src/topology/meshCache.ts
|
|
6
6
|
/**
|
|
7
7
|
* 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_threadFns = require("./threadFns-
|
|
3
|
-
const require_loftFns = require("./loftFns-
|
|
2
|
+
const require_threadFns = require("./threadFns-DJt3EStH.cjs");
|
|
3
|
+
const require_loftFns = require("./loftFns-BQktV4u4.cjs");
|
|
4
4
|
exports.addChild = require_threadFns.addChild;
|
|
5
5
|
exports.addJoint = require_threadFns.addJoint;
|
|
6
6
|
exports.addStep = require_threadFns.addStep;
|
package/dist/operations.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { A as setJointValue, B as createAssemblyNode, C as cylindricalJoint, D as planarJoint, E as mechanismDOF, G as circularPattern, H as removeChild, J as exportAssemblySTEP, K as gridPattern, L as addChild, M as sphericalJoint, O as prismaticJoint, R as collectShapes, S as addJoint, T as jointTransform, U as updateNode, V as findNode, W as walkAssembly, Y as createAssembly, _ as exportURDF, b as inverseKinematics, c as modifyStep, d as replayFrom, f as replayHistory, g as undoLast, h as stepsFrom, i as createRegistry, j as setJointValues, k as revoluteJoint, l as registerOperation, m as stepCount, n as addStep, o as findStep, q as linearPattern, r as createHistory, s as getShape, t as thread, u as registerShape, v as importURDF, w as forwardKinematics, x as jointTrajectory, y as jointsFromDH, z as countNodes } from "./threadFns-
|
|
2
|
-
import { d as twistExtrude, l as supportExtrude, o as complexExtrude, u as sweep } from "./loftFns-
|
|
1
|
+
import { A as setJointValue, B as createAssemblyNode, C as cylindricalJoint, D as planarJoint, E as mechanismDOF, G as circularPattern, H as removeChild, J as exportAssemblySTEP, K as gridPattern, L as addChild, M as sphericalJoint, O as prismaticJoint, R as collectShapes, S as addJoint, T as jointTransform, U as updateNode, V as findNode, W as walkAssembly, Y as createAssembly, _ as exportURDF, b as inverseKinematics, c as modifyStep, d as replayFrom, f as replayHistory, g as undoLast, h as stepsFrom, i as createRegistry, j as setJointValues, k as revoluteJoint, l as registerOperation, m as stepCount, n as addStep, o as findStep, q as linearPattern, r as createHistory, s as getShape, t as thread, u as registerShape, v as importURDF, w as forwardKinematics, x as jointTrajectory, y as jointsFromDH, z as countNodes } from "./threadFns-Dlts4xFy.js";
|
|
2
|
+
import { d as twistExtrude, l as supportExtrude, o as complexExtrude, u as sweep } from "./loftFns-CXc9tRv6.js";
|
|
3
3
|
export { addChild, addJoint, addStep, circularPattern, collectShapes, complexExtrude, countNodes, createAssembly, createAssemblyNode, createHistory, createRegistry, cylindricalJoint, exportAssemblySTEP, exportURDF, findNode, findStep, forwardKinematics, getShape as getHistoryShape, gridPattern, importURDF, inverseKinematics, jointTrajectory, jointTransform, jointsFromDH, linearPattern, mechanismDOF, modifyStep, planarJoint, prismaticJoint, registerOperation, registerShape, removeChild, replayFrom, replayHistory, revoluteJoint, setJointValue, setJointValues, sphericalJoint, stepCount, stepsFrom, supportExtrude, sweep, thread, twistExtrude, undoLast, updateNode, walkAssembly };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-BLREi6xB.cjs");
|
|
2
2
|
const require_errors = require("./errors-CXJtc4I7.cjs");
|
|
3
3
|
const require_constants = require("./constants-BOVyEYGH.cjs");
|
|
4
|
-
const require_shapeFns = require("./shapeFns-
|
|
5
|
-
const require_surfaceBuilders = require("./surfaceBuilders-
|
|
6
|
-
const require_solidBuilders = require("./solidBuilders-
|
|
4
|
+
const require_shapeFns = require("./shapeFns-DvmBIZaX.cjs");
|
|
5
|
+
const require_surfaceBuilders = require("./surfaceBuilders-C-UhFlpS.cjs");
|
|
6
|
+
const require_solidBuilders = require("./solidBuilders-B6DBRdRc.cjs");
|
|
7
7
|
//#region src/topology/primitiveFns.ts
|
|
8
8
|
/**
|
|
9
9
|
* Create a box with the given dimensions.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Z as getKernel, c as createSolid, x as isClosedWire } from "./shapeTypes-
|
|
1
|
+
import { Z as getKernel, c as createSolid, x as isClosedWire } from "./shapeTypes-EI4Uxlsb.js";
|
|
2
2
|
import { A as ok, b as err, d as validationError, v as andThen } from "./errors-DNWJsfVU.js";
|
|
3
3
|
import { t as DEG2RAD } from "./constants-ITRzCnCp.js";
|
|
4
|
-
import { g as translate } from "./shapeFns-
|
|
5
|
-
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-
|
|
6
|
-
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-
|
|
4
|
+
import { g as translate } from "./shapeFns-DqGDtCsE.js";
|
|
5
|
+
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-C0pJwtCO.js";
|
|
6
|
+
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-Oq-hxTvJ.js";
|
|
7
7
|
//#region src/topology/primitiveFns.ts
|
|
8
8
|
/**
|
|
9
9
|
* Create a box with the given dimensions.
|
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-BAm-2Clq.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-CRln-7RT.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-CKbgoPDr.cjs");
|
|
3
|
+
const require_cornerFinder = require("./cornerFinder-DMJBP4I2.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-YD71h41H.js";
|
|
2
|
+
import { t as cornerFinder } from "./cornerFinder-Bu482P3S.js";
|
|
3
3
|
export { cornerFinder, edgeFinder, faceFinder, getSingleFace };
|
package/dist/quick.js
CHANGED
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
import { initFromOC, registerKernel, OcctWasmAdapter } from './brepjs.js';
|
|
2
2
|
// occt-wasm first (the default kernel); fall back to brepjs-opencascade.
|
|
3
3
|
// Dynamic imports so an install with only one of the two packages still loads.
|
|
4
|
+
// The specifier is passed through a variable so the import() argument is never a
|
|
5
|
+
// string literal: a computed dynamic import is unanalyzable to every bundler, so
|
|
6
|
+
// an uninstalled optional peer is left as a runtime import instead of breaking a
|
|
7
|
+
// consumer's Vite dep pre-bundling (#1726).
|
|
8
|
+
const importBackend = (specifier) => import(/* @vite-ignore */ specifier);
|
|
4
9
|
try {
|
|
5
|
-
const { OcctKernel } = await
|
|
10
|
+
const { OcctKernel } = await importBackend('occt-wasm');
|
|
6
11
|
const kernel = await OcctKernel.init();
|
|
7
12
|
registerKernel('occt-wasm', OcctWasmAdapter.fromKernel(kernel));
|
|
8
13
|
} catch {
|
|
9
|
-
const { default: opencascade } = await
|
|
14
|
+
const { default: opencascade } = await importBackend('brepjs-opencascade');
|
|
10
15
|
const oc = await opencascade();
|
|
11
16
|
initFromOC(oc);
|
|
12
17
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
2
|
-
const require_faceFns = require("./faceFns-
|
|
3
|
-
const require_shapeFns = require("./shapeFns-
|
|
4
|
-
const require_measureFns = require("./measureFns-
|
|
5
|
-
const require_adjacencyFns = require("./adjacencyFns-
|
|
1
|
+
const require_topologyQueryFns = require("./topologyQueryFns-1PqfeHrV.cjs");
|
|
2
|
+
const require_faceFns = require("./faceFns-rbWcdpvj.cjs");
|
|
3
|
+
const require_shapeFns = require("./shapeFns-DvmBIZaX.cjs");
|
|
4
|
+
const require_measureFns = require("./measureFns-I5KcAgSb.cjs");
|
|
5
|
+
const require_adjacencyFns = require("./adjacencyFns-COWMJ1OX.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
|
-
import { S as vertexPosition, c as getFaces } from "./topologyQueryFns-
|
|
2
|
-
import { i as faceGeomType, l as normalAt, r as faceCenter } from "./faceFns-
|
|
3
|
-
import { n as getHashCode } from "./shapeFns-
|
|
4
|
-
import { n as measureArea, s as measureLength } from "./measureFns-
|
|
5
|
-
import { a as sharedEdges, i as facesOfVertex, o as verticesOfEdge, r as facesOfEdge, s as verticesOfFace, t as adjacentFaces } from "./adjacencyFns-
|
|
1
|
+
import { S as vertexPosition, c as getFaces } from "./topologyQueryFns-BjgBf2t-.js";
|
|
2
|
+
import { i as faceGeomType, l as normalAt, r as faceCenter } from "./faceFns-Bc6sBrBV.js";
|
|
3
|
+
import { n as getHashCode } from "./shapeFns-DqGDtCsE.js";
|
|
4
|
+
import { n as measureArea, s as measureLength } from "./measureFns-B_vJqwDc.js";
|
|
5
|
+
import { a as sharedEdges, i as facesOfVertex, o as verticesOfEdge, r as facesOfEdge, s as verticesOfFace, t as adjacentFaces } from "./adjacencyFns-D026zKM3.js";
|
|
6
6
|
//#region src/topology/shapeRef/scoring.ts
|
|
7
7
|
/**
|
|
8
8
|
* Default face scorer combining surface type, normal alignment, centroid proximity,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Z as getKernel, t as castShape } from "./shapeTypes-
|
|
1
|
+
import { Z as getKernel, t as castShape } from "./shapeTypes-EI4Uxlsb.js";
|
|
2
2
|
import { A as ok, b as err, d as validationError, t as BrepErrorCode } from "./errors-DNWJsfVU.js";
|
|
3
|
-
import { C as kernelCall, c as getFaces, l as getOrCreateCache, r as getCacheEntry, w as kernelCallRaw } from "./topologyQueryFns-
|
|
3
|
+
import { C as kernelCall, c as getFaces, l as getOrCreateCache, r as getCacheEntry, w as kernelCallRaw } from "./topologyQueryFns-BjgBf2t-.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-BLREi6xB.cjs");
|
|
2
2
|
const require_errors = require("./errors-CXJtc4I7.cjs");
|
|
3
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
3
|
+
const require_topologyQueryFns = require("./topologyQueryFns-1PqfeHrV.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_refResolveFns = require("./refResolveFns-
|
|
2
|
+
const require_refResolveFns = require("./refResolveFns-Du0v4e3Y.cjs");
|
|
3
3
|
exports.assignRoles = require_refResolveFns.assignRoles;
|
|
4
4
|
exports.captureHint = require_refResolveFns.captureHint;
|
|
5
5
|
exports.createDerivedFaceRef = require_refResolveFns.createDerivedFaceRef;
|
package/dist/shapeRef.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as createRef, a as isVertexRef, b as defaultScorer, c as resolveRefParams, d as createVertexRef, f as resolveVertexRef, g as captureHint, h as assignRoles, i as isLineageRef, l as createDerivedFaceRef, m as resolveEdgeRef, n as isEdgeRef, o as resolveLineageRef, p as createEdgeRef, r as isFaceRef, s as resolveRefIn, t as isDerivedFaceRef, u as resolveDerivedFaceRef, v as resolveRef, y as updateRoles } from "./refResolveFns-
|
|
1
|
+
import { _ as createRef, a as isVertexRef, b as defaultScorer, c as resolveRefParams, d as createVertexRef, f as resolveVertexRef, g as captureHint, h as assignRoles, i as isLineageRef, l as createDerivedFaceRef, m as resolveEdgeRef, n as isEdgeRef, o as resolveLineageRef, p as createEdgeRef, r as isFaceRef, s as resolveRefIn, t as isDerivedFaceRef, u as resolveDerivedFaceRef, v as resolveRef, y as updateRoles } from "./refResolveFns-NGXXyTBa.js";
|
|
2
2
|
export { assignRoles, captureHint, createDerivedFaceRef, createEdgeRef, createRef, createVertexRef, defaultScorer, isDerivedFaceRef, isEdgeRef, isFaceRef, isLineageRef, isVertexRef, resolveDerivedFaceRef, resolveEdgeRef, resolveLineageRef, resolveRef, resolveRefIn, resolveRefParams, resolveVertexRef, updateRoles };
|
|
@@ -15298,6 +15298,28 @@ var ManifoldAdapter = class {
|
|
|
15298
15298
|
}
|
|
15299
15299
|
};
|
|
15300
15300
|
//#endregion
|
|
15301
|
+
//#region src/kernel/optionalBackend.ts
|
|
15302
|
+
/**
|
|
15303
|
+
* Dynamically import an optional kernel backend (`occt-wasm`,
|
|
15304
|
+
* `brepjs-opencascade`, `brepkit-wasm`) at runtime.
|
|
15305
|
+
*
|
|
15306
|
+
* The specifier is passed through a parameter so the `import()` argument is a
|
|
15307
|
+
* variable, never a string literal. A computed dynamic import is unanalyzable
|
|
15308
|
+
* to every bundler (esbuild dep pre-bundling, Rollup, Vite import-analysis), so
|
|
15309
|
+
* an uninstalled optional peer is always left as a runtime import instead of
|
|
15310
|
+
* hard-failing a build. A string literal guarded only by a `@vite-ignore`
|
|
15311
|
+
* comment regresses the moment a consumer's Vite pre-bundles brepjs and reflows
|
|
15312
|
+
* the comment off the specifier (#1726); the `@vite-ignore` here only suppresses
|
|
15313
|
+
* Vite's "cannot be analyzed" dev warning and its placement no longer affects
|
|
15314
|
+
* correctness.
|
|
15315
|
+
*/
|
|
15316
|
+
function importOptionalBackend(specifier) {
|
|
15317
|
+
return import(
|
|
15318
|
+
/* @vite-ignore */
|
|
15319
|
+
specifier
|
|
15320
|
+
);
|
|
15321
|
+
}
|
|
15322
|
+
//#endregion
|
|
15301
15323
|
//#region src/kernel/types.ts
|
|
15302
15324
|
/** Check if the kernel supports hidden-line-removal projection. */
|
|
15303
15325
|
function supportsProjection(kernel) {
|
|
@@ -15480,26 +15502,17 @@ function prewarm() {
|
|
|
15480
15502
|
async function init() {
|
|
15481
15503
|
if (_defaultKernelId) return _defaultKernelId;
|
|
15482
15504
|
try {
|
|
15483
|
-
const { OcctKernel } = await
|
|
15484
|
-
/* @vite-ignore */
|
|
15485
|
-
"occt-wasm"
|
|
15486
|
-
);
|
|
15505
|
+
const { OcctKernel } = await importOptionalBackend("occt-wasm");
|
|
15487
15506
|
const kernel = await OcctKernel.init();
|
|
15488
15507
|
registerKernel("occt-wasm", require_occtWasmAdapter.OcctWasmAdapter.fromKernel(kernel));
|
|
15489
15508
|
return "occt-wasm";
|
|
15490
15509
|
} catch {}
|
|
15491
15510
|
try {
|
|
15492
|
-
initFromOC(await (await
|
|
15493
|
-
/* @vite-ignore */
|
|
15494
|
-
"brepjs-opencascade"
|
|
15495
|
-
)).default());
|
|
15511
|
+
initFromOC(await (await importOptionalBackend("brepjs-opencascade")).default());
|
|
15496
15512
|
return "occt";
|
|
15497
15513
|
} catch {}
|
|
15498
15514
|
try {
|
|
15499
|
-
const bk = await
|
|
15500
|
-
/* @vite-ignore */
|
|
15501
|
-
"brepkit-wasm"
|
|
15502
|
-
);
|
|
15515
|
+
const bk = await importOptionalBackend("brepkit-wasm");
|
|
15503
15516
|
if (typeof bk.default === "function") await bk.default();
|
|
15504
15517
|
registerKernel("brepkit", new BrepkitAdapter(new bk.BrepKernel()));
|
|
15505
15518
|
return "brepkit";
|
|
@@ -15290,6 +15290,28 @@ var ManifoldAdapter = class {
|
|
|
15290
15290
|
}
|
|
15291
15291
|
};
|
|
15292
15292
|
//#endregion
|
|
15293
|
+
//#region src/kernel/optionalBackend.ts
|
|
15294
|
+
/**
|
|
15295
|
+
* Dynamically import an optional kernel backend (`occt-wasm`,
|
|
15296
|
+
* `brepjs-opencascade`, `brepkit-wasm`) at runtime.
|
|
15297
|
+
*
|
|
15298
|
+
* The specifier is passed through a parameter so the `import()` argument is a
|
|
15299
|
+
* variable, never a string literal. A computed dynamic import is unanalyzable
|
|
15300
|
+
* to every bundler (esbuild dep pre-bundling, Rollup, Vite import-analysis), so
|
|
15301
|
+
* an uninstalled optional peer is always left as a runtime import instead of
|
|
15302
|
+
* hard-failing a build. A string literal guarded only by a `@vite-ignore`
|
|
15303
|
+
* comment regresses the moment a consumer's Vite pre-bundles brepjs and reflows
|
|
15304
|
+
* the comment off the specifier (#1726); the `@vite-ignore` here only suppresses
|
|
15305
|
+
* Vite's "cannot be analyzed" dev warning and its placement no longer affects
|
|
15306
|
+
* correctness.
|
|
15307
|
+
*/
|
|
15308
|
+
function importOptionalBackend(specifier) {
|
|
15309
|
+
return import(
|
|
15310
|
+
/* @vite-ignore */
|
|
15311
|
+
specifier
|
|
15312
|
+
);
|
|
15313
|
+
}
|
|
15314
|
+
//#endregion
|
|
15293
15315
|
//#region src/kernel/types.ts
|
|
15294
15316
|
/** Check if the kernel supports hidden-line-removal projection. */
|
|
15295
15317
|
function supportsProjection(kernel) {
|
|
@@ -15472,26 +15494,17 @@ function prewarm() {
|
|
|
15472
15494
|
async function init() {
|
|
15473
15495
|
if (_defaultKernelId) return _defaultKernelId;
|
|
15474
15496
|
try {
|
|
15475
|
-
const { OcctKernel } = await
|
|
15476
|
-
/* @vite-ignore */
|
|
15477
|
-
"occt-wasm"
|
|
15478
|
-
);
|
|
15497
|
+
const { OcctKernel } = await importOptionalBackend("occt-wasm");
|
|
15479
15498
|
const kernel = await OcctKernel.init();
|
|
15480
15499
|
registerKernel("occt-wasm", OcctWasmAdapter.fromKernel(kernel));
|
|
15481
15500
|
return "occt-wasm";
|
|
15482
15501
|
} catch {}
|
|
15483
15502
|
try {
|
|
15484
|
-
initFromOC(await (await
|
|
15485
|
-
/* @vite-ignore */
|
|
15486
|
-
"brepjs-opencascade"
|
|
15487
|
-
)).default());
|
|
15503
|
+
initFromOC(await (await importOptionalBackend("brepjs-opencascade")).default());
|
|
15488
15504
|
return "occt";
|
|
15489
15505
|
} catch {}
|
|
15490
15506
|
try {
|
|
15491
|
-
const bk = await
|
|
15492
|
-
/* @vite-ignore */
|
|
15493
|
-
"brepkit-wasm"
|
|
15494
|
-
);
|
|
15507
|
+
const bk = await importOptionalBackend("brepkit-wasm");
|
|
15495
15508
|
if (typeof bk.default === "function") await bk.default();
|
|
15496
15509
|
registerKernel("brepkit", new BrepkitAdapter(new bk.BrepKernel()));
|
|
15497
15510
|
return "brepkit";
|
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-lSKzw-nT.cjs");
|
|
3
|
+
const require_blueprintSketcher = require("./blueprintSketcher-DGcCDQq2.cjs");
|
|
4
|
+
const require_drawFns = require("./drawFns-D-PqWuBQ.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-DKfkNg71.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-BAETgRWM.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-fBpuvT3m.js";
|
|
4
4
|
//#region src/sketching.ts
|
|
5
5
|
/**
|
|
6
6
|
* brepjs/sketching — Sketcher, Drawing, and sketch-to-shape operations.
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-BLREi6xB.cjs");
|
|
2
2
|
const require_errors = require("./errors-CXJtc4I7.cjs");
|
|
3
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
3
|
+
const require_topologyQueryFns = require("./topologyQueryFns-1PqfeHrV.cjs");
|
|
4
4
|
const require_constants = require("./constants-BOVyEYGH.cjs");
|
|
5
5
|
const require_vecOps = require("./vecOps-CCnJt-yH.cjs");
|
|
6
6
|
const require_planeOps = require("./planeOps-BA4HfgQu.cjs");
|
|
7
|
-
const require_faceFns = require("./faceFns-
|
|
8
|
-
const require_shapeFns = require("./shapeFns-
|
|
7
|
+
const require_faceFns = require("./faceFns-rbWcdpvj.cjs");
|
|
8
|
+
const require_shapeFns = require("./shapeFns-DvmBIZaX.cjs");
|
|
9
9
|
const require_arrayAccess = require("./arrayAccess-e4H9cBfh.cjs");
|
|
10
|
-
const require_surfaceBuilders = require("./surfaceBuilders-
|
|
10
|
+
const require_surfaceBuilders = require("./surfaceBuilders-C-UhFlpS.cjs");
|
|
11
11
|
//#region src/topology/booleanFns.ts
|
|
12
12
|
/**
|
|
13
13
|
* Boolean and compound operations — functional replacements for _3DShape boolean methods.
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Z as getKernel, _ as isSolid, c as createSolid, g as isShell, h as isShape3D, i as createCompound, l as createVertex, t as castShape } from "./shapeTypes-
|
|
1
|
+
import { Z as getKernel, _ as isSolid, c as createSolid, g as isShell, h as isShape3D, i as createCompound, l as createVertex, t as castShape } from "./shapeTypes-EI4Uxlsb.js";
|
|
2
2
|
import { A as ok, R as unwrap, b as err, d as validationError, i as kernelError, l as typeCastError, t as BrepErrorCode, v as andThen, w as isErr } from "./errors-DNWJsfVU.js";
|
|
3
|
-
import { f as getVertices, p as getWires, s as getEdges } from "./topologyQueryFns-
|
|
3
|
+
import { f as getVertices, p as getWires, s as getEdges } from "./topologyQueryFns-BjgBf2t-.js";
|
|
4
4
|
import { n as HASH_CODE_MAX } from "./constants-ITRzCnCp.js";
|
|
5
5
|
import { h as vecScale, t as vecAdd } from "./vecOps-SKPRvPH-.js";
|
|
6
6
|
import { o as resolvePlane } from "./planeOps-DSjjtrjg.js";
|
|
7
|
-
import { _ as cast, v as downcast } from "./faceFns-
|
|
8
|
-
import { _ as collectInputFaceHashes, b as propagateMetadataByHash, y as propagateAllMetadata } from "./shapeFns-
|
|
7
|
+
import { _ as cast, v as downcast } from "./faceFns-Bc6sBrBV.js";
|
|
8
|
+
import { _ as collectInputFaceHashes, b as propagateMetadataByHash, y as propagateAllMetadata } from "./shapeFns-DqGDtCsE.js";
|
|
9
9
|
import { n as getAtOrThrow, t as firstOrThrow } from "./arrayAccess-DrUGPADn.js";
|
|
10
|
-
import { r as makeFace } from "./surfaceBuilders-
|
|
10
|
+
import { r as makeFace } from "./surfaceBuilders-C0pJwtCO.js";
|
|
11
11
|
//#region src/topology/booleanFns.ts
|
|
12
12
|
/**
|
|
13
13
|
* Boolean and compound operations — functional replacements for _3DShape boolean methods.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-BLREi6xB.cjs");
|
|
2
2
|
const require_errors = require("./errors-CXJtc4I7.cjs");
|
|
3
|
-
const require_faceFns = require("./faceFns-
|
|
3
|
+
const require_faceFns = require("./faceFns-rbWcdpvj.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-EI4Uxlsb.js";
|
|
2
2
|
import { A as ok, b as err, d as validationError, i as kernelError, v as andThen } from "./errors-DNWJsfVU.js";
|
|
3
|
-
import { _ as cast, u as outerWire } from "./faceFns-
|
|
3
|
+
import { _ as cast, u as outerWire } from "./faceFns-Bc6sBrBV.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-lSKzw-nT.cjs");
|
|
3
|
+
const require_textMetrics = require("./textMetrics-BkTdFBwC.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-fBpuvT3m.js";
|
|
2
|
+
import { n as textMetrics, r as sketchText, t as fontMetrics } from "./textMetrics-CnrAQwLI.js";
|
|
3
3
|
export { fontMetrics, getFont, loadFont, sketchText, textBlueprints, textMetrics };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { o as createFace, u as createWire } from "./shapeTypes-
|
|
1
|
+
import { o as createFace, u as createWire } from "./shapeTypes-EI4Uxlsb.js";
|
|
2
2
|
import { A as ok, R as unwrap, b as err, h as bug, r as ioError, t as BrepErrorCode } from "./errors-DNWJsfVU.js";
|
|
3
3
|
import { r as toVec3 } from "./types-D24Y27N0.js";
|
|
4
4
|
import { d as vecNormalize, h as vecScale, r as vecCross } from "./vecOps-SKPRvPH-.js";
|
|
5
5
|
import { n as createPlane } from "./planeOps-DSjjtrjg.js";
|
|
6
|
-
import { v as downcast } from "./faceFns-
|
|
7
|
-
import { l as curveStartPoint, u as curveTangentAt } from "./curveFns-
|
|
6
|
+
import { v as downcast } from "./faceFns-Bc6sBrBV.js";
|
|
7
|
+
import { l as curveStartPoint, u as curveTangentAt } from "./curveFns-pGQFlJG-.js";
|
|
8
8
|
import { n as getAtOrThrow, t as firstOrThrow } from "./arrayAccess-DrUGPADn.js";
|
|
9
|
-
import { i as makeNewFaceWithinFace, r as makeFace, t as addHolesInFace } from "./surfaceBuilders-
|
|
10
|
-
import { o as makeSolid, p as cutAll, t as makeCompound } from "./solidBuilders-
|
|
11
|
-
import { r as organiseBlueprints, t as BlueprintSketcher } from "./blueprintSketcher-
|
|
12
|
-
import { a as revolve, d as twistExtrude, o as complexExtrude, r as extrude, t as loft, u as sweep } from "./loftFns-
|
|
9
|
+
import { i as makeNewFaceWithinFace, r as makeFace, t as addHolesInFace } from "./surfaceBuilders-C0pJwtCO.js";
|
|
10
|
+
import { o as makeSolid, p as cutAll, t as makeCompound } from "./solidBuilders-Oq-hxTvJ.js";
|
|
11
|
+
import { r as organiseBlueprints, t as BlueprintSketcher } from "./blueprintSketcher-DKfkNg71.js";
|
|
12
|
+
import { a as revolve, d as twistExtrude, o as complexExtrude, r as extrude, t as loft, u as sweep } from "./loftFns-CXc9tRv6.js";
|
|
13
13
|
import opentype from "opentype.js";
|
|
14
14
|
//#region src/sketching/compoundSketch.ts
|
|
15
15
|
/**
|