brepjs 18.83.4 → 18.84.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/2d/lib/definitions.d.ts +4 -1
- package/dist/2d.cjs +6 -6
- package/dist/2d.js +6 -6
- package/dist/{blueprint-B8qBtYPi.js → blueprint-BL2TdtBX.js} +5 -5
- package/dist/{blueprint-BbY5RgQ5.cjs → blueprint-KrNFTiyX.cjs} +5 -5
- package/dist/{blueprintFns-CpHkr0_e.js → blueprintFns-DCA97w4C.js} +2 -2
- package/dist/{blueprintFns-B1RbKo8t.cjs → blueprintFns-Dp0_BOuL.cjs} +2 -2
- package/dist/{blueprintSketcher-2YCz_yJD.cjs → blueprintSketcher-ChpPo7tq.cjs} +3 -3
- package/dist/{blueprintSketcher-B3NEgpV4.js → blueprintSketcher-CxFmYBvh.js} +3 -3
- package/dist/{boolean2D-PTxVG3Uc.js → boolean2D-CIohnI9l.js} +4 -4
- package/dist/{boolean2D-CjPwTVhG.cjs → boolean2D-RC6jXv4x.cjs} +4 -4
- package/dist/brepjs.cjs +25 -25
- package/dist/brepjs.js +25 -25
- package/dist/{cameraFns-nYbmENvw.js → cameraFns-BA7CVtWJ.js} +2 -2
- package/dist/{cameraFns-bjDJPmOS.cjs → cameraFns-IL7qYFaG.cjs} +2 -2
- package/dist/core/kernelBoundary.d.ts +12 -3
- package/dist/core/planeOps.d.ts +4 -1
- package/dist/core/shapeTypeCache.d.ts +8 -2
- package/dist/core/typeDiscriminants.d.ts +1 -0
- package/dist/core.cjs +1 -1
- package/dist/core.js +1 -1
- package/dist/{cornerFinder-CjVy6U82.js → cornerFinder-7M1wdtcY.js} +1 -1
- package/dist/{cornerFinder-B8elxmnw.cjs → cornerFinder-DKyR_u8g.cjs} +1 -1
- package/dist/{curveFns-Bvk5DVw_.cjs → curveFns-D3k8aHIE.cjs} +1 -1
- package/dist/{curveFns-BIQl4iLB.js → curveFns-DT1yMgBI.js} +1 -1
- package/dist/{drawFns-9cTIgqNj.cjs → drawFns-DWHuHfHQ.cjs} +12 -12
- package/dist/{drawFns-sRqFaa31.js → drawFns-DiiBS6r0.js} +12 -12
- package/dist/{faceFns-2bhJpSMB.js → faceFns-CmhEEB-L.js} +2 -2
- package/dist/{faceFns-vTqhxmcB.cjs → faceFns-DSdVqqVP.cjs} +2 -2
- package/dist/{healingFns-CDVwFu2k.cjs → healingFns-B1axWCr3.cjs} +5 -5
- package/dist/{healingFns-BmlUR01v.js → healingFns-Cxi24K_n.js} +5 -5
- package/dist/{helpers-D6ukO4SV.js → helpers-CKjmUSf0.js} +6 -6
- package/dist/{helpers-CHmo2ZG7.cjs → helpers-Cvrmxw4s.cjs} +6 -6
- package/dist/{importFns-D1kfM4rA.js → importFns-CDaNqu4H.js} +2 -2
- package/dist/{importFns-CIs4W-gk.cjs → importFns-D09lb1dB.cjs} +2 -2
- package/dist/io.cjs +2 -2
- package/dist/io.js +2 -2
- package/dist/kernel/brepkit/kernel2dOps.d.ts +1 -1
- package/dist/kernel/occtWasm/curveOps.d.ts +5 -0
- package/dist/kernel/occtWasm/occtWasmAdapter.cjs +1 -1
- package/dist/kernel/occtWasm/occtWasmAdapter.d.ts +5 -5
- package/dist/kernel/occtWasm/occtWasmAdapter.js +1 -1
- package/dist/kernel/occtWasm/occtWasmTypes.d.ts +4 -0
- package/dist/{loftFns-DNw-fv6j.cjs → loftFns-C664R57e.cjs} +1 -1
- package/dist/{loftFns-CHs03MbK.js → loftFns-C8Ep9McS.js} +1 -1
- package/dist/{measureFns-6P_25eFL.cjs → measureFns-BtPAmRfH.cjs} +3 -3
- package/dist/{measureFns-CkGGGmto.js → measureFns-D0e8tGSP.js} +3 -3
- package/dist/measurement/measureCache.d.ts +1 -0
- package/dist/measurement.cjs +1 -1
- package/dist/measurement.js +1 -1
- package/dist/{meshFns-BbKHr7Sw.cjs → meshFns-7IXB_Bua.cjs} +3 -3
- package/dist/{meshFns-CkBq181n.js → meshFns-CtchqgDR.js} +3 -3
- package/dist/{occtWasmAdapter-DQ4QncJq.cjs → occtWasmAdapter-Bv2OTOX9.cjs} +37 -10
- package/dist/{occtWasmAdapter-B76LgEfN.js → occtWasmAdapter-D7mOxU0Q.js} +37 -10
- package/dist/operations/exporters.d.ts +1 -0
- package/dist/operations.cjs +2 -2
- package/dist/operations.js +2 -2
- package/dist/{primitiveFns-D-lMqIXD.cjs → primitiveFns-Bdqm8wjI.cjs} +4 -4
- package/dist/{primitiveFns-BEnhrLwJ.js → primitiveFns-D7R24hoz.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/{shapeFns-C0ye1jCN.js → shapeFns-B0lN3o3r.js} +2 -2
- package/dist/{shapeFns-BpVEDh-c.cjs → shapeFns-CeSEceUG.cjs} +2 -2
- package/dist/shapeRef.cjs +1 -1
- package/dist/shapeRef.js +1 -1
- package/dist/{shapeRefFns-CZbnUeFV.cjs → shapeRefFns-BsX2j-n3.cjs} +4 -4
- package/dist/{shapeRefFns-Bcgiuaof.js → shapeRefFns-C4JSc_jF.js} +4 -4
- package/dist/{shapeTypes-D-hZ4cF-.js → shapeTypes-BIcALNFv.js} +51 -5
- package/dist/{shapeTypes-D6LjwPZo.cjs → shapeTypes-DwNTiXjG.cjs} +51 -5
- package/dist/sketching.cjs +3 -3
- package/dist/sketching.js +3 -3
- package/dist/{solidBuilders-DCvBPoL2.cjs → solidBuilders-B_5FgvuK.cjs} +5 -5
- package/dist/{solidBuilders-WCtZo-7R.js → solidBuilders-Bb5_uC7F.js} +5 -5
- package/dist/{surfaceBuilders-KGtKEo_H.js → surfaceBuilders-BQx3TjMH.js} +2 -2
- package/dist/{surfaceBuilders-C3fFKidc.cjs → surfaceBuilders-DvpxHHIm.cjs} +2 -2
- package/dist/text.cjs +2 -2
- package/dist/text.js +2 -2
- package/dist/{textBlueprints-BJftbT2i.js → textBlueprints-BK3idmq5.js} +7 -7
- package/dist/{textBlueprints-BYriig4p.cjs → textBlueprints-BhxAXpVE.cjs} +7 -7
- package/dist/{textMetrics-CkBotEq0.js → textMetrics-DSYHxQ3W.js} +1 -1
- package/dist/{textMetrics-6op4Qu2I.cjs → textMetrics-SaXWFfLN.cjs} +1 -1
- package/dist/{threadFns-0T6pj-cl.js → threadFns-BWAL8cAZ.js} +6 -6
- package/dist/{threadFns-CnG_pnTj.cjs → threadFns-BsRDNoSm.cjs} +6 -6
- package/dist/topology.cjs +8 -8
- package/dist/topology.js +8 -8
- package/dist/{topologyQueryFns-Wc7It_Hq.js → topologyQueryFns-0BIOC7YH.js} +1 -1
- package/dist/{topologyQueryFns-D5qzuUHY.cjs → topologyQueryFns-a2i0YhGF.cjs} +1 -1
- package/dist/utils/vec2d.d.ts +4 -1
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as translateCurve2d$2, E as EXACT_BREP_CAPABILITIES, S as tangentCurve2d, _ as mirrorAcrossAxis, a as buildBinarySTL, b as scaleCurve2d$2, c as curveBounds, d as evaluateCurve2d$2, f as intersectCurves2dFn, g as makeLine2d$2, h as makeEllipse2d$2, i as buildAsciiSTL, l as curveTypeName, m as makeCircle2d$2, n as DEFAULT_STL_ANGULAR_TOLERANCE, o as addCurveToBBox, p as makeBezier2d$2, r as DEFAULT_STL_TOLERANCE, s as createBBox2d, t as OcctWasmAdapter, u as deserializeCurve2d$2, v as mirrorAtPoint, w as quickHull, x as serializeCurve2d$2, y as rotateCurve2d$2 } from "./occtWasmAdapter-
|
|
1
|
+
import { C as translateCurve2d$2, E as EXACT_BREP_CAPABILITIES, S as tangentCurve2d, _ as mirrorAcrossAxis, a as buildBinarySTL, b as scaleCurve2d$2, c as curveBounds, d as evaluateCurve2d$2, f as intersectCurves2dFn, g as makeLine2d$2, h as makeEllipse2d$2, i as buildAsciiSTL, l as curveTypeName, m as makeCircle2d$2, n as DEFAULT_STL_ANGULAR_TOLERANCE, o as addCurveToBBox, p as makeBezier2d$2, r as DEFAULT_STL_TOLERANCE, s as createBBox2d, t as OcctWasmAdapter, u as deserializeCurve2d$2, v as mirrorAtPoint, w as quickHull, x as serializeCurve2d$2, y as rotateCurve2d$2 } from "./occtWasmAdapter-D7mOxU0Q.js";
|
|
2
2
|
import { n as wasmIndex, t as vec3At } from "./vec3-Dpha8d5k.js";
|
|
3
3
|
import { A as ok, b as err } from "./errors-DNWJsfVU.js";
|
|
4
4
|
//#region src/kernel/quality.ts
|
|
@@ -8541,11 +8541,16 @@ function makeEllipse2d(cx, cy, major, minor, xDirX, xDirY, sense) {
|
|
|
8541
8541
|
return makeEllipse2d$2(cx, cy, major, minor, xDirX, xDirY, sense);
|
|
8542
8542
|
}
|
|
8543
8543
|
function makeEllipseArc2d(cx, cy, major, minor, start, end, xDirX, xDirY, sense) {
|
|
8544
|
+
const ellipse = makeEllipse2d$2(cx, cy, major, minor, xDirX, xDirY, sense);
|
|
8545
|
+
const ccw = sense !== false;
|
|
8546
|
+
const tStart = ccw ? start : -start;
|
|
8547
|
+
let tEnd = ccw ? end : -end;
|
|
8548
|
+
if (tEnd < tStart - 1e-9) tEnd += 2 * Math.PI;
|
|
8544
8549
|
return {
|
|
8545
8550
|
__bk2d: "trimmed",
|
|
8546
|
-
basis:
|
|
8547
|
-
tStart
|
|
8548
|
-
tEnd
|
|
8551
|
+
basis: ellipse,
|
|
8552
|
+
tStart,
|
|
8553
|
+
tEnd
|
|
8549
8554
|
};
|
|
8550
8555
|
}
|
|
8551
8556
|
function makeBezier2d(points) {
|
|
@@ -8597,6 +8602,45 @@ function trimCurve2d(curve, start, end) {
|
|
|
8597
8602
|
tEnd: end
|
|
8598
8603
|
};
|
|
8599
8604
|
}
|
|
8605
|
+
function reverseCurve2d(curve) {
|
|
8606
|
+
const c = curve;
|
|
8607
|
+
switch (c.__bk2d) {
|
|
8608
|
+
case "line": {
|
|
8609
|
+
const m = c;
|
|
8610
|
+
m.ox += m.dx * m.len;
|
|
8611
|
+
m.oy += m.dy * m.len;
|
|
8612
|
+
m.dx = -m.dx;
|
|
8613
|
+
m.dy = -m.dy;
|
|
8614
|
+
break;
|
|
8615
|
+
}
|
|
8616
|
+
case "circle":
|
|
8617
|
+
case "ellipse": {
|
|
8618
|
+
const m = c;
|
|
8619
|
+
m.sense = !m.sense;
|
|
8620
|
+
break;
|
|
8621
|
+
}
|
|
8622
|
+
case "trimmed": {
|
|
8623
|
+
const m = c;
|
|
8624
|
+
[m.tStart, m.tEnd] = [m.tEnd, m.tStart];
|
|
8625
|
+
break;
|
|
8626
|
+
}
|
|
8627
|
+
case "bezier": {
|
|
8628
|
+
const m = c;
|
|
8629
|
+
m.poles = [...m.poles].reverse();
|
|
8630
|
+
break;
|
|
8631
|
+
}
|
|
8632
|
+
case "bspline": {
|
|
8633
|
+
const m = c;
|
|
8634
|
+
m.poles = [...m.poles].reverse();
|
|
8635
|
+
const lo = m.knots[0];
|
|
8636
|
+
const hi = m.knots[m.knots.length - 1];
|
|
8637
|
+
if (lo !== void 0 && hi !== void 0) m.knots = m.knots.map((k) => lo + hi - k).reverse();
|
|
8638
|
+
if (Array.isArray(m.weights)) m.weights = [...m.weights].reverse();
|
|
8639
|
+
break;
|
|
8640
|
+
}
|
|
8641
|
+
default: break;
|
|
8642
|
+
}
|
|
8643
|
+
}
|
|
8600
8644
|
function copyCurve2d(curve) {
|
|
8601
8645
|
return JSON.parse(JSON.stringify(curve));
|
|
8602
8646
|
}
|
|
@@ -9264,7 +9308,9 @@ function makeKernel2dOps(bk) {
|
|
|
9264
9308
|
getCurve2dBounds: (curve) => getCurve2dBounds(curve),
|
|
9265
9309
|
getCurve2dType: (curve) => getCurve2dType(curve),
|
|
9266
9310
|
trimCurve2d: (curve, start, end) => trimCurve2d(curve, start, end),
|
|
9267
|
-
reverseCurve2d: (curve) => {
|
|
9311
|
+
reverseCurve2d: (curve) => {
|
|
9312
|
+
reverseCurve2d(curve);
|
|
9313
|
+
},
|
|
9268
9314
|
copyCurve2d: (curve) => copyCurve2d(curve),
|
|
9269
9315
|
offsetCurve2d: (curve, off) => offsetCurve2d(curve, off),
|
|
9270
9316
|
translateCurve2d: (curve, dx, dy) => translateCurve2d(curve, dx, dy),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_occtWasmAdapter = require("./occtWasmAdapter-
|
|
1
|
+
const require_occtWasmAdapter = require("./occtWasmAdapter-Bv2OTOX9.cjs");
|
|
2
2
|
const require_vec3 = require("./vec3-CFwOI0ZI.cjs");
|
|
3
3
|
const require_errors = require("./errors-CXJtc4I7.cjs");
|
|
4
4
|
//#region src/kernel/quality.ts
|
|
@@ -8545,11 +8545,16 @@ function makeEllipse2d(cx, cy, major, minor, xDirX, xDirY, sense) {
|
|
|
8545
8545
|
return require_occtWasmAdapter.makeEllipse2d(cx, cy, major, minor, xDirX, xDirY, sense);
|
|
8546
8546
|
}
|
|
8547
8547
|
function makeEllipseArc2d(cx, cy, major, minor, start, end, xDirX, xDirY, sense) {
|
|
8548
|
+
const ellipse = require_occtWasmAdapter.makeEllipse2d(cx, cy, major, minor, xDirX, xDirY, sense);
|
|
8549
|
+
const ccw = sense !== false;
|
|
8550
|
+
const tStart = ccw ? start : -start;
|
|
8551
|
+
let tEnd = ccw ? end : -end;
|
|
8552
|
+
if (tEnd < tStart - 1e-9) tEnd += 2 * Math.PI;
|
|
8548
8553
|
return {
|
|
8549
8554
|
__bk2d: "trimmed",
|
|
8550
|
-
basis:
|
|
8551
|
-
tStart
|
|
8552
|
-
tEnd
|
|
8555
|
+
basis: ellipse,
|
|
8556
|
+
tStart,
|
|
8557
|
+
tEnd
|
|
8553
8558
|
};
|
|
8554
8559
|
}
|
|
8555
8560
|
function makeBezier2d(points) {
|
|
@@ -8601,6 +8606,45 @@ function trimCurve2d(curve, start, end) {
|
|
|
8601
8606
|
tEnd: end
|
|
8602
8607
|
};
|
|
8603
8608
|
}
|
|
8609
|
+
function reverseCurve2d(curve) {
|
|
8610
|
+
const c = curve;
|
|
8611
|
+
switch (c.__bk2d) {
|
|
8612
|
+
case "line": {
|
|
8613
|
+
const m = c;
|
|
8614
|
+
m.ox += m.dx * m.len;
|
|
8615
|
+
m.oy += m.dy * m.len;
|
|
8616
|
+
m.dx = -m.dx;
|
|
8617
|
+
m.dy = -m.dy;
|
|
8618
|
+
break;
|
|
8619
|
+
}
|
|
8620
|
+
case "circle":
|
|
8621
|
+
case "ellipse": {
|
|
8622
|
+
const m = c;
|
|
8623
|
+
m.sense = !m.sense;
|
|
8624
|
+
break;
|
|
8625
|
+
}
|
|
8626
|
+
case "trimmed": {
|
|
8627
|
+
const m = c;
|
|
8628
|
+
[m.tStart, m.tEnd] = [m.tEnd, m.tStart];
|
|
8629
|
+
break;
|
|
8630
|
+
}
|
|
8631
|
+
case "bezier": {
|
|
8632
|
+
const m = c;
|
|
8633
|
+
m.poles = [...m.poles].reverse();
|
|
8634
|
+
break;
|
|
8635
|
+
}
|
|
8636
|
+
case "bspline": {
|
|
8637
|
+
const m = c;
|
|
8638
|
+
m.poles = [...m.poles].reverse();
|
|
8639
|
+
const lo = m.knots[0];
|
|
8640
|
+
const hi = m.knots[m.knots.length - 1];
|
|
8641
|
+
if (lo !== void 0 && hi !== void 0) m.knots = m.knots.map((k) => lo + hi - k).reverse();
|
|
8642
|
+
if (Array.isArray(m.weights)) m.weights = [...m.weights].reverse();
|
|
8643
|
+
break;
|
|
8644
|
+
}
|
|
8645
|
+
default: break;
|
|
8646
|
+
}
|
|
8647
|
+
}
|
|
8604
8648
|
function copyCurve2d(curve) {
|
|
8605
8649
|
return JSON.parse(JSON.stringify(curve));
|
|
8606
8650
|
}
|
|
@@ -9272,7 +9316,9 @@ function makeKernel2dOps(bk) {
|
|
|
9272
9316
|
getCurve2dBounds: (curve) => getCurve2dBounds(curve),
|
|
9273
9317
|
getCurve2dType: (curve) => getCurve2dType(curve),
|
|
9274
9318
|
trimCurve2d: (curve, start, end) => trimCurve2d(curve, start, end),
|
|
9275
|
-
reverseCurve2d: (curve) => {
|
|
9319
|
+
reverseCurve2d: (curve) => {
|
|
9320
|
+
reverseCurve2d(curve);
|
|
9321
|
+
},
|
|
9276
9322
|
copyCurve2d: (curve) => copyCurve2d(curve),
|
|
9277
9323
|
offsetCurve2d: (curve, off) => offsetCurve2d(curve, off),
|
|
9278
9324
|
translateCurve2d: (curve, dx, dy) => translateCurve2d(curve, dx, dy),
|
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-BhxAXpVE.cjs");
|
|
3
|
+
const require_blueprintSketcher = require("./blueprintSketcher-ChpPo7tq.cjs");
|
|
4
|
+
const require_drawFns = require("./drawFns-DWHuHfHQ.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-CxFmYBvh.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-DiiBS6r0.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-BK3idmq5.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-DwNTiXjG.cjs");
|
|
2
2
|
const require_errors = require("./errors-CXJtc4I7.cjs");
|
|
3
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
3
|
+
const require_topologyQueryFns = require("./topologyQueryFns-a2i0YhGF.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-DSdVqqVP.cjs");
|
|
8
|
+
const require_shapeFns = require("./shapeFns-CeSEceUG.cjs");
|
|
9
9
|
const require_arrayAccess = require("./arrayAccess-e4H9cBfh.cjs");
|
|
10
|
-
const require_surfaceBuilders = require("./surfaceBuilders-
|
|
10
|
+
const require_surfaceBuilders = require("./surfaceBuilders-DvpxHHIm.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-BIcALNFv.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-0BIOC7YH.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 propagateAllMetadata, g as collectInputFaceHashes, v as propagateMetadataByHash } from "./shapeFns-
|
|
7
|
+
import { _ as cast, v as downcast } from "./faceFns-CmhEEB-L.js";
|
|
8
|
+
import { _ as propagateAllMetadata, g as collectInputFaceHashes, v as propagateMetadataByHash } from "./shapeFns-B0lN3o3r.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-BQx3TjMH.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
|
-
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-BIcALNFv.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-CmhEEB-L.js";
|
|
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
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-DwNTiXjG.cjs");
|
|
2
2
|
const require_errors = require("./errors-CXJtc4I7.cjs");
|
|
3
|
-
const require_faceFns = require("./faceFns-
|
|
3
|
+
const require_faceFns = require("./faceFns-DSdVqqVP.cjs");
|
|
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-BhxAXpVE.cjs");
|
|
3
|
+
const require_textMetrics = require("./textMetrics-SaXWFfLN.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-BK3idmq5.js";
|
|
2
|
+
import { n as textMetrics, r as sketchText, t as fontMetrics } from "./textMetrics-DSYHxQ3W.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-BIcALNFv.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-CmhEEB-L.js";
|
|
7
|
+
import { l as curveStartPoint, u as curveTangentAt } from "./curveFns-DT1yMgBI.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-BQx3TjMH.js";
|
|
10
|
+
import { o as makeSolid, p as cutAll, t as makeCompound } from "./solidBuilders-Bb5_uC7F.js";
|
|
11
|
+
import { r as organiseBlueprints, t as BlueprintSketcher } from "./blueprintSketcher-CxFmYBvh.js";
|
|
12
|
+
import { a as revolve, d as twistExtrude, o as complexExtrude, r as extrude, t as loft, u as sweep } from "./loftFns-C8Ep9McS.js";
|
|
13
13
|
import opentype from "opentype.js";
|
|
14
14
|
//#region src/sketching/compoundSketch.ts
|
|
15
15
|
/**
|
|
@@ -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-DwNTiXjG.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-DSdVqqVP.cjs");
|
|
38
|
+
const require_curveFns = require("./curveFns-D3k8aHIE.cjs");
|
|
39
39
|
const require_arrayAccess = require("./arrayAccess-e4H9cBfh.cjs");
|
|
40
|
-
const require_surfaceBuilders = require("./surfaceBuilders-
|
|
41
|
-
const require_solidBuilders = require("./solidBuilders-
|
|
42
|
-
const require_blueprintSketcher = require("./blueprintSketcher-
|
|
43
|
-
const require_loftFns = require("./loftFns-
|
|
40
|
+
const require_surfaceBuilders = require("./surfaceBuilders-DvpxHHIm.cjs");
|
|
41
|
+
const require_solidBuilders = require("./solidBuilders-B_5FgvuK.cjs");
|
|
42
|
+
const require_blueprintSketcher = require("./blueprintSketcher-ChpPo7tq.cjs");
|
|
43
|
+
const require_loftFns = require("./loftFns-C664R57e.cjs");
|
|
44
44
|
let opentype_js = require("opentype.js");
|
|
45
45
|
opentype_js = __toESM(opentype_js, 1);
|
|
46
46
|
//#region src/sketching/compoundSketch.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { A as ok, b as err, d as validationError, t as BrepErrorCode } from "./errors-DNWJsfVU.js";
|
|
2
|
-
import { g as wrapSketchData, i as Sketches, n as getFont, t as textBlueprints, v as CompoundSketch } from "./textBlueprints-
|
|
2
|
+
import { g as wrapSketchData, i as Sketches, n as getFont, t as textBlueprints, v as CompoundSketch } from "./textBlueprints-BK3idmq5.js";
|
|
3
3
|
//#region src/text/sketchText.ts
|
|
4
4
|
/**
|
|
5
5
|
* Render text as 3D sketch outlines on a plane.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { B as createKernelHandle, R as DisposalScope, Y as _usingCtx, Z as getKernel, t as castShape } from "./shapeTypes-
|
|
1
|
+
import { B as createKernelHandle, R as DisposalScope, Y as _usingCtx, Z as getKernel, t as castShape } from "./shapeTypes-BIcALNFv.js";
|
|
2
2
|
import { A as ok, T as isOk, b as err, d as validationError, n as computationError, r as ioError, t as BrepErrorCode } from "./errors-DNWJsfVU.js";
|
|
3
3
|
import { d as vecNormalize, s as vecIsZero } from "./vecOps-SKPRvPH-.js";
|
|
4
|
-
import { y as fromBREP } from "./faceFns-
|
|
5
|
-
import { s as toBREP } from "./shapeFns-
|
|
6
|
-
import { h as fuseAll } from "./solidBuilders-
|
|
7
|
-
import { t as loft } from "./loftFns-
|
|
8
|
-
import { E as wire, h as line } from "./primitiveFns-
|
|
4
|
+
import { y as fromBREP } from "./faceFns-CmhEEB-L.js";
|
|
5
|
+
import { s as toBREP } from "./shapeFns-B0lN3o3r.js";
|
|
6
|
+
import { h as fuseAll } from "./solidBuilders-Bb5_uC7F.js";
|
|
7
|
+
import { t as loft } from "./loftFns-C8Ep9McS.js";
|
|
8
|
+
import { E as wire, h as line } from "./primitiveFns-D7R24hoz.js";
|
|
9
9
|
//#region src/utils/uuid.ts
|
|
10
10
|
/** Generate a v4-style UUID string using `crypto.getRandomValues`. */
|
|
11
11
|
function uuidv() {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-DwNTiXjG.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_solidBuilders = require("./solidBuilders-
|
|
7
|
-
const require_loftFns = require("./loftFns-
|
|
8
|
-
const require_primitiveFns = require("./primitiveFns-
|
|
4
|
+
const require_faceFns = require("./faceFns-DSdVqqVP.cjs");
|
|
5
|
+
const require_shapeFns = require("./shapeFns-CeSEceUG.cjs");
|
|
6
|
+
const require_solidBuilders = require("./solidBuilders-B_5FgvuK.cjs");
|
|
7
|
+
const require_loftFns = require("./loftFns-C664R57e.cjs");
|
|
8
|
+
const require_primitiveFns = require("./primitiveFns-Bdqm8wjI.cjs");
|
|
9
9
|
//#region src/utils/uuid.ts
|
|
10
10
|
/** Generate a v4-style UUID string using `crypto.getRandomValues`. */
|
|
11
11
|
function uuidv() {
|
package/dist/topology.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
3
|
-
const require_faceFns = require("./faceFns-
|
|
4
|
-
const require_shapeFns = require("./shapeFns-
|
|
5
|
-
const require_curveFns = require("./curveFns-
|
|
6
|
-
const require_meshFns = require("./meshFns-
|
|
7
|
-
const require_solidBuilders = require("./solidBuilders-
|
|
8
|
-
const require_healingFns = require("./healingFns-
|
|
9
|
-
const require_primitiveFns = require("./primitiveFns-
|
|
2
|
+
const require_topologyQueryFns = require("./topologyQueryFns-a2i0YhGF.cjs");
|
|
3
|
+
const require_faceFns = require("./faceFns-DSdVqqVP.cjs");
|
|
4
|
+
const require_shapeFns = require("./shapeFns-CeSEceUG.cjs");
|
|
5
|
+
const require_curveFns = require("./curveFns-D3k8aHIE.cjs");
|
|
6
|
+
const require_meshFns = require("./meshFns-7IXB_Bua.cjs");
|
|
7
|
+
const require_solidBuilders = require("./solidBuilders-B_5FgvuK.cjs");
|
|
8
|
+
const require_healingFns = require("./healingFns-B1axWCr3.cjs");
|
|
9
|
+
const require_primitiveFns = require("./primitiveFns-Bdqm8wjI.cjs");
|
|
10
10
|
exports.addHoles = require_primitiveFns.addHoles;
|
|
11
11
|
exports.adjacentFaces = require_healingFns.adjacentFaces;
|
|
12
12
|
exports.approximateCurve = require_curveFns.approximateCurve;
|
package/dist/topology.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { S as vertexPosition, _ as iterFaces, b as iterVertices, c as getFaces, f as getVertices, g as iterEdges, m as invalidateShapeCache, n as getBounds, p as getWires, s as getEdges, x as iterWires } from "./topologyQueryFns-
|
|
2
|
-
import { S as shapeType, _ as cast, a as faceOrientation, b as isCompSolid, c as innerWires, d as pointOnSurface, f as projectPointOnFace, g as asTopo, h as uvCoordinates, i as faceGeomType, l as normalAt, m as uvBounds, n as faceAxis, o as flipFaceOrientation, r as faceCenter, s as getSurfaceType, t as classifyPointOnFace, u as outerWire, v as downcast, x as iterTopo, y as fromBREP } from "./faceFns-
|
|
3
|
-
import { a as isSameShape, i as isEqualShape, n as getHashCode } from "./shapeFns-
|
|
4
|
-
import { a as curveIsPeriodic, c as curvePointAt, d as flipOrientation, f as getCurveType, h as offsetWire2D, i as curveIsClosed, l as curveStartPoint, m as interpolateCurve, n as curveAxis, o as curveLength, p as getOrientation, r as curveEndPoint, s as curvePeriod, t as approximateCurve, u as curveTangentAt } from "./curveFns-
|
|
5
|
-
import { c as createMeshCache, n as exportSTEP, r as exportSTL, s as clearMeshCache, t as exportIGES } from "./meshFns-
|
|
6
|
-
import { h as fuseAll, p as cutAll } from "./solidBuilders-
|
|
7
|
-
import { A as edgesOfFace, C as shellWithEvolution, D as getNurbsCurveData, E as fuseAllBisect, F as chamferDistAngle, I as toBufferGeometryData, L as toGroupedBufferGeometryData, M as sharedEdges, N as verticesOfEdge, O as getNurbsSurfaceData, P as wiresOfFace, S as intersectWithEvolution, T as cutAllBisect, _ as positionOnCurve, a as healFace, b as filletWithEvolution, g as variableFillet, j as facesOfEdge, k as adjacentFaces, l as solidFromShell, n as fixSelfIntersection, o as healSolid, r as fixShape, s as healWire, t as autoHeal, v as chamferWithEvolution, w as checkBoolean, x as fuseWithEvolution, y as cutWithEvolution, z as toLineGeometryData } from "./healingFns-
|
|
8
|
-
import { C as threePointArc, D as wireLoop, E as wire, S as tangentArc, T as vertex, _ as polygon, a as circle, b as sphere, c as cylinder, d as ellipsoid, f as face, g as offsetFace, h as line, i as bsplineApprox, l as ellipse, m as helix, n as bezier, o as compound, p as filledFace, r as box, s as cone, t as addHoles, u as ellipseArc, v as sewShells, w as torus, x as subFace, y as solid } from "./primitiveFns-
|
|
1
|
+
import { S as vertexPosition, _ as iterFaces, b as iterVertices, c as getFaces, f as getVertices, g as iterEdges, m as invalidateShapeCache, n as getBounds, p as getWires, s as getEdges, x as iterWires } from "./topologyQueryFns-0BIOC7YH.js";
|
|
2
|
+
import { S as shapeType, _ as cast, a as faceOrientation, b as isCompSolid, c as innerWires, d as pointOnSurface, f as projectPointOnFace, g as asTopo, h as uvCoordinates, i as faceGeomType, l as normalAt, m as uvBounds, n as faceAxis, o as flipFaceOrientation, r as faceCenter, s as getSurfaceType, t as classifyPointOnFace, u as outerWire, v as downcast, x as iterTopo, y as fromBREP } from "./faceFns-CmhEEB-L.js";
|
|
3
|
+
import { a as isSameShape, i as isEqualShape, n as getHashCode } from "./shapeFns-B0lN3o3r.js";
|
|
4
|
+
import { a as curveIsPeriodic, c as curvePointAt, d as flipOrientation, f as getCurveType, h as offsetWire2D, i as curveIsClosed, l as curveStartPoint, m as interpolateCurve, n as curveAxis, o as curveLength, p as getOrientation, r as curveEndPoint, s as curvePeriod, t as approximateCurve, u as curveTangentAt } from "./curveFns-DT1yMgBI.js";
|
|
5
|
+
import { c as createMeshCache, n as exportSTEP, r as exportSTL, s as clearMeshCache, t as exportIGES } from "./meshFns-CtchqgDR.js";
|
|
6
|
+
import { h as fuseAll, p as cutAll } from "./solidBuilders-Bb5_uC7F.js";
|
|
7
|
+
import { A as edgesOfFace, C as shellWithEvolution, D as getNurbsCurveData, E as fuseAllBisect, F as chamferDistAngle, I as toBufferGeometryData, L as toGroupedBufferGeometryData, M as sharedEdges, N as verticesOfEdge, O as getNurbsSurfaceData, P as wiresOfFace, S as intersectWithEvolution, T as cutAllBisect, _ as positionOnCurve, a as healFace, b as filletWithEvolution, g as variableFillet, j as facesOfEdge, k as adjacentFaces, l as solidFromShell, n as fixSelfIntersection, o as healSolid, r as fixShape, s as healWire, t as autoHeal, v as chamferWithEvolution, w as checkBoolean, x as fuseWithEvolution, y as cutWithEvolution, z as toLineGeometryData } from "./healingFns-Cxi24K_n.js";
|
|
8
|
+
import { C as threePointArc, D as wireLoop, E as wire, S as tangentArc, T as vertex, _ as polygon, a as circle, b as sphere, c as cylinder, d as ellipsoid, f as face, g as offsetFace, h as line, i as bsplineApprox, l as ellipse, m as helix, n as bezier, o as compound, p as filledFace, r as box, s as cone, t as addHoles, u as ellipseArc, v as sewShells, w as torus, x as subFace, y as solid } from "./primitiveFns-D7R24hoz.js";
|
|
9
9
|
export { addHoles, adjacentFaces, approximateCurve, asTopo, autoHeal, bezier, box, bsplineApprox, cast, chamferDistAngle as chamferDistAngleShape, chamferWithEvolution, checkBoolean, circle, classifyPointOnFace, clearMeshCache, compound, cone, createMeshCache, curveAxis, curveEndPoint, curveIsClosed, curveIsPeriodic, curveLength, curvePeriod, curvePointAt, curveStartPoint, curveTangentAt, cutAll, cutAllBisect, cutWithEvolution, cylinder, fromBREP as deserializeShape, downcast, edgesOfFace, ellipse, ellipseArc, ellipsoid, exportIGES, exportSTEP, exportSTL, face, faceAxis, faceCenter, faceGeomType, faceOrientation, facesOfEdge, filledFace, filletWithEvolution, fixSelfIntersection, fixShape, flipFaceOrientation, flipOrientation, fuseAll, fuseAllBisect, fuseWithEvolution, getBounds, getCurveType, getEdges, getFaces, getHashCode, getNurbsCurveData, getNurbsSurfaceData, getOrientation, getSurfaceType, getVertices, getWires, healFace, healSolid, healWire, helix, innerWires, interpolateCurve, intersectWithEvolution, invalidateShapeCache, isCompSolid, isEqualShape, isSameShape, iterEdges, iterFaces, iterTopo, iterVertices, iterWires, line, normalAt, offsetFace, offsetWire2D, outerWire, pointOnSurface, polygon, positionOnCurve, projectPointOnFace, sewShells, shapeType, sharedEdges, shellWithEvolution, solid, solidFromShell, sphere, subFace, tangentArc, threePointArc, toBufferGeometryData, toGroupedBufferGeometryData, toLineGeometryData, torus, uvBounds, uvCoordinates, variableFillet, vertex, vertexPosition, verticesOfEdge, wire, wireLoop, wiresOfFace };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { N as getOrQueryType, R as DisposalScope, Y as _usingCtx, Z as getKernel, r as castShapeWithKnownType, t as castShape } from "./shapeTypes-
|
|
1
|
+
import { N as getOrQueryType, R as DisposalScope, Y as _usingCtx, Z as getKernel, r as castShapeWithKnownType, t as castShape } from "./shapeTypes-BIcALNFv.js";
|
|
2
2
|
import { A as ok, b as err, f as getSuggestionForCode, p as translateKernelError } from "./errors-DNWJsfVU.js";
|
|
3
3
|
//#region src/core/kernelCall.ts
|
|
4
4
|
function buildError(kind, code, message, cause, suggestion) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-DwNTiXjG.cjs");
|
|
2
2
|
const require_errors = require("./errors-CXJtc4I7.cjs");
|
|
3
3
|
//#region src/core/kernelCall.ts
|
|
4
4
|
function buildError(kind, code, message, cause, suggestion) {
|
package/dist/utils/vec2d.d.ts
CHANGED
|
@@ -29,7 +29,10 @@ export declare const distance2d: ([x0, y0]: Point2D, [x1, y1]?: Point2D) => numb
|
|
|
29
29
|
export declare const squareDistance2d: ([x0, y0]: Point2D, [x1, y1]?: Point2D) => number;
|
|
30
30
|
/** Compute the 2D cross product (z-component of the 3D cross product). */
|
|
31
31
|
export declare function crossProduct2d([x0, y0]: Point2D, [x1, y1]: Point2D): number;
|
|
32
|
-
/**
|
|
32
|
+
/**
|
|
33
|
+
* Compute the dot product of two 2D vectors.
|
|
34
|
+
* @testOnly Exercised by tests/vectorOperations.test.ts.
|
|
35
|
+
*/
|
|
33
36
|
export declare function dotProduct2d([x0, y0]: Point2D, [x1, y1]: Point2D): number;
|
|
34
37
|
/** Compute the signed angle (in radians) between two 2D vectors. */
|
|
35
38
|
export declare const angle2d: ([x0, y0]: Point2D, [x1, y1]?: Point2D) => number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "brepjs",
|
|
3
|
-
"version": "18.
|
|
3
|
+
"version": "18.84.1",
|
|
4
4
|
"description": "Web CAD library with pluggable geometry kernel",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cad",
|
|
@@ -265,7 +265,7 @@
|
|
|
265
265
|
"knip": "6.16.1",
|
|
266
266
|
"lint-staged": "17.0.7",
|
|
267
267
|
"lz-string": "1.5.0",
|
|
268
|
-
"occt-wasm": "3.
|
|
268
|
+
"occt-wasm": "3.4.0",
|
|
269
269
|
"prettier": "3.8.3",
|
|
270
270
|
"puppeteer": "25.1.0",
|
|
271
271
|
"size-limit": "12.1.0",
|
|
@@ -281,7 +281,7 @@
|
|
|
281
281
|
"brepjs-manifold": "^0.1.0",
|
|
282
282
|
"brepjs-opencascade": "^0.5.1 || ^0.6.0 || ^0.7.0 || ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^0.14.0 || ^0.15.0 || ^0.16.0",
|
|
283
283
|
"brepkit-wasm": "^0.10.1 || ^1.0.0 || ^2.0.0",
|
|
284
|
-
"occt-wasm": "^3.
|
|
284
|
+
"occt-wasm": "^3.4.0"
|
|
285
285
|
},
|
|
286
286
|
"peerDependenciesMeta": {
|
|
287
287
|
"brepjs-manifold": {
|