brepjs 18.93.1 → 18.94.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/brepjs.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_textBlueprints = require("./textBlueprints-CKFmYJHD.cjs");
2
+ const require_textBlueprints = require("./textBlueprints-CouQdmgT.cjs");
3
3
  const require_shapeTypes = require("./shapeTypes-DwNTiXjG.cjs");
4
4
  const require_occtWasmAdapter = require("./occtWasmAdapter-Bv2OTOX9.cjs");
5
5
  const require_vec3 = require("./vec3-CFwOI0ZI.cjs");
@@ -17,18 +17,18 @@ const require_arrayAccess = require("./arrayAccess-e4H9cBfh.cjs");
17
17
  const require_surfaceBuilders = require("./surfaceBuilders-DvpxHHIm.cjs");
18
18
  const require_solidBuilders = require("./solidBuilders-B_5FgvuK.cjs");
19
19
  const require_healingFns = require("./healingFns-B1axWCr3.cjs");
20
- const require_threadFns = require("./threadFns-BsRDNoSm.cjs");
20
+ const require_threadFns = require("./threadFns-Cw02--J3.cjs");
21
21
  const require_blueprintSketcher = require("./blueprintSketcher-ChpPo7tq.cjs");
22
22
  const require_helpers = require("./helpers-Cvrmxw4s.cjs");
23
- const require_drawFns = require("./drawFns-C766Umy1.cjs");
23
+ const require_drawFns = require("./drawFns-CAqyimmT.cjs");
24
24
  const require_measureFns = require("./measureFns-BtPAmRfH.cjs");
25
25
  const require_cornerFinder = require("./cornerFinder-DKyR_u8g.cjs");
26
26
  const require_boolean2D = require("./boolean2D-RC6jXv4x.cjs");
27
27
  const require_blueprintFns = require("./blueprintFns-Dp0_BOuL.cjs");
28
28
  const require_importFns = require("./importFns-D09lb1dB.cjs");
29
- const require_loftFns = require("./loftFns-C664R57e.cjs");
29
+ const require_loftFns = require("./loftFns-CyrWJCXb.cjs");
30
30
  const require_cameraFns = require("./cameraFns-IL7qYFaG.cjs");
31
- const require_textMetrics = require("./textMetrics-BYHtOFYW.cjs");
31
+ const require_textMetrics = require("./textMetrics-D0bIGN8i.cjs");
32
32
  const require_shapeRefFns = require("./shapeRefFns-BsX2j-n3.cjs");
33
33
  const require_workerHandler = require("./workerHandler-CdlOTwJg.cjs");
34
34
  const require_primitiveFns = require("./primitiveFns-Bdqm8wjI.cjs");
@@ -3553,7 +3553,7 @@ function revolve(face, options) {
3553
3553
  0,
3554
3554
  0,
3555
3555
  1
3556
- ], options?.angle ?? 360);
3556
+ ], options?.angle ?? 2 * Math.PI);
3557
3557
  }
