brepjs 18.119.3 → 18.119.5

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.
Files changed (31) hide show
  1. package/dist/2d/blueprints/blueprints.d.ts +3 -0
  2. package/dist/2d/blueprints/compoundBlueprint.d.ts +3 -0
  3. package/dist/2d/blueprints/lib.d.ts +6 -0
  4. package/dist/2d.cjs +4 -4
  5. package/dist/2d.js +4 -4
  6. package/dist/{blueprint-CAG6jseD.js → blueprint-DEMSX-hc.js} +4 -1
  7. package/dist/{blueprint-BGcBMy3b.cjs → blueprint-DUnNPwQL.cjs} +4 -1
  8. package/dist/{blueprintFns-B4C3zH7N.js → blueprintFns-DSj4RTjU.js} +2 -2
  9. package/dist/{blueprintFns-CnoqynzI.cjs → blueprintFns-Dg8V99O9.cjs} +2 -2
  10. package/dist/{blueprintSketcher-CKKxvxB-.js → blueprintSketcher-gMuUUPb-.js} +27 -1
  11. package/dist/{blueprintSketcher-BNz6f36D.cjs → blueprintSketcher-gXVPrPlj.cjs} +27 -1
  12. package/dist/{boolean2D-B-0xobBP.cjs → boolean2D-BpmxQ1AH.cjs} +2 -2
  13. package/dist/{boolean2D-C_1gMcZ6.js → boolean2D-DKT0BgZs.js} +2 -2
  14. package/dist/brepjs.cjs +7 -7
  15. package/dist/brepjs.js +7 -7
  16. package/dist/{drawFns-B14M5M68.cjs → drawFns-CI6CpqO8.cjs} +25 -6
  17. package/dist/{drawFns-BShGVVXW.js → drawFns-CrfBz_wj.js} +25 -6
  18. package/dist/{importFns-BHs19muu.js → importFns-DqxAZFb-.js} +1 -1
  19. package/dist/{importFns-GySbuvVv.cjs → importFns-pr-r5qiV.cjs} +1 -1
  20. package/dist/io.cjs +1 -1
  21. package/dist/io.js +1 -1
  22. package/dist/sketching/drawing.d.ts +9 -1
  23. package/dist/sketching.cjs +3 -3
  24. package/dist/sketching.js +3 -3
  25. package/dist/text.cjs +2 -2
  26. package/dist/text.js +2 -2
  27. package/dist/{textBlueprints-8EcWreab.cjs → textBlueprints-BY0FEg59.cjs} +1 -1
  28. package/dist/{textBlueprints-rA1HT6j1.js → textBlueprints-ZzYg3XTS.js} +1 -1
  29. package/dist/{textMetrics-Bcbso1Ns.js → textMetrics-Diakbtem.js} +1 -1
  30. package/dist/{textMetrics-GPBu9JKi.cjs → textMetrics-f5yXR4OG.cjs} +1 -1
  31. package/package.json +1 -2
