brepjs 18.64.0 → 18.65.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-B-auug94.js → blueprint-1wDhBDmB.js} +5 -5
- package/dist/{blueprint-CnGsBG6y.cjs → blueprint-smNMCQA1.cjs} +5 -5
- package/dist/{blueprintFns-Bpp0oBUG.js → blueprintFns-DeCDdsDz.js} +2 -2
- package/dist/{blueprintFns-CocKjMHz.cjs → blueprintFns-DkHfzzv0.cjs} +2 -2
- package/dist/{blueprintSketcher-BmCyc7s1.js → blueprintSketcher-BL85kdgo.js} +3 -3
- package/dist/{blueprintSketcher-J9bAQDhD.cjs → blueprintSketcher-Bpd7nMHt.cjs} +3 -3
- package/dist/{boolean2D-zhHdr4EG.cjs → boolean2D-CHu_3RIB.cjs} +4 -4
- package/dist/{boolean2D-C-tW10ip.js → boolean2D-CWgORqab.js} +4 -4
- package/dist/{booleanFns-9qTQX1iM.cjs → booleanFns-C9olM-r4.cjs} +4 -4
- package/dist/{booleanFns-4_KnvEil.js → booleanFns-ogc1TMXG.js} +4 -4
- package/dist/brepjs.cjs +24 -24
- package/dist/brepjs.js +24 -24
- package/dist/{cameraFns-5FSJmH9r.js → cameraFns-9SLctf9O.js} +2 -2
- package/dist/{cameraFns-Bz11Ik2z.cjs → cameraFns-Za6Rsnmg.cjs} +2 -2
- package/dist/core.cjs +1 -1
- package/dist/core.js +1 -1
- package/dist/{cornerFinder-mD9AqCfR.cjs → cornerFinder-CUhZgX6X.cjs} +1 -1
- package/dist/{cornerFinder-C10oNGL4.js → cornerFinder-Cchldpsv.js} +1 -1
- package/dist/{curveFns-BcS0DZLj.js → curveFns-DH5NpaKO.js} +1 -1
- package/dist/{curveFns-DOW3Rs1A.cjs → curveFns-DR68aqxR.cjs} +1 -1
- package/dist/{drawFns-0ojbwK2X.js → drawFns-Cq6bAjFC.js} +12 -12
- package/dist/{drawFns-B4BFzsPq.cjs → drawFns-DPE6EU_v.cjs} +12 -12
- package/dist/{extrudeFns-CrTb7bjb.js → extrudeFns-DZEN4PPg.js} +1 -1
- package/dist/{extrudeFns-D0IrXWsB.cjs → extrudeFns-yfUN1m7e.cjs} +1 -1
- package/dist/{faceFns-DFbEW9oz.js → faceFns-Qrz3lIDv.js} +2 -2
- package/dist/{faceFns-FVl-7nu7.cjs → faceFns-_m0px2ug.cjs} +2 -2
- package/dist/{helpers-BqrszPEI.cjs → helpers-BXiYZ2Dl.cjs} +6 -6
- package/dist/{helpers-CIucvYwe.js → helpers-Bk538__I.js} +6 -6
- package/dist/{historyFns-B-C4Cp9C.cjs → historyFns-B-R48Dze.cjs} +4 -4
- package/dist/{historyFns-h6FtvY5t.js → historyFns-BJKkvynn.js} +4 -4
- package/dist/{importFns-8wNWf6zt.js → importFns-Cid57qQ1.js} +2 -2
- package/dist/{importFns-Q9jZUGn_.cjs → importFns-D8EPeKcC.cjs} +2 -2
- package/dist/io.cjs +2 -2
- package/dist/io.js +2 -2
- package/dist/kernel/manifold/profileOps.d.ts +1 -1
- package/dist/{measureFns-DXQSqDH0.js → measureFns-95m36tbx.js} +3 -3
- package/dist/{measureFns-DSUJdWbH.cjs → measureFns-CqSFeI4R.cjs} +3 -3
- package/dist/measurement.cjs +1 -1
- package/dist/measurement.js +1 -1
- package/dist/{meshFns-DZA-Hsya.js → meshFns-BCggXbKk.js} +3 -3
- package/dist/{meshFns-D2rcmVr_.cjs → meshFns-CR8dRmoo.cjs} +3 -3
- package/dist/operations.cjs +2 -2
- package/dist/operations.js +2 -2
- package/dist/{primitiveFns-B7BJjuHU.cjs → primitiveFns-DFsImECE.cjs} +7 -7
- package/dist/{primitiveFns-_A-uhxX7.js → primitiveFns-Fy3scr-a.js} +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-Cu8myB5f.js → shapeFns-Ct1lekCK.js} +2 -2
- package/dist/{shapeFns-Uplvk1Jx.cjs → shapeFns-DNqkQ2yJ.cjs} +2 -2
- package/dist/shapeRef.cjs +1 -1
- package/dist/shapeRef.js +1 -1
- package/dist/{shapeRefFns-DZS2Y-8H.cjs → shapeRefFns-BB9iWqZb.cjs} +4 -4
- package/dist/{shapeRefFns-Drrf8qS4.js → shapeRefFns-CZqzvMgX.js} +4 -4
- package/dist/{shapeTypes-B2tufXyI.js → shapeTypes-C-32Klnb.js} +25 -11
- package/dist/{shapeTypes-0gU7DOBf.cjs → shapeTypes-DAhE_41P.cjs} +25 -11
- package/dist/sketching.cjs +3 -3
- package/dist/sketching.js +3 -3
- package/dist/{solidBuilders-3Is-YjEI.js → solidBuilders-B-gb9ZsJ.js} +2 -2
- package/dist/{solidBuilders-CdWC9FZI.cjs → solidBuilders-iapbn6CO.cjs} +2 -2
- package/dist/{surfaceBuilders-BjiUI8f_.cjs → surfaceBuilders-B9kzwe0E.cjs} +2 -2
- package/dist/{surfaceBuilders-BZOjOk6T.js → surfaceBuilders-Cwecm13F.js} +2 -2
- package/dist/text.cjs +2 -2
- package/dist/text.js +2 -2
- package/dist/{textBlueprints-Dl-qQ5Hm.cjs → textBlueprints-7KWxP1zT.cjs} +7 -7
- package/dist/{textBlueprints-BPi0wGxq.js → textBlueprints-CyIv54Ac.js} +7 -7
- package/dist/{textMetrics-CDEnxSK0.cjs → textMetrics-BXoJfZKn.cjs} +1 -1
- package/dist/{textMetrics-yWTfUPqx.js → textMetrics-D740OLnV.js} +1 -1
- package/dist/topology.cjs +7 -7
- package/dist/topology.js +7 -7
- package/dist/{topologyQueryFns-CxPWWuGB.js → topologyQueryFns-C0yUIRDE.js} +1 -1
- package/dist/{topologyQueryFns-CI4gmFyi.cjs → topologyQueryFns-CBVVRWvE.cjs} +1 -1
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-DAhE_41P.cjs");
|
|
2
2
|
const require_errors = require("./errors-CXJtc4I7.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-_m0px2ug.cjs");
|
|
5
|
+
const require_shapeFns = require("./shapeFns-DNqkQ2yJ.cjs");
|
|
6
|
+
const require_booleanFns = require("./booleanFns-C9olM-r4.cjs");
|
|
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
|
-
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-C-32Klnb.js";
|
|
2
2
|
import { A as ok, b as err, d as validationError, n as computationError, r as ioError } from "./errors-DNWJsfVU.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-Qrz3lIDv.js";
|
|
5
|
+
import { s as toBREP } from "./shapeFns-Ct1lekCK.js";
|
|
6
|
+
import { a as fuseAll } from "./booleanFns-ogc1TMXG.js";
|
|
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
|
-
import { Z as getKernel, t as castShape } from "./shapeTypes-
|
|
1
|
+
import { Z as getKernel, t as castShape } from "./shapeTypes-C-32Klnb.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-1wDhBDmB.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-DAhE_41P.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-smNMCQA1.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-CR8dRmoo.cjs");
|
|
3
|
+
const require_importFns = require("./importFns-D8EPeKcC.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-BCggXbKk.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-Cid57qQ1.js";
|
|
3
3
|
export { blueprintToDXF, exportDXF, exportGlb, exportGltf, exportIGES, exportOBJ, exportSTEP, exportSTEPConfigured, exportSTL, exportThreeMF, importIGES, importSTEP, importSTL, importSVG, importSVGPathD };
|
|
@@ -17,4 +17,4 @@ export interface ProfileBuilders {
|
|
|
17
17
|
addHolesInFace(face: KernelShape, holeWires: KernelShape[]): KernelShape;
|
|
18
18
|
makePolygonFace(points: Vec3[]): KernelShape;
|
|
19
19
|
}
|
|
20
|
-
export declare function makeProfileBuilders(
|
|
20
|
+
export declare function makeProfileBuilders(module: ManifoldModule): ProfileBuilders;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Z as getKernel } from "./shapeTypes-
|
|
1
|
+
import { Z as getKernel } from "./shapeTypes-C-32Klnb.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 { p as uvBounds } from "./faceFns-
|
|
3
|
+
import { w as kernelCallRaw } from "./topologyQueryFns-C0yUIRDE.js";
|
|
4
|
+
import { p as uvBounds } from "./faceFns-Qrz3lIDv.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-DAhE_41P.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-CBVVRWvE.cjs");
|
|
4
|
+
const require_faceFns = require("./faceFns-_m0px2ug.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-CqSFeI4R.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-95m36tbx.js";
|
|
2
2
|
export { createDistanceQuery, measureArea, measureDistance, measureDistanceProps, measureLength, measureLinearProps, measureSurfaceProps, measureVolume, measureVolumeProps };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Z as getKernel } from "./shapeTypes-
|
|
1
|
+
import { Z as getKernel } from "./shapeTypes-C-32Klnb.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 { O as getFaceOrigins } from "./shapeFns-
|
|
3
|
+
import { d as getSolids, n as getBounds } from "./topologyQueryFns-C0yUIRDE.js";
|
|
4
|
+
import { O as getFaceOrigins } from "./shapeFns-Ct1lekCK.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-DAhE_41P.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-CBVVRWvE.cjs");
|
|
4
|
+
const require_shapeFns = require("./shapeFns-DNqkQ2yJ.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_historyFns = require("./historyFns-B-
|
|
3
|
-
const require_extrudeFns = require("./extrudeFns-
|
|
2
|
+
const require_historyFns = require("./historyFns-B-R48Dze.cjs");
|
|
3
|
+
const require_extrudeFns = require("./extrudeFns-yfUN1m7e.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-BJKkvynn.js";
|
|
2
|
+
import { c as sweep, i as complexExtrude, l as twistExtrude, s as supportExtrude } from "./extrudeFns-DZEN4PPg.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
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-DAhE_41P.cjs");
|
|
2
2
|
const require_errors = require("./errors-CXJtc4I7.cjs");
|
|
3
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
3
|
+
const require_topologyQueryFns = require("./topologyQueryFns-CBVVRWvE.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-_m0px2ug.cjs");
|
|
6
|
+
const require_shapeFns = require("./shapeFns-DNqkQ2yJ.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-B9kzwe0E.cjs");
|
|
9
|
+
const require_booleanFns = require("./booleanFns-C9olM-r4.cjs");
|
|
10
|
+
const require_solidBuilders = require("./solidBuilders-iapbn6CO.cjs");
|
|
11
11
|
//#region src/topology/threeHelpers.ts
|
|
12
12
|
/**
|
|
13
13
|
* Convert a ShapeMesh into BufferGeometry-compatible typed arrays.
|
|
@@ -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-C-32Klnb.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-DNWJsfVU.js";
|
|
3
|
-
import { c as getFaces, i as getCachedIsValid, l as getOrCreateCache, m as invalidateShapeCache, p as getWires, s as getEdges } from "./topologyQueryFns-
|
|
3
|
+
import { c as getFaces, i as getCachedIsValid, l as getOrCreateCache, m as invalidateShapeCache, p as getWires, s as getEdges } from "./topologyQueryFns-C0yUIRDE.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-Qrz3lIDv.js";
|
|
6
|
+
import { _ as propagateAllMetadata, g as collectInputFaceHashes, h as translate } from "./shapeFns-Ct1lekCK.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-Cwecm13F.js";
|
|
9
|
+
import { a as fuseAll, i as fuse, n as cut, r as cutAll } from "./booleanFns-ogc1TMXG.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-B-gb9ZsJ.js";
|
|
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-Za6Rsnmg.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-9SLctf9O.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-BXiYZ2Dl.cjs");
|
|
3
|
+
const require_cornerFinder = require("./cornerFinder-CUhZgX6X.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-Bk538__I.js";
|
|
2
|
+
import { t as cornerFinder } from "./cornerFinder-Cchldpsv.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-C-32Klnb.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-C0yUIRDE.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-DAhE_41P.cjs");
|
|
2
2
|
const require_errors = require("./errors-CXJtc4I7.cjs");
|
|
3
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
3
|
+
const require_topologyQueryFns = require("./topologyQueryFns-CBVVRWvE.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-BB9iWqZb.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-CZqzvMgX.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-CBVVRWvE.cjs");
|
|
3
|
+
const require_faceFns = require("./faceFns-_m0px2ug.cjs");
|
|
4
|
+
const require_shapeFns = require("./shapeFns-DNqkQ2yJ.cjs");
|
|
5
|
+
const require_measureFns = require("./measureFns-CqSFeI4R.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 { c 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 { c as getFaces } from "./topologyQueryFns-C0yUIRDE.js";
|
|
3
|
+
import { c as normalAt, n as faceCenter, r as faceGeomType } from "./faceFns-Qrz3lIDv.js";
|
|
4
|
+
import { n as getHashCode } from "./shapeFns-Ct1lekCK.js";
|
|
5
|
+
import { n as measureArea } from "./measureFns-95m36tbx.js";
|
|
6
6
|
//#region src/topology/shapeRef/scoring.ts
|
|
7
7
|
/**
|
|
8
8
|
* Default face scorer combining surface type, normal alignment, centroid proximity,
|
|
@@ -10062,8 +10062,8 @@ function translationMatrix(x, y, z) {
|
|
|
10062
10062
|
m[14] = z;
|
|
10063
10063
|
return m;
|
|
10064
10064
|
}
|
|
10065
|
-
function rotationMatrix(
|
|
10066
|
-
const rad =
|
|
10065
|
+
function rotationMatrix(angleRad, axis, center) {
|
|
10066
|
+
const rad = angleRad;
|
|
10067
10067
|
const [ax, ay, az] = normalizeAxis(axis);
|
|
10068
10068
|
const c = Math.cos(rad);
|
|
10069
10069
|
const s = Math.sin(rad);
|
|
@@ -10859,10 +10859,22 @@ function rotationMinimizingFrames(path, seed) {
|
|
|
10859
10859
|
}
|
|
10860
10860
|
//#endregion
|
|
10861
10861
|
//#region src/kernel/manifold/profileOps.ts
|
|
10862
|
-
/**
|
|
10862
|
+
/** Fallback full-circle segment count when the kernel exposes no quality fn. */
|
|
10863
10863
|
var FULL_CIRCLE_SEGMENTS = 24;
|
|
10864
10864
|
/** Bezier sampling segments per edge. */
|
|
10865
10865
|
var BEZIER_SEGMENTS = 24;
|
|
10866
|
+
/**
|
|
10867
|
+
* Full-circle segment count, following the Manifold global quality setting
|
|
10868
|
+
* (`getCircularSegments`) when available so profile-curve fidelity scales with
|
|
10869
|
+
* the kernel's tessellation quality — fine for accuracy-sensitive callers,
|
|
10870
|
+
* coarse for fast preview — instead of a hardcoded constant. Set by
|
|
10871
|
+
* {@link makeProfileBuilders}.
|
|
10872
|
+
*/
|
|
10873
|
+
var circularSegmentsFor = null;
|
|
10874
|
+
function fullCircleSegments(radius) {
|
|
10875
|
+
const n = circularSegmentsFor ? circularSegmentsFor(Math.max(Math.abs(radius), 1e-6)) : FULL_CIRCLE_SEGMENTS;
|
|
10876
|
+
return Math.max(FULL_CIRCLE_SEGMENTS, n);
|
|
10877
|
+
}
|
|
10866
10878
|
var ZERO3 = [
|
|
10867
10879
|
0,
|
|
10868
10880
|
0,
|
|
@@ -10876,8 +10888,8 @@ var PLACEHOLDER = {
|
|
|
10876
10888
|
function at3(pts, i) {
|
|
10877
10889
|
return pts[i] ?? ZERO3;
|
|
10878
10890
|
}
|
|
10879
|
-
function arcSegments(angleSpan) {
|
|
10880
|
-
return Math.max(2, Math.ceil(Math.abs(angleSpan) / (2 * Math.PI) *
|
|
10891
|
+
function arcSegments(angleSpan, radius = 1) {
|
|
10892
|
+
return Math.max(2, Math.ceil(Math.abs(angleSpan) / (2 * Math.PI) * fullCircleSegments(radius)));
|
|
10881
10893
|
}
|
|
10882
10894
|
function pickPerp(n) {
|
|
10883
10895
|
return normalize3(cross(n, Math.abs(n[0]) < .9 ? [
|
|
@@ -10896,7 +10908,7 @@ function sampleArc(center, normal, radius, startAngle, endAngle, xDir) {
|
|
|
10896
10908
|
const x = xDir ? normalize3(xDir) : pickPerp(n);
|
|
10897
10909
|
const y = normalize3(cross(n, x));
|
|
10898
10910
|
const span = endAngle - startAngle;
|
|
10899
|
-
const segs = arcSegments(span);
|
|
10911
|
+
const segs = arcSegments(span, radius);
|
|
10900
10912
|
const pts = [];
|
|
10901
10913
|
for (let i = 0; i <= segs; i++) {
|
|
10902
10914
|
const a = startAngle + span * i / segs;
|
|
@@ -11032,7 +11044,9 @@ function sampleOcctEdge(occt, edge) {
|
|
|
11032
11044
|
function discretizeOcctWire(occt, wire) {
|
|
11033
11045
|
return chainEdges(occt.iterShapes(wire, "edge").map((e) => sampleOcctEdge(occt, e)));
|
|
11034
11046
|
}
|
|
11035
|
-
function makeProfileBuilders(
|
|
11047
|
+
function makeProfileBuilders(module) {
|
|
11048
|
+
const getSegs = module.getCircularSegments;
|
|
11049
|
+
if (typeof getSegs === "function") circularSegmentsFor = (r) => getSegs(r);
|
|
11036
11050
|
function edge(pts, curve) {
|
|
11037
11051
|
return wrap(PLACEHOLDER, makeNode("profileEdge", curve ? {
|
|
11038
11052
|
pts,
|
|
@@ -11165,8 +11179,9 @@ function makeProfileBuilders(_module) {
|
|
|
11165
11179
|
const x = xDir ? normalize3(xDir) : pickPerp(n);
|
|
11166
11180
|
const y = normalize3(cross(n, x));
|
|
11167
11181
|
const pts = [];
|
|
11168
|
-
|
|
11169
|
-
|
|
11182
|
+
const segs = fullCircleSegments(Math.max(majorRadius, minorRadius));
|
|
11183
|
+
for (let i = 0; i <= segs; i++) {
|
|
11184
|
+
const a = 2 * Math.PI * i / segs;
|
|
11170
11185
|
pts.push(add(center, add(scaleVec(x, majorRadius * Math.cos(a)), scaleVec(y, minorRadius * Math.sin(a)))));
|
|
11171
11186
|
}
|
|
11172
11187
|
return pts;
|
|
@@ -13405,8 +13420,7 @@ function hashCode(shape, upperBound) {
|
|
|
13405
13420
|
function isNull(shape) {
|
|
13406
13421
|
const s = asManifoldShape(shape);
|
|
13407
13422
|
if (!s) return true;
|
|
13408
|
-
|
|
13409
|
-
return !solid || typeof solid.isEmpty === "function" && solid.isEmpty();
|
|
13423
|
+
return !unwrap(s);
|
|
13410
13424
|
}
|
|
13411
13425
|
function iterShapes(shape, type) {
|
|
13412
13426
|
const s = asManifoldShape(shape);
|
|
@@ -10070,8 +10070,8 @@ function translationMatrix(x, y, z) {
|
|
|
10070
10070
|
m[14] = z;
|
|
10071
10071
|
return m;
|
|
10072
10072
|
}
|
|
10073
|
-
function rotationMatrix(
|
|
10074
|
-
const rad =
|
|
10073
|
+
function rotationMatrix(angleRad, axis, center) {
|
|
10074
|
+
const rad = angleRad;
|
|
10075
10075
|
const [ax, ay, az] = normalizeAxis(axis);
|
|
10076
10076
|
const c = Math.cos(rad);
|
|
10077
10077
|
const s = Math.sin(rad);
|
|
@@ -10867,10 +10867,22 @@ function rotationMinimizingFrames(path, seed) {
|
|
|
10867
10867
|
}
|
|
10868
10868
|
//#endregion
|
|
10869
10869
|
//#region src/kernel/manifold/profileOps.ts
|
|
10870
|
-
/**
|
|
10870
|
+
/** Fallback full-circle segment count when the kernel exposes no quality fn. */
|
|
10871
10871
|
var FULL_CIRCLE_SEGMENTS = 24;
|
|
10872
10872
|
/** Bezier sampling segments per edge. */
|
|
10873
10873
|
var BEZIER_SEGMENTS = 24;
|
|
10874
|
+
/**
|
|
10875
|
+
* Full-circle segment count, following the Manifold global quality setting
|
|
10876
|
+
* (`getCircularSegments`) when available so profile-curve fidelity scales with
|
|
10877
|
+
* the kernel's tessellation quality — fine for accuracy-sensitive callers,
|
|
10878
|
+
* coarse for fast preview — instead of a hardcoded constant. Set by
|
|
10879
|
+
* {@link makeProfileBuilders}.
|
|
10880
|
+
*/
|
|
10881
|
+
var circularSegmentsFor = null;
|
|
10882
|
+
function fullCircleSegments(radius) {
|
|
10883
|
+
const n = circularSegmentsFor ? circularSegmentsFor(Math.max(Math.abs(radius), 1e-6)) : FULL_CIRCLE_SEGMENTS;
|
|
10884
|
+
return Math.max(FULL_CIRCLE_SEGMENTS, n);
|
|
10885
|
+
}
|
|
10874
10886
|
var ZERO3 = [
|
|
10875
10887
|
0,
|
|
10876
10888
|
0,
|
|
@@ -10884,8 +10896,8 @@ var PLACEHOLDER = {
|
|
|
10884
10896
|
function at3(pts, i) {
|
|
10885
10897
|
return pts[i] ?? ZERO3;
|
|
10886
10898
|
}
|
|
10887
|
-
function arcSegments(angleSpan) {
|
|
10888
|
-
return Math.max(2, Math.ceil(Math.abs(angleSpan) / (2 * Math.PI) *
|
|
10899
|
+
function arcSegments(angleSpan, radius = 1) {
|
|
10900
|
+
return Math.max(2, Math.ceil(Math.abs(angleSpan) / (2 * Math.PI) * fullCircleSegments(radius)));
|
|
10889
10901
|
}
|
|
10890
10902
|
function pickPerp(n) {
|
|
10891
10903
|
return normalize3(cross(n, Math.abs(n[0]) < .9 ? [
|
|
@@ -10904,7 +10916,7 @@ function sampleArc(center, normal, radius, startAngle, endAngle, xDir) {
|
|
|
10904
10916
|
const x = xDir ? normalize3(xDir) : pickPerp(n);
|
|
10905
10917
|
const y = normalize3(cross(n, x));
|
|
10906
10918
|
const span = endAngle - startAngle;
|
|
10907
|
-
const segs = arcSegments(span);
|
|
10919
|
+
const segs = arcSegments(span, radius);
|
|
10908
10920
|
const pts = [];
|
|
10909
10921
|
for (let i = 0; i <= segs; i++) {
|
|
10910
10922
|
const a = startAngle + span * i / segs;
|
|
@@ -11040,7 +11052,9 @@ function sampleOcctEdge(occt, edge) {
|
|
|
11040
11052
|
function discretizeOcctWire(occt, wire) {
|
|
11041
11053
|
return chainEdges(occt.iterShapes(wire, "edge").map((e) => sampleOcctEdge(occt, e)));
|
|
11042
11054
|
}
|
|
11043
|
-
function makeProfileBuilders(
|
|
11055
|
+
function makeProfileBuilders(module) {
|
|
11056
|
+
const getSegs = module.getCircularSegments;
|
|
11057
|
+
if (typeof getSegs === "function") circularSegmentsFor = (r) => getSegs(r);
|
|
11044
11058
|
function edge(pts, curve) {
|
|
11045
11059
|
return wrap(PLACEHOLDER, makeNode("profileEdge", curve ? {
|
|
11046
11060
|
pts,
|
|
@@ -11173,8 +11187,9 @@ function makeProfileBuilders(_module) {
|
|
|
11173
11187
|
const x = xDir ? normalize3(xDir) : pickPerp(n);
|
|
11174
11188
|
const y = normalize3(cross(n, x));
|
|
11175
11189
|
const pts = [];
|
|
11176
|
-
|
|
11177
|
-
|
|
11190
|
+
const segs = fullCircleSegments(Math.max(majorRadius, minorRadius));
|
|
11191
|
+
for (let i = 0; i <= segs; i++) {
|
|
11192
|
+
const a = 2 * Math.PI * i / segs;
|
|
11178
11193
|
pts.push(add(center, add(scaleVec(x, majorRadius * Math.cos(a)), scaleVec(y, minorRadius * Math.sin(a)))));
|
|
11179
11194
|
}
|
|
11180
11195
|
return pts;
|
|
@@ -13413,8 +13428,7 @@ function hashCode(shape, upperBound) {
|
|
|
13413
13428
|
function isNull(shape) {
|
|
13414
13429
|
const s = asManifoldShape(shape);
|
|
13415
13430
|
if (!s) return true;
|
|
13416
|
-
|
|
13417
|
-
return !solid || typeof solid.isEmpty === "function" && solid.isEmpty();
|
|
13431
|
+
return !unwrap(s);
|
|
13418
13432
|
}
|
|
13419
13433
|
function iterShapes(shape, type) {
|
|
13420
13434
|
const s = asManifoldShape(shape);
|
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-7KWxP1zT.cjs");
|
|
3
|
+
const require_blueprintSketcher = require("./blueprintSketcher-Bpd7nMHt.cjs");
|
|
4
|
+
const require_drawFns = require("./drawFns-DPE6EU_v.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-BL85kdgo.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-Cq6bAjFC.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-CyIv54Ac.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
|
-
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-C-32Klnb.js";
|
|
2
2
|
import { A as ok, R as unwrap, b as err, l as typeCastError, v as andThen } from "./errors-DNWJsfVU.js";
|
|
3
|
-
import { _ as downcast, g as cast } from "./faceFns-
|
|
3
|
+
import { _ as downcast, g as cast } from "./faceFns-Qrz3lIDv.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-DAhE_41P.cjs");
|
|
2
2
|
const require_errors = require("./errors-CXJtc4I7.cjs");
|
|
3
|
-
const require_faceFns = require("./faceFns-
|
|
3
|
+
const require_faceFns = require("./faceFns-_m0px2ug.cjs");
|
|
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-DAhE_41P.cjs");
|
|
2
2
|
const require_errors = require("./errors-CXJtc4I7.cjs");
|
|
3
|
-
const require_faceFns = require("./faceFns-
|
|
3
|
+
const require_faceFns = require("./faceFns-_m0px2ug.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-C-32Klnb.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 { g as cast, l as outerWire } from "./faceFns-
|
|
3
|
+
import { g as cast, l as outerWire } from "./faceFns-Qrz3lIDv.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-7KWxP1zT.cjs");
|
|
3
|
+
const require_textMetrics = require("./textMetrics-BXoJfZKn.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-CyIv54Ac.js";
|
|
2
|
+
import { n as textMetrics, r as sketchText, t as fontMetrics } from "./textMetrics-D740OLnV.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-DAhE_41P.cjs");
|
|
33
33
|
const require_errors = require("./errors-CXJtc4I7.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-BA4HfgQu.cjs");
|
|
37
|
-
const require_faceFns = require("./faceFns-
|
|
38
|
-
const require_curveFns = require("./curveFns-
|
|
37
|
+
const require_faceFns = require("./faceFns-_m0px2ug.cjs");
|
|
38
|
+
const require_curveFns = require("./curveFns-DR68aqxR.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-B9kzwe0E.cjs");
|
|
41
|
+
const require_blueprintSketcher = require("./blueprintSketcher-Bpd7nMHt.cjs");
|
|
42
|
+
const require_solidBuilders = require("./solidBuilders-iapbn6CO.cjs");
|
|
43
|
+
const require_extrudeFns = require("./extrudeFns-yfUN1m7e.cjs");
|
|
44
44
|
let opentype_js = require("opentype.js");
|
|
45
45
|
opentype_js = __toESM(opentype_js, 1);
|
|
46
46
|
//#region src/operations/loftFns.ts
|