3558
3558
  /**
3559
3559
  * Loft through a set of wire profiles to create a 3D shape.
package/dist/brepjs.js CHANGED
@@ -15,19 +15,19 @@ import { n as getAtOrThrow, r as lastOrThrow, t as firstOrThrow } from "./arrayA
15
15
  import { _ as makeThreePointArc, d as makeCircle, h as makeLine, l as makeBSplineInterpolation, n as fill, r as makeFace, s as assembleWire } from "./surfaceBuilders-BQx3TjMH.js";
16
16
  import { _ as section$1, b as split$1, d as booleanPipeline, f as cut$2, g as intersect$2, h as fuseAll$2, m as fuse$2, p as cutAll$2, r as makeCylinder, v as sectionToFace$1, y as slice$1 } from "./solidBuilders-Bb5_uC7F.js";
17
17
  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, R as toLODGeometryData, S as intersectWithEvolution, T as cutAllBisect, _ as positionOnCurve, a as healFace, b as filletWithEvolution, c as isValid$1, d as draft$1, f as fillet$1, g as variableFillet, h as thicken$1, i as heal$1, j as facesOfEdge, k as adjacentFaces, l as solidFromShell, m as shell$1, n as fixSelfIntersection, o as healSolid, p as offset$1, r as fixShape, s as healWire, t as autoHeal, u as chamfer$1, v as chamferWithEvolution, w as checkBoolean, x as fuseWithEvolution, y as cutWithEvolution, z as toLineGeometryData } from "./healingFns-Cxi24K_n.js";
18
- import { A as setJointValue, B as findNode, C as cylindricalJoint, D as planarJoint, E as mechanismDOF, F as quatRotate, H as updateNode, I as addChild, J as createAssembly, K as linearPattern, L as collectShapes, M as sphericalJoint, N as quatFromAxisAngle, O as prismaticJoint, P as quatFromTo, R as countNodes, S as addJoint, T as jointTransform, U as walkAssembly, V as removeChild, W as circularPattern, _ as exportURDF, a as deserializeHistory, 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, p as serializeHistory, q as exportAssemblySTEP, 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 createAssemblyNode } from "./threadFns-BWAL8cAZ.js";
18
+ import { A as setJointValue, B as findNode, C as cylindricalJoint, D as planarJoint, E as mechanismDOF, F as quatRotate, H as updateNode, I as addChild, J as createAssembly, K as linearPattern, L as collectShapes, M as sphericalJoint, N as quatFromAxisAngle, O as prismaticJoint, P as quatFromTo, R as countNodes, S as addJoint, T as jointTransform, U as walkAssembly, V as removeChild, W as circularPattern, _ as exportURDF, a as deserializeHistory, 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, p as serializeHistory, q as exportAssemblySTEP, 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 createAssemblyNode } from "./threadFns-DdesdIxG.js";
19
19
  import { n as BaseSketcher2d, r as organiseBlueprints, t as BlueprintSketcher } from "./blueprintSketcher-CxFmYBvh.js";
20
20
  import { a as createTypedFinder, i as wireFinder, n as edgeFinder, r as faceFinder, t as getSingleFace } from "./helpers-CKjmUSf0.js";
21
- import { A as sketchEllipse, 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, _ 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-C63kOWvC.js";
21
+ import { A as sketchEllipse, 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, _ 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-BKYgyfW4.js";
22
22
  import { a as measureDistance, c as measureLinearProps, d as measureVolumeProps, i as measureCurvatureAtMid, l as measureSurfaceProps, n as measureArea, o as measureDistanceProps, r as measureCurvatureAt, s as measureLength, t as createDistanceQuery, u as measureVolume } from "./measureFns-D0e8tGSP.js";
23
23
  import { t as cornerFinder } from "./cornerFinder-7M1wdtcY.js";
24
24
  import { a as fuseBlueprints, c as roundedRectangleBlueprint, i as cutBlueprints, n as fuse2D, o as intersectBlueprints, r as intersect2D, s as polysidesBlueprint, t as cut2D } from "./boolean2D-CIohnI9l.js";
25
25
  import { S as reverseCurve, _ as curve2dIsOnCurve, a as isInside2D, b as curve2dSplitAt, c as scale2D, d as stretch2D, f as toSVGPathD, g as curve2dFirstPoint, h as curve2dDistanceFrom, i as getOrientation2D, l as sketchOnFace2D, m as curve2dBoundingBox, n as createCompoundBlueprint, o as mirror2D, p as translate2D, r as getBounds2D, s as rotate2D, t as createBlueprint, u as sketchOnPlane2D, v as curve2dLastPoint, x as curve2dTangentAt, y as curve2dParameter } from "./blueprintFns-DCA97w4C.js";
26
26
  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-CDaNqu4H.js";
27
- import { a as revolve$1, c as multiSectionSweep, d as twistExtrude, i as extrudeAll, l as supportExtrude, n as loftAll, o as complexExtrude, r as extrude$1, s as guidedSweep, t as loft$1, u as sweep$1 } from "./loftFns-C8Ep9McS.js";
28
- 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, n as getFont, o as compoundSketchExtrude, p as sketchRevolve, r as loadFont, s as compoundSketchFace, t as textBlueprints, u as sketchExtrude, v as CompoundSketch } from "./textBlueprints-CU7MHMR8.js";
27
+ import { a as revolve$1, c as multiSectionSweep, d as twistExtrude, i as extrudeAll, l as supportExtrude, n as loftAll, o as complexExtrude, r as extrude$1, s as guidedSweep, t as loft$1, u as sweep$1 } from "./loftFns-CxnBxE9h.js";
28
+ 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, n as getFont, o as compoundSketchExtrude, p as sketchRevolve, r as loadFont, s as compoundSketchFace, t as textBlueprints, u as sketchExtrude, v as CompoundSketch } from "./textBlueprints-zVMpbHdE.js";
29
29
  import { a as makeProjectedEdges, i as projectEdges, n as cameraLookAt, r as createCamera, s as isProjectionPlane, t as cameraFromPlane } from "./cameraFns-BA7CVtWJ.js";
30
- import { n as textMetrics, r as sketchText, t as fontMetrics } from "./textMetrics-BDTWvvyd.js";
30
+ import { n as textMetrics, r as sketchText, t as fontMetrics } from "./textMetrics-CfsZHNGo.js";
31
31
  import { a as updateRoles, i as resolveRef, n as captureHint, o as defaultScorer, r as createRef, t as assignRoles } from "./shapeRefFns-C4JSc_jF.js";
32
32
  import { a as createTaskQueue, c as isEmpty$1, d as isDisposeRequest, f as isErrorResponse, h as isSuccessResponse, i as createWorkerClient, l as pendingCount, m as isOperationRequest, n as createWorkerHandler, o as dequeueTask, p as isInitRequest, r as registerHandler, s as enqueueTask, t as createOperationRegistry, u as rejectAll } from "./workerHandler-CFetYgIm.js";
33
33
  import { C as threePointArc, D as wireLoop, E as wire, S as tangentArc, T as vertex, _ as polygon, a as circle, b as sphere$1, 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$1, x as subFace, y as solid } from "./primitiveFns-D7R24hoz.js";
@@ -3557,7 +3557,7 @@ function revolve(face, options) {
3557
3557
  0,
3558
3558
  0,
3559
3559
  1
3560
- ], options?.angle ?? 360);
3560
+ ], options?.angle ?? 2 * Math.PI);
3561
3561
  }
3562
3562
  /**
3563
3563
  * Loft through a set of wire profiles to create a 3D shape.
@@ -15,7 +15,7 @@ import { _ as samePoint$1, b as subtract2d, c as PRECISION_OFFSET, l as add2d, y
15
15
  import { _ as Curve2D, a as edgeToCurve, c as make2dCircle, d as make2dInerpolatedBSplineCurve, f as make2dSegmentCurve, g as approximateAsSvgCompatibleCurve, i as curvesAsEdgesOnPlane, l as make2dEllipse, o as make2dArcFromCenter, t as Blueprint, v as deserializeCurve2D, y as BoundingBox2d } from "./blueprint-BL2TdtBX.js";
16
16
  import { t as cornerFinder } from "./cornerFinder-7M1wdtcY.js";
17
17
  import { c as roundedRectangleBlueprint, n as fuse2D, r as intersect2D, s as polysidesBlueprint, t as cut2D } from "./boolean2D-CIohnI9l.js";
18
- import { _ as wrapSketchDataArray, a as Sketch, g as wrapSketchData, i as Sketches, t as textBlueprints } from "./textBlueprints-CU7MHMR8.js";
18
+ import { _ as wrapSketchDataArray, a as Sketch, g as wrapSketchData, i as Sketches, t as textBlueprints } from "./textBlueprints-zVMpbHdE.js";
19
19
  import { i as projectEdges, t as cameraFromPlane } from "./cameraFns-BA7CVtWJ.js";
20
20
  //#region src/2d/lib/stitching.ts
21
21
  /**
@@ -1,4 +1,4 @@
1
- const require_textBlueprints = require("./textBlueprints-CKFmYJHD.cjs");
1
+ const require_textBlueprints = require("./textBlueprints-CouQdmgT.cjs");
2
2
  const require_shapeTypes = require("./shapeTypes-DwNTiXjG.cjs");
3
3
  const require_vec3 = require("./vec3-CFwOI0ZI.cjs");
4
4
  const require_errors = require("./errors-CXJtc4I7.cjs");
@@ -309,7 +309,7 @@ function extrude(face, extrusionVec) {
309
309
  * @param face - The face to revolve.
310
310
  * @param center - A point on the rotation axis. Defaults to the origin.
311
311
  * @param direction - Direction vector of the rotation axis. Defaults to Z-up.
312
- * @param angle - Rotation angle in degrees (0-360). Defaults to a full revolution.
312
+ * @param angle - Rotation angle in **radians**. Defaults to 2π (a full revolution).
313
313
  * @returns `Result` containing the revolved 3D shape, or an error if the result is not 3D.
314
314
  */