@@ -23,6 +23,9 @@ export default class Blueprints implements DrawingInterface {
23
23
  protected _boundingBox: BoundingBox2d | null;
24
24
  /** Create a collection from an array of blueprints and/or compound blueprints. */
25
25
  constructor(blueprints: Array<Blueprint | CompoundBlueprint>);
26
+ /** Release the resources held by every child blueprint and the cached bounding box. */
27
+ delete(): void;
28
+ [Symbol.dispose](): void;
26
29
  /** Return a multi-line debug representation of every child blueprint. */
27
30
  get repr(): string;
28
31
  /** Return a deep copy of this collection and all its children. */
@@ -32,6 +32,9 @@ export default class CompoundBlueprint implements DrawingInterface {
32
32
  * @throws BrepBugError if the array is empty (use {@link createCompoundBlueprint} for Result-based validation).
33
33
  */
34
34
  constructor(blueprints: Blueprint[]);
35
+ /** Release the resources held by every child blueprint and the cached bounding box. */
36
+ delete(): void;
37
+ [Symbol.dispose](): void;
35
38
  /** Return a deep copy of this compound blueprint and all its children. */
36
39
  clone(): CompoundBlueprint;
37
40
  /** Compute (and cache) the combined bounding box of all child blueprints. */
@@ -23,6 +23,12 @@ export interface SketchData {
23
23
  }
24
24
  export interface DrawingInterface {
25
25
  clone(): DrawingInterface;
26
+ /**
27
+ * Release the resources held by this drawing, cascading to child blueprints
28
+ * and their curves. The `boundingBox` handed out earlier dies with it.
29
+ */
30
+ delete(): void;
31
+ [Symbol.dispose](): void;
26
32
  boundingBox: BoundingBox2d;
27
33
  stretch(ratio: number, direction: Point2D, origin: Point2D): DrawingInterface;
28
34
  rotate(angle: number, center: Point2D): DrawingInterface;
package/dist/2d.cjs CHANGED
@@ -2,10 +2,10 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_shapeTypes = require("./shapeTypes-CkcIL7zv.cjs");
3
3
  const require_errors = require("./errors-RHkKO5bZ.cjs");
4
4
  const require_topologyQueryFns = require("./topologyQueryFns-Bia7o8l_.cjs");
5
- const require_blueprintSketcher = require("./blueprintSketcher-BNz6f36D.cjs");
6
- const require_blueprint = require("./blueprint-BGcBMy3b.cjs");
7
- const require_boolean2D = require("./boolean2D-B-0xobBP.cjs");
8
- const require_blueprintFns = require("./blueprintFns-CnoqynzI.cjs");
5
+ const require_blueprintSketcher = require("./blueprintSketcher-gXVPrPlj.cjs");
6
+ const require_blueprint = require("./blueprint-DUnNPwQL.cjs");
7
+ const require_boolean2D = require("./boolean2D-BpmxQ1AH.cjs");
8
+ const require_blueprintFns = require("./blueprintFns-Dg8V99O9.cjs");
9
9
  //#region src/core/curve2dHandle.ts
10
10
  /**
11
11
  * Wrap a raw kernel 2D curve handle with brand + disposal tracking.
package/dist/2d.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import { P as createKernelHandle, c as createEdge, q as getKernel2D } from "./shapeTypes-t49f64Dx.js";
2
2
  import { E as ok, d as validationError, g as err, t as BrepErrorCode } from "./errors-MHLiNE-C.js";
3
3
  import { T as kernelCallRaw } from "./topologyQueryFns-BkQ6Q7gN.js";
4
- import { a as Blueprints, i as CompoundBlueprint, r as organiseBlueprints } from "./blueprintSketcher-CKKxvxB-.js";
5
- import { _ as Curve2D, b as BoundingBox2d, t as Blueprint } from "./blueprint-CAG6jseD.js";
6
- 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-C_1gMcZ6.js";
7
- 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, 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-B4C3zH7N.js";
4
+ import { a as Blueprints, i as CompoundBlueprint, r as organiseBlueprints } from "./blueprintSketcher-gMuUUPb-.js";
5
+ import { _ as Curve2D, b as BoundingBox2d, t as Blueprint } from "./blueprint-DEMSX-hc.js";
6
+ 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-DKT0BgZs.js";
7
+ 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, 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-DSj4RTjU.js";
8
8
  //#region src/core/curve2dHandle.ts
9
9
  /**
10
10
  * Wrap a raw kernel 2D curve handle with brand + disposal tracking.
@@ -778,7 +778,10 @@ var Blueprint = class Blueprint {
778
778
  this.curves.forEach((c) => {
779
779
  c.delete();
780
780
  });
781
- if (this._boundingBox) this._boundingBox.delete();
781
+ if (this._boundingBox) {
782
+ this._boundingBox.delete();
783
+ this._boundingBox = null;
784
+ }
782
785
  }
783
786
  [Symbol.dispose]() {
784
787
  this.delete();
@@ -779,7 +779,10 @@ var Blueprint = class Blueprint {
779
779
  this.curves.forEach((c) => {
780
780
  c.delete();
781
781
  });
782
- if (this._boundingBox) this._boundingBox.delete();
782
+ if (this._boundingBox) {
783
+ this._boundingBox.delete();
784
+ this._boundingBox = null;
785
+ }
783
786
  }
784
787
  [Symbol.dispose]() {
785
788
  this.delete();
@@ -1,6 +1,6 @@
1
1
  import { E as ok, d as validationError, g as err, t as BrepErrorCode } from "./errors-MHLiNE-C.js";
2
- import { i as CompoundBlueprint } from "./blueprintSketcher-CKKxvxB-.js";
3
- import { t as Blueprint } from "./blueprint-CAG6jseD.js";
2
+ import { i as CompoundBlueprint } from "./blueprintSketcher-gMuUUPb-.js";
3
+ import { t as Blueprint } from "./blueprint-DEMSX-hc.js";
4
4
  //#region src/2d/lib/curve2dFns.ts
5
5
  /**
6
6
  * Return a reversed copy of the curve (non-mutating).
@@ -1,6 +1,6 @@
1
1
  const require_errors = require("./errors-RHkKO5bZ.cjs");
2
- const require_blueprintSketcher = require("./blueprintSketcher-BNz6f36D.cjs");
3
- const require_blueprint = require("./blueprint-BGcBMy3b.cjs");
2
+ const require_blueprintSketcher = require("./blueprintSketcher-gXVPrPlj.cjs");
3
+ const require_blueprint = require("./blueprint-DUnNPwQL.cjs");
4
4
  //#region src/2d/lib/curve2dFns.ts
5
5
  /**
6
6
  * Return a reversed copy of the curve (non-mutating).
@@ -4,7 +4,7 @@ import { E as ok, P as unwrap, g as err, n as computationError, s as safeIndex,
4
4
  import { r as RAD2DEG, t as DEG2RAD } from "./constants-ITRzCnCp.js";
5
5
  import { t as firstOrThrow } from "./arrayAccess-DrUGPADn.js";
6
6
  import { _ as samePoint, b as subtract2d, c as add2d, d as crossProduct2d, f as distance2d, g as rotate2d, h as polarToCartesian, m as polarAngle2d, u as cartesianToPolar, v as scalarMultiply2d } from "./helpers-Du_OdHuy.js";
7
- import { S as isPoint2D, _ as Curve2D, b as BoundingBox2d, c as make2dCircle, f as make2dSegmentCurve, h as approximateAsBSpline, m as make2dThreePointArc, n as asSVG, o as make2dArcFromCenter, p as make2dTangentArc, r as viewbox, s as make2dBezierCurve, t as Blueprint, u as make2dEllipseArc, y as normalize2d } from "./blueprint-CAG6jseD.js";
7
+ import { S as isPoint2D, _ as Curve2D, b as BoundingBox2d, c as make2dCircle, f as make2dSegmentCurve, h as approximateAsBSpline, m as make2dThreePointArc, n as asSVG, o as make2dArcFromCenter, p as make2dTangentArc, r as viewbox, s as make2dBezierCurve, t as Blueprint, u as make2dEllipseArc, y as normalize2d } from "./blueprint-DEMSX-hc.js";
8
8
  //#region node_modules/flatqueue/index.js
9
9
  /**
10
10
  * @typedef {Float64ArrayConstructor | Float32ArrayConstructor |
@@ -882,6 +882,19 @@ var Blueprints = class Blueprints {
882
882
  this.blueprints = blueprints;
883
883
  this._boundingBox = null;
884
884
  }
885
+ /** Release the resources held by every child blueprint and the cached bounding box. */
886
+ delete() {
887
+ this.blueprints.forEach((bp) => {
888
+ bp.delete();
889
+ });
890
+ if (this._boundingBox) {
891
+ this._boundingBox.delete();
892
+ this._boundingBox = null;
893
+ }
894
+ }
895
+ [Symbol.dispose]() {
896
+ this.delete();
897
+ }
885
898
  /** Return a multi-line debug representation of every child blueprint. */
886
899
  get repr() {
887
900
  return ["Blueprints", ...this.blueprints.map((b) => b.repr)].join("\n");
@@ -989,6 +1002,19 @@ var CompoundBlueprint = class CompoundBlueprint {
989
1002
  this.blueprints = blueprints;
990
1003
  this._boundingBox = null;
991
1004
  }
1005
+ /** Release the resources held by every child blueprint and the cached bounding box. */
1006
+ delete() {
1007
+ this.blueprints.forEach((bp) => {
1008
+ bp.delete();
1009
+ });
1010
+ if (this._boundingBox) {
1011
+ this._boundingBox.delete();
1012
+ this._boundingBox = null;
1013
+ }
1014
+ }
1015
+ [Symbol.dispose]() {
1016
+ this.delete();
1017
+ }
992
1018
  /** Return a deep copy of this compound blueprint and all its children. */
993
1019
  clone() {
994
1020
  return new CompoundBlueprint(this.blueprints.map((bp) => bp.clone()));
@@ -4,7 +4,7 @@ const require_errors = require("./errors-RHkKO5bZ.cjs");
4
4
  const require_constants = require("./constants-BOVyEYGH.cjs");
5
5
  const require_arrayAccess = require("./arrayAccess-e4H9cBfh.cjs");
6
6
  const require_helpers = require("./helpers-BfkBvokP.cjs");
7
- const require_blueprint = require("./blueprint-BGcBMy3b.cjs");
7
+ const require_blueprint = require("./blueprint-DUnNPwQL.cjs");
8
8
  //#region node_modules/flatqueue/index.js
9
9
  /**
10
10
  * @typedef {Float64ArrayConstructor | Float32ArrayConstructor |
@@ -882,6 +882,19 @@ var Blueprints = class Blueprints {
882
882
  this.blueprints = blueprints;
883
883
  this._boundingBox = null;
884
884
  }
885
+ /** Release the resources held by every child blueprint and the cached bounding box. */
886
+ delete() {
887
+ this.blueprints.forEach((bp) => {
888
+ bp.delete();
889
+ });
890
+ if (this._boundingBox) {
891
+ this._boundingBox.delete();
892
+ this._boundingBox = null;
893
+ }
894
+ }
895
+ [Symbol.dispose]() {
896
+ this.delete();
897
+ }
885
898
  /** Return a multi-line debug representation of every child blueprint. */
886
899
  get repr() {
887
900
  return ["Blueprints", ...this.blueprints.map((b) => b.repr)].join("\n");
@@ -989,6 +1002,19 @@ var CompoundBlueprint = class CompoundBlueprint {
989
1002
  this.blueprints = blueprints;
990
1003
  this._boundingBox = null;
991
1004
  }
1005
+ /** Release the resources held by every child blueprint and the cached bounding box. */
1006
+ delete() {
1007
+ this.blueprints.forEach((bp) => {
1008
+ bp.delete();
1009
+ });
1010
+ if (this._boundingBox) {
1011
+ this._boundingBox.delete();
1012
+ this._boundingBox = null;
1013
+ }
1014
+ }
1015
+ [Symbol.dispose]() {
1016
+ this.delete();
1017
+ }
992
1018
  /** Return a deep copy of this compound blueprint and all its children. */
993
1019
  clone() {
994
1020
  return new CompoundBlueprint(this.blueprints.map((bp) => bp.clone()));
@@ -2,9 +2,9 @@ const require_bug = require("./bug-O02CsAmt.cjs");
2
2
  const require_errors = require("./errors-RHkKO5bZ.cjs");
3
3
  const require_arrayAccess = require("./arrayAccess-e4H9cBfh.cjs");
4
4
  const require_surfaceBuilders = require("./surfaceBuilders-Biqx51el.cjs");
5
- const require_blueprintSketcher = require("./blueprintSketcher-BNz6f36D.cjs");
5
+ const require_blueprintSketcher = require("./blueprintSketcher-gXVPrPlj.cjs");
6
6
  const require_helpers = require("./helpers-BfkBvokP.cjs");
7
- const require_blueprint = require("./blueprint-BGcBMy3b.cjs");
7
+ const require_blueprint = require("./blueprint-DUnNPwQL.cjs");
8
8
  //#region src/2d/blueprints/cannedBlueprints.ts
9
9
  /**
10
10
  * Create a regular polygon blueprint inscribed in a circle of the given radius.
@@ -2,9 +2,9 @@ import { i as wasmIndex, n as bug } from "./bug-BdOHwn_e.js";
2
2
  import { P as unwrap, s as safeIndex } from "./errors-MHLiNE-C.js";
3
3
  import { r as lastOrThrow } from "./arrayAccess-DrUGPADn.js";
4
4
  import { v as zip } from "./surfaceBuilders-BryY-i0F.js";
5
- import { a as Blueprints, i as CompoundBlueprint, l as intersectCurves, r as organiseBlueprints, t as BlueprintSketcher, u as Flatbush } from "./blueprintSketcher-CKKxvxB-.js";
5
+ import { a as Blueprints, i as CompoundBlueprint, l as intersectCurves, r as organiseBlueprints, t as BlueprintSketcher, u as Flatbush } from "./blueprintSketcher-gMuUUPb-.js";
6
6
  import { _ as samePoint$1, b as subtract2d, d as crossProduct2d, o as PRECISION_INTERSECTION } from "./helpers-Du_OdHuy.js";
7
- import { f as make2dSegmentCurve, t as Blueprint, x as removeDuplicatePoints } from "./blueprint-CAG6jseD.js";
7
+ import { f as make2dSegmentCurve, t as Blueprint, x as removeDuplicatePoints } from "./blueprint-DEMSX-hc.js";
8
8
  //#region src/2d/blueprints/cannedBlueprints.ts
9
9
  /**
10
10
  * Create a regular polygon blueprint inscribed in a circle of the given radius.
package/dist/brepjs.cjs CHANGED
@@ -21,18 +21,18 @@ const require_arrayAccess = require("./arrayAccess-e4H9cBfh.cjs");
21
21
  const require_surfaceBuilders = require("./surfaceBuilders-Biqx51el.cjs");
22
22
  const require_healingFns = require("./healingFns-Hx4oTlq8.cjs");
23
23
  const require_threadFns = require("./threadFns-DRrk9Qod.cjs");
24
- const require_blueprintSketcher = require("./blueprintSketcher-BNz6f36D.cjs");
24
+ const require_blueprintSketcher = require("./blueprintSketcher-gXVPrPlj.cjs");
25
25
  const require_helpers = require("./helpers-BfkBvokP.cjs");
26
- const require_drawFns = require("./drawFns-B14M5M68.cjs");
26
+ const require_drawFns = require("./drawFns-CI6CpqO8.cjs");
27
27
  const require_measureFns = require("./measureFns-CJGrmhHT.cjs");
28
28
  const require_cornerFinder = require("./cornerFinder-mfsUMi5g.cjs");
29
- const require_boolean2D = require("./boolean2D-B-0xobBP.cjs");
30
- const require_blueprintFns = require("./blueprintFns-CnoqynzI.cjs");
31
- const require_importFns = require("./importFns-GySbuvVv.cjs");
29
+ const require_boolean2D = require("./boolean2D-BpmxQ1AH.cjs");
30
+ const require_blueprintFns = require("./blueprintFns-Dg8V99O9.cjs");
31
+ const require_importFns = require("./importFns-pr-r5qiV.cjs");
32
32
  const require_loftFns = require("./loftFns-BdpZ8FMN.cjs");
33
- const require_textBlueprints = require("./textBlueprints-8EcWreab.cjs");
33
+ const require_textBlueprints = require("./textBlueprints-BY0FEg59.cjs");
34
34
  const require_cameraFns = require("./cameraFns-2-haLzLi.cjs");
35
- const require_textMetrics = require("./textMetrics-GPBu9JKi.cjs");
35
+ const require_textMetrics = require("./textMetrics-f5yXR4OG.cjs");
36
36
  const require_adjacencyFns = require("./adjacencyFns-DSxuQYnb.cjs");
37
37
  const require_refResolveFns = require("./refResolveFns-CVDLwh12.cjs");
38
38
  const require_workerPool = require("./workerPool-D30NsiIW.cjs");
package/dist/brepjs.js CHANGED
@@ -19,18 +19,18 @@ import { n as getAtOrThrow, r as lastOrThrow, t as firstOrThrow } from "./arrayA
19
19
  import { _ as makeThreePointArc, d as makeCircle, h as makeLine, l as makeBSplineInterpolation, n as fill, r as makeFace, s as assembleWire } from "./surfaceBuilders-BryY-i0F.js";
20
20
  import { A as toBufferGeometryData, C as shellWithEvolution, D as getNurbsCurveData, E as fuseAllBisect, M as toLODGeometryData, N as toLODGeometryLevels, O as getNurbsSurfaceData, P as toLineGeometryData, 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 toGroupedBufferGeometryData, k as chamferDistAngle, 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 } from "./healingFns-DxcRyVCG.js";
21
21
  import { A as setJointValue, B as createAssemblyNode, C as cylindricalJoint, D as planarJoint, E as mechanismDOF, F as quatMultiply, G as circularPattern, H as removeChild, I as quatRotate, J as exportAssemblySTEP, K as gridPattern, L as addChild, M as sphericalJoint, N as quatFromAxisAngle, O as prismaticJoint, P as quatFromTo, R as collectShapes, S as addJoint, T as jointTransform, U as updateNode, V as findNode, W as walkAssembly, Y as createAssembly, _ 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 linearPattern, r as createHistory, s as getShape, t as thread, u as registerShape, v as importURDF, w as forwardKinematics, x as jointTrajectory, y as jointsFromDH, z as countNodes } from "./threadFns-BOtXTHZ9.js";
22
- import { n as BaseSketcher2d, r as organiseBlueprints, t as BlueprintSketcher } from "./blueprintSketcher-CKKxvxB-.js";
22
+ import { n as BaseSketcher2d, r as organiseBlueprints, t as BlueprintSketcher } from "./blueprintSketcher-gMuUUPb-.js";
23
23
  import { a as createTypedFinder, i as wireFinder, n as edgeFinder, r as faceFinder, t as getSingleFace } from "./helpers-Du_OdHuy.js";
24
- 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-BShGVVXW.js";
24
+ 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-CrfBz_wj.js";
25
25
  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-CMnbcUZC.js";
26
26
  import { t as cornerFinder } from "./cornerFinder-CPFM7bA0.js";
27
- 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-C_1gMcZ6.js";
28
- 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-B4C3zH7N.js";
29
- 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-BHs19muu.js";
27
+ 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-DKT0BgZs.js";
28
+ 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-DSj4RTjU.js";
29
+ 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-DqxAZFb-.js";
30
30
  import { a as multiSectionSweep, c as twistExtrude, i as guidedSweep, n as loftAll, o as supportExtrude, r as complexExtrude, s as sweep$1, t as loft$1 } from "./loftFns-BeGJ6dxx.js";
31
- import { a as Sketch, b as extrudeAll, 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, x as revolve$1, y as extrude$1 } from "./textBlueprints-rA1HT6j1.js";
31
+ import { a as Sketch, b as extrudeAll, 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, x as revolve$1, y as extrude$1 } from "./textBlueprints-ZzYg3XTS.js";
32
32
  import { a as makeProjectedEdges, i as projectEdges, n as cameraLookAt, r as createCamera, s as isProjectionPlane, t as cameraFromPlane } from "./cameraFns-CG_J66Hl.js";
33
- import { n as textMetrics, r as sketchText, t as fontMetrics } from "./textMetrics-Bcbso1Ns.js";
33
+ import { n as textMetrics, r as sketchText, t as fontMetrics } from "./textMetrics-Diakbtem.js";
34
34
  import { a as facesOfVertex, c as verticesOfFace, i as facesOfEdge, l as wiresOfFace, n as adjacentFaces, o as sharedEdges, r as edgesOfFace, s as verticesOfEdge } from "./adjacencyFns-DLityMyV.js";
35
35
  import { _ as createRef, a as isVertexRef, b as defaultScorer, c as resolveRefParams, d as createVertexRef, f as resolveVertexRef, g as captureHint, h as assignRoles, i as isLineageRef, l as createDerivedFaceRef, m as resolveEdgeRef, n as isEdgeRef, o as resolveLineageRef, p as createEdgeRef, r as isFaceRef, s as resolveRefIn, t as isDerivedFaceRef, u as resolveDerivedFaceRef, v as resolveRef, y as updateRoles } from "./refResolveFns-BbRLD8LA.js";
36
36
  import { _ as isSuccessResponse, a as createWorkerClient, c as enqueueTask, d as rejectAll, f as isBatchRequest, g as isOperationRequest, h as isInitRequest, i as registerHandler, l as isEmpty$1, m as isErrorResponse, n as createOperationRegistry, o as createTaskQueue, p as isDisposeRequest, r as createWorkerHandler, s as dequeueTask, t as createWorkerPool, u as pendingCount } from "./workerPool-XcYX2UZ0.js";
@@ -10,12 +10,12 @@ const require_faceFns = require("./faceFns-BK4r7Dxk.cjs");
10
10
  const require_curveFns = require("./curveFns-GmFnqNo3.cjs");
11
11
  const require_arrayAccess = require("./arrayAccess-e4H9cBfh.cjs");
12
12
  const require_surfaceBuilders = require("./surfaceBuilders-Biqx51el.cjs");
13
- const require_blueprintSketcher = require("./blueprintSketcher-BNz6f36D.cjs");
13
+ const require_blueprintSketcher = require("./blueprintSketcher-gXVPrPlj.cjs");
14
14
  const require_helpers = require("./helpers-BfkBvokP.cjs");
15
- const require_blueprint = require("./blueprint-BGcBMy3b.cjs");
15
+ const require_blueprint = require("./blueprint-DUnNPwQL.cjs");
16
16
  const require_cornerFinder = require("./cornerFinder-mfsUMi5g.cjs");
17
- const require_boolean2D = require("./boolean2D-B-0xobBP.cjs");
18
- const require_textBlueprints = require("./textBlueprints-8EcWreab.cjs");
17
+ const require_boolean2D = require("./boolean2D-BpmxQ1AH.cjs");
18
+ const require_textBlueprints = require("./textBlueprints-BY0FEg59.cjs");
19
19
  const require_cameraFns = require("./cameraFns-2-haLzLi.cjs");
20
20
  //#region src/2d/lib/stitching.ts
21
21
  /**
@@ -902,9 +902,21 @@ function wrapBlueprintResult(shape, result) {
902
902
  */
903
903
  var Drawing = class Drawing {
904
904
  innerShape;
905
+ _emptyBoundingBox = null;
905
906
  constructor(innerShape = null) {
906
907
  this.innerShape = innerShape;
907
908
  }
909
+ /** Release the resources held by the underlying 2D shape and its bounding boxes. */
910
+ delete() {
911
+ this.innerShape?.delete();
912
+ if (this._emptyBoundingBox) {
913
+ this._emptyBoundingBox.delete();
914
+ this._emptyBoundingBox = null;
915
+ }
916
+ }
917
+ [Symbol.dispose]() {
918
+ this.delete();
919
+ }
908
920
  /** Create an independent deep copy of this drawing. */
909
921
  clone() {
910
922
  return new Drawing(this.innerShape?.clone() || null);
@@ -929,9 +941,16 @@ var Drawing = class Drawing {
929
941
  }
930
942
  return JSON.stringify(serializeHelper(this.innerShape));
931
943
  }
932
- /** Get the axis-aligned 2D bounding box of this drawing. */
944
+ /**
945
+ * Get the axis-aligned 2D bounding box of this drawing.
946
+ *
947
+ * @remarks The box is borrowed from the drawing and is disposed with it.
948
+ */
933
949
  get boundingBox() {
934
- if (!this.innerShape) return new require_blueprint.BoundingBox2d();
950
+ if (!this.innerShape) {
951
+ this._emptyBoundingBox ??= new require_blueprint.BoundingBox2d();
952
+ return this._emptyBoundingBox;
953
+ }
935
954
  return this.innerShape.boundingBox;
936
955
  }
937
956
  /** Stretch the drawing by a ratio along a direction from an origin point. */
@@ -10,12 +10,12 @@ import { d as pointOnSurface, l as normalAt, m as uvBounds, r as faceCenter, u a
10
10
  import { h as offsetWire2D, i as curveIsClosed, l as curveStartPoint } from "./curveFns-DX13KRh2.js";
11
11
  import { n as getAtOrThrow, r as lastOrThrow, t as firstOrThrow } from "./arrayAccess-DrUGPADn.js";
12
12
  import { c as makeBSplineApproximation, d as makeCircle, f as makeEllipse, m as makeHelix, r as makeFace, s as assembleWire } from "./surfaceBuilders-BryY-i0F.js";
13
- import { a as Blueprints, c as make2dOffset, i as CompoundBlueprint, l as intersectCurves, n as BaseSketcher2d, o as chamferCurves, s as filletCurves, u as Flatbush } from "./blueprintSketcher-CKKxvxB-.js";
13
+ import { a as Blueprints, c as make2dOffset, i as CompoundBlueprint, l as intersectCurves, n as BaseSketcher2d, o as chamferCurves, s as filletCurves, u as Flatbush } from "./blueprintSketcher-gMuUUPb-.js";
14
14
  import { _ as samePoint$1, b as subtract2d, c as add2d, s as PRECISION_OFFSET, y as squareDistance2d } from "./helpers-Du_OdHuy.js";
15
- import { _ as Curve2D, a as edgeToCurve, b as BoundingBox2d, 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 } from "./blueprint-CAG6jseD.js";
15
+ import { _ as Curve2D, a as edgeToCurve, b as BoundingBox2d, 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 } from "./blueprint-DEMSX-hc.js";
16
16
  import { t as cornerFinder } from "./cornerFinder-CPFM7bA0.js";
17
- import { c as roundedRectangleBlueprint, n as fuse2D, r as intersect2D, s as polysidesBlueprint, t as cut2D } from "./boolean2D-C_1gMcZ6.js";
18
- import { _ as wrapSketchDataArray, a as Sketch, g as wrapSketchData, i as Sketches, t as textBlueprints } from "./textBlueprints-rA1HT6j1.js";
17
+ import { c as roundedRectangleBlueprint, n as fuse2D, r as intersect2D, s as polysidesBlueprint, t as cut2D } from "./boolean2D-DKT0BgZs.js";
18
+ import { _ as wrapSketchDataArray, a as Sketch, g as wrapSketchData, i as Sketches, t as textBlueprints } from "./textBlueprints-ZzYg3XTS.js";
19
19
  import { i as projectEdges, t as cameraFromPlane } from "./cameraFns-CG_J66Hl.js";
20
20
  //#region src/2d/lib/stitching.ts
21
21
  /**
@@ -902,9 +902,21 @@ function wrapBlueprintResult(shape, result) {
902
902
  */
903
903
  var Drawing = class Drawing {
904
904
  innerShape;
905
+ _emptyBoundingBox = null;
905
906
  constructor(innerShape = null) {
906
907
  this.innerShape = innerShape;
907
908
  }
909
+ /** Release the resources held by the underlying 2D shape and its bounding boxes. */
910
+ delete() {
911
+ this.innerShape?.delete();
912
+ if (this._emptyBoundingBox) {
913
+ this._emptyBoundingBox.delete();
914
+ this._emptyBoundingBox = null;
915
+ }
916
+ }
917
+ [Symbol.dispose]() {
918
+ this.delete();
919
+ }
908
920
  /** Create an independent deep copy of this drawing. */
909
921
  clone() {
910
922
  return new Drawing(this.innerShape?.clone() || null);
@@ -929,9 +941,16 @@ var Drawing = class Drawing {
929
941
  }
930
942
  return JSON.stringify(serializeHelper(this.innerShape));
931
943
  }
932
- /** Get the axis-aligned 2D bounding box of this drawing. */
944
+ /**
945
+ * Get the axis-aligned 2D bounding box of this drawing.
946
+ *
947
+ * @remarks The box is borrowed from the drawing and is disposed with it.
948
+ */
933
949
  get boundingBox() {
934
- if (!this.innerShape) return new BoundingBox2d();
950
+ if (!this.innerShape) {
951
+ this._emptyBoundingBox ??= new BoundingBox2d();
952
+ return this._emptyBoundingBox;
953
+ }
935
954
  return this.innerShape.boundingBox;
936
955
  }
937
956
  /** Stretch the drawing by a ratio along a direction from an origin point. */
@@ -2,7 +2,7 @@ import { K as getKernel, n as castResultShape } from "./shapeTypes-t49f64Dx.js";
2
2
  import { i as wasmIndex, r as vec3At$1 } from "./bug-BdOHwn_e.js";
3
3
  import { E as ok, g as err, r as ioError, t as BrepErrorCode } from "./errors-MHLiNE-C.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-CAG6jseD.js";
5
+ import { f as make2dSegmentCurve, m as make2dThreePointArc, s as make2dBezierCurve, t as Blueprint } from "./blueprint-DEMSX-hc.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) {
@@ -2,7 +2,7 @@ const require_shapeTypes = require("./shapeTypes-CkcIL7zv.cjs");
2
2
  const require_bug = require("./bug-O02CsAmt.cjs");
3
3
  const require_errors = require("./errors-RHkKO5bZ.cjs");
4
4
  const require_arrayAccess = require("./arrayAccess-e4H9cBfh.cjs");
5
- const require_blueprint = require("./blueprint-BGcBMy3b.cjs");
5
+ const require_blueprint = require("./blueprint-DUnNPwQL.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
2
  const require_meshFns = require("./meshFns-Dqf5QBhQ.cjs");
3
- const require_importFns = require("./importFns-GySbuvVv.cjs");
3
+ const require_importFns = require("./importFns-pr-r5qiV.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
1
  import { n as exportSTEP, r as exportSTL, t as exportIGES } from "./meshFns-Cs5EBsf7.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-BHs19muu.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-DqxAZFb-.js";
3
3
  export { blueprintToDXF, exportDXF, exportGlb, exportGltf, exportIGES, exportOBJ, exportSTEP, exportSTEPConfigured, exportSTL, exportThreeMF, importIGES, importSTEP, importSTL, importSVG, importSVGPathD };
@@ -33,12 +33,20 @@ import { SingleFace } from '../query/helpers.js';
33
33
  */
34
34
  export declare class Drawing {
35
35
  private readonly innerShape;
36
+ private _emptyBoundingBox;
36
37
  constructor(innerShape?: Shape2D);
38
+ /** Release the resources held by the underlying 2D shape and its bounding boxes. */
39
+ delete(): void;
40
+ [Symbol.dispose](): void;
37
41
  /** Create an independent deep copy of this drawing. */
38
42
  clone(): Drawing;
39
43
  /** Serialize the drawing to a JSON string for persistence or transfer. */
40
44
  serialize(): string;
41
- /** Get the axis-aligned 2D bounding box of this drawing. */
45
+ /**
46
+ * Get the axis-aligned 2D bounding box of this drawing.
47
+ *
48
+ * @remarks The box is borrowed from the drawing and is disposed with it.
49
+ */
42
50
  get boundingBox(): BoundingBox2d;
43
51
  /** Stretch the drawing by a ratio along a direction from an origin point. */
44
52
  stretch(ratio: number, direction: Point2D, origin: Point2D): Drawing;
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_blueprintSketcher = require("./blueprintSketcher-BNz6f36D.cjs");
3
- const require_drawFns = require("./drawFns-B14M5M68.cjs");
4
- const require_textBlueprints = require("./textBlueprints-8EcWreab.cjs");
2
+ const require_blueprintSketcher = require("./blueprintSketcher-gXVPrPlj.cjs");
3
+ const require_drawFns = require("./drawFns-CI6CpqO8.cjs");
4
+ const require_textBlueprints = require("./textBlueprints-BY0FEg59.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-CKKxvxB-.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-BShGVVXW.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-rA1HT6j1.js";
1
+ import { n as BaseSketcher2d, t as BlueprintSketcher } from "./blueprintSketcher-gMuUUPb-.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-CrfBz_wj.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-ZzYg3XTS.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-8EcWreab.cjs");
3
- const require_textMetrics = require("./textMetrics-GPBu9JKi.cjs");
2
+ const require_textBlueprints = require("./textBlueprints-BY0FEg59.cjs");
3
+ const require_textMetrics = require("./textMetrics-f5yXR4OG.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-rA1HT6j1.js";
2
- import { n as textMetrics, r as sketchText, t as fontMetrics } from "./textMetrics-Bcbso1Ns.js";
1
+ import { n as getFont, r as loadFont, t as textBlueprints } from "./textBlueprints-ZzYg3XTS.js";
2
+ import { n as textMetrics, r as sketchText, t as fontMetrics } from "./textMetrics-Diakbtem.js";
3
3
  export { fontMetrics, getFont, loadFont, sketchText, textBlueprints, textMetrics };
@@ -10,7 +10,7 @@ const require_solidBuilders = require("./solidBuilders-IiIzjKAr.cjs");
10
10
  const require_curveFns = require("./curveFns-GmFnqNo3.cjs");
11
11
  const require_arrayAccess = require("./arrayAccess-e4H9cBfh.cjs");
12
12
  const require_surfaceBuilders = require("./surfaceBuilders-Biqx51el.cjs");
13
- const require_blueprintSketcher = require("./blueprintSketcher-BNz6f36D.cjs");
13
+ const require_blueprintSketcher = require("./blueprintSketcher-gXVPrPlj.cjs");
14
14
  const require_loftFns = require("./loftFns-BdpZ8FMN.cjs");
15
15
  let opentype_js = require("opentype.js");
16
16
  opentype_js = require_rolldown_runtime.__toESM(opentype_js, 1);
@@ -9,7 +9,7 @@ import { o as makeSolid, p as cutAll, t as makeCompound } from "./solidBuilders-
9
9
  import { l as curveStartPoint, u as curveTangentAt } from "./curveFns-DX13KRh2.js";
10
10
  import { n as getAtOrThrow, t as firstOrThrow } from "./arrayAccess-DrUGPADn.js";
11
11
  import { i as makeNewFaceWithinFace, r as makeFace, t as addHolesInFace } from "./surfaceBuilders-BryY-i0F.js";
12
- import { r as organiseBlueprints, t as BlueprintSketcher } from "./blueprintSketcher-CKKxvxB-.js";
12
+ import { r as organiseBlueprints, t as BlueprintSketcher } from "./blueprintSketcher-gMuUUPb-.js";
13
13
  import { c as twistExtrude, r as complexExtrude, s as sweep, t as loft } from "./loftFns-BeGJ6dxx.js";
14
14
  import opentype from "opentype.js";
15
15
  //#region src/operations/extrudeFns.ts
@@ -1,5 +1,5 @@
1
1
  import { E as ok, d as validationError, g as err, t as BrepErrorCode } from "./errors-MHLiNE-C.js";
2
- import { g as wrapSketchData, i as Sketches, n as getFont, t as textBlueprints, v as CompoundSketch } from "./textBlueprints-rA1HT6j1.js";
2
+ import { g as wrapSketchData, i as Sketches, n as getFont, t as textBlueprints, v as CompoundSketch } from "./textBlueprints-ZzYg3XTS.js";
3
3
  //#region src/text/sketchText.ts
4
4
  /**
5
5
  * Render text as 3D sketch outlines on a plane.
@@ -1,5 +1,5 @@
1
1
  const require_errors = require("./errors-RHkKO5bZ.cjs");
2
- const require_textBlueprints = require("./textBlueprints-8EcWreab.cjs");
2
+ const require_textBlueprints = require("./textBlueprints-BY0FEg59.cjs");
3
3
  //#region src/text/sketchText.ts
4
4
  /**
5
5
  * Render text as 3D sketch outlines on a plane.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "brepjs",
3
- "version": "18.119.3",
3
+ "version": "18.119.5",
4
4
  "description": "Web CAD library with pluggable geometry kernel",
5
5
  "keywords": [
6
6
  "cad",
@@ -311,7 +311,6 @@
311
311
  },
312
312
  "overrides": {
313
313
  "dompurify": "^3.4.11",
314
- "brace-expansion": "^5.0.7",
315
314
  "esbuild@<0.25.0": "^0.25.0",
316
315
  "esbuild@>=0.26.0 <0.28.1": "^0.28.1",
317
316
  "js-yaml": "^4.2.0",