315
315
  function revolve(face, center = [
@@ -320,7 +320,7 @@ function revolve(face, center = [
320
320
  0,
321
321
  0,
322
322
  1
323
- ], angle = 360) {
323
+ ], angle = 2 * Math.PI) {
324
324
  if (getKernel().isNull(face.wrapped)) return err(validationError(BrepErrorCode.NULL_SHAPE_INPUT, "revolve: face is a null shape"));
325
325
  try {
326
326
  const result = castShape(getKernel().revolveVec(face.wrapped, [...center], [...direction], angle));
@@ -309,7 +309,7 @@ function extrude(face, extrusionVec) {
309
309
  * @param face - The face to revolve.
310
310
  * @param center - A point on the rotation axis. Defaults to the origin.
311
311
  * @param direction - Direction vector of the rotation axis. Defaults to Z-up.
312
- * @param angle - Rotation angle in degrees (0-360). Defaults to a full revolution.
312
+ * @param angle - Rotation angle in **radians**. Defaults to 2π (a full revolution).
313
313
  * @returns `Result` containing the revolved 3D shape, or an error if the result is not 3D.
314
314
  */
315
315
  function revolve(face, center = [
@@ -320,7 +320,7 @@ function revolve(face, center = [
320
320
  0,
321
321
  0,
322
322
  1
323
- ], angle = 360) {
323
+ ], angle = 2 * Math.PI) {
324
324
  if (require_shapeTypes.getKernel().isNull(face.wrapped)) return require_errors.err(require_errors.validationError(require_errors.BrepErrorCode.NULL_SHAPE_INPUT, "revolve: face is a null shape"));
325
325
  try {
326
326
  const result = require_shapeTypes.castShape(require_shapeTypes.getKernel().revolveVec(face.wrapped, [...center], [...direction], angle));
@@ -20,7 +20,7 @@ export interface RevolveOptions {
20
20
  axis?: Vec3;
21
21
  /** Pivot point. Default: [0, 0, 0]. */
22
22
  at?: Vec3;
23
- /** Rotation angle in degrees. Default: 360 (full revolution). */
23
+ /** Rotation angle in **radians**. Default: (full revolution). */
24
24
  angle?: number;
25
25
  }
26
26
  /**
@@ -17,7 +17,7 @@ export declare function extrude(face: OrientedFace<Dimension> & PlanarFace<Dimen
17
17
  * @param face - The face to revolve.
18
18
  * @param center - A point on the rotation axis. Defaults to the origin.
19
19
  * @param direction - Direction vector of the rotation axis. Defaults to Z-up.
20
- * @param angle - Rotation angle in degrees (0-360). Defaults to a full revolution.
20
+ * @param angle - Rotation angle in **radians**. Defaults to 2π (a full revolution).
21
21
  * @returns `Result` containing the revolved 3D shape, or an error if the result is not 3D.
22
22
  */
23
23
  export declare function revolve(face: OrientedFace<Dimension> & PlanarFace<Dimension>, center?: Vec3, direction?: Vec3, angle?: number): Result<Shape3D>;
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_threadFns = require("./threadFns-BsRDNoSm.cjs");
3
- const require_loftFns = require("./loftFns-C664R57e.cjs");
2
+ const require_threadFns = require("./threadFns-Cw02--J3.cjs");
3
+ const require_loftFns = require("./loftFns-CyrWJCXb.cjs");
4
4
  exports.addChild = require_threadFns.addChild;
5
5
  exports.addJoint = require_threadFns.addJoint;
6
6
  exports.addStep = require_threadFns.addStep;
@@ -1,3 +1,3 @@
1
- import { A as setJointValue, B as findNode, C as cylindricalJoint, D as planarJoint, E as mechanismDOF, G as gridPattern, H as updateNode, I as addChild, J as createAssembly, K as linearPattern, L as collectShapes, M as sphericalJoint, O as prismaticJoint, R as countNodes, S as addJoint, T as jointTransform, U as walkAssembly, V as removeChild, W as circularPattern, _ 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 exportAssemblySTEP, 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 createAssemblyNode } from "./threadFns-BWAL8cAZ.js";
2
- import { d as twistExtrude, l as supportExtrude, o as complexExtrude, u as sweep } from "./loftFns-C8Ep9McS.js";
1
+ import { A as setJointValue, B as findNode, C as cylindricalJoint, D as planarJoint, E as mechanismDOF, G as gridPattern, H as updateNode, I as addChild, J as createAssembly, K as linearPattern, L as collectShapes, M as sphericalJoint, O as prismaticJoint, R as countNodes, S as addJoint, T as jointTransform, U as walkAssembly, V as removeChild, W as circularPattern, _ 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 exportAssemblySTEP, 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 createAssemblyNode } from "./threadFns-DdesdIxG.js";
2
+ import { d as twistExtrude, l as supportExtrude, o as complexExtrude, u as sweep } from "./loftFns-CxnBxE9h.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,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_textBlueprints = require("./textBlueprints-CKFmYJHD.cjs");
2
+ const require_textBlueprints = require("./textBlueprints-CouQdmgT.cjs");
3
3
  const require_blueprintSketcher = require("./blueprintSketcher-ChpPo7tq.cjs");
4
- const require_drawFns = require("./drawFns-C766Umy1.cjs");
4
+ const require_drawFns = require("./drawFns-CAqyimmT.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
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-C63kOWvC.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-CU7MHMR8.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-BKYgyfW4.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-zVMpbHdE.js";
4
4
  //#region src/sketching.ts
5
5
  /**
6
6
  * brepjs/sketching — Sketcher, Drawing, and sketch-to-shape operations.
package/dist/text.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_textBlueprints = require("./textBlueprints-CKFmYJHD.cjs");
3
- const require_textMetrics = require("./textMetrics-BYHtOFYW.cjs");
2
+ const require_textBlueprints = require("./textBlueprints-CouQdmgT.cjs");
3
+ const require_textMetrics = require("./textMetrics-D0bIGN8i.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-CU7MHMR8.js";
2
- import { n as textMetrics, r as sketchText, t as fontMetrics } from "./textMetrics-BDTWvvyd.js";
1
+ import { n as getFont, r as loadFont, t as textBlueprints } from "./textBlueprints-zVMpbHdE.js";
2
+ import { n as textMetrics, r as sketchText, t as fontMetrics } from "./textMetrics-CfsZHNGo.js";
3
3
  export { fontMetrics, getFont, loadFont, sketchText, textBlueprints, textMetrics };
@@ -40,7 +40,7 @@ const require_arrayAccess = require("./arrayAccess-e4H9cBfh.cjs");
40
40
  const require_surfaceBuilders = require("./surfaceBuilders-DvpxHHIm.cjs");
41
41
  const require_solidBuilders = require("./solidBuilders-B_5FgvuK.cjs");
42
42
  const require_blueprintSketcher = require("./blueprintSketcher-ChpPo7tq.cjs");
43
- const require_loftFns = require("./loftFns-C664R57e.cjs");
43
+ const require_loftFns = require("./loftFns-CyrWJCXb.cjs");
44
44
  let opentype_js = require("opentype.js");
45
45
  opentype_js = __toESM(opentype_js, 1);
46
46
  //#region src/sketching/compoundSketch.ts
@@ -9,7 +9,7 @@ import { n as getAtOrThrow, t as firstOrThrow } from "./arrayAccess-DrUGPADn.js"
9
9
  import { i as makeNewFaceWithinFace, r as makeFace, t as addHolesInFace } from "./surfaceBuilders-BQx3TjMH.js";
10
10
  import { o as makeSolid, p as cutAll, t as makeCompound } from "./solidBuilders-Bb5_uC7F.js";
11
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";
12
+ import { a as revolve, d as twistExtrude, o as complexExtrude, r as extrude, t as loft, u as sweep } from "./loftFns-CxnBxE9h.js";
13
13
  import opentype from "opentype.js";
14
14
  //#region src/sketching/compoundSketch.ts
15
15
  /**
@@ -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-CU7MHMR8.js";
2
+ import { g as wrapSketchData, i as Sketches, n as getFont, t as textBlueprints, v as CompoundSketch } from "./textBlueprints-zVMpbHdE.js";
3
3
  //#region src/text/sketchText.ts
4
4
  /**
5
5
  * Render text as 3D sketch outlines on a plane.
@@ -1,4 +1,4 @@
1
- const require_textBlueprints = require("./textBlueprints-CKFmYJHD.cjs");
1
+ const require_textBlueprints = require("./textBlueprints-CouQdmgT.cjs");
2
2
  const require_errors = require("./errors-CXJtc4I7.cjs");
3
3
  //#region src/text/sketchText.ts
4
4
  /**
@@ -4,7 +4,7 @@ const require_vecOps = require("./vecOps-CCnJt-yH.cjs");
4
4
  const require_faceFns = require("./faceFns-DSdVqqVP.cjs");
5
5
  const require_shapeFns = require("./shapeFns-CeSEceUG.cjs");
6
6
  const require_solidBuilders = require("./solidBuilders-B_5FgvuK.cjs");
7
- const require_loftFns = require("./loftFns-C664R57e.cjs");
7
+ const require_loftFns = require("./loftFns-CyrWJCXb.cjs");
8
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`. */
@@ -4,7 +4,7 @@ import { d as vecNormalize, s as vecIsZero } from "./vecOps-SKPRvPH-.js";
4
4
  import { y as fromBREP } from "./faceFns-CmhEEB-L.js";
5
5
  import { s as toBREP } from "./shapeFns-B0lN3o3r.js";
6
6
  import { h as fuseAll } from "./solidBuilders-Bb5_uC7F.js";
7
- import { t as loft } from "./loftFns-C8Ep9McS.js";
7
+ import { t as loft } from "./loftFns-CxnBxE9h.js";
8
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`. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "brepjs",
3
- "version": "18.93.1",
3
+ "version": "18.94.0",
4
4
  "description": "Web CAD library with pluggable geometry kernel",
5
5
  "keywords": [
6
6
  "cad",
@@ -305,7 +305,7 @@
305
305
  "opentype.js": "1.3.4"
306
306
  },
307
307
  "overrides": {
308
- "dompurify": "^3.4.10",
308
+ "dompurify": "^3.4.11",
309
309
  "brace-expansion": "^5.0.6",
310
310
  "esbuild@<0.25.0": "^0.25.0",
311
311
  "esbuild@>=0.26.0 <0.28.1": "^0.28.1",