brepjs 9.3.10 → 9.4.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.
Files changed (70) hide show
  1. package/dist/2d.cjs +2 -2
  2. package/dist/2d.js +3 -3
  3. package/dist/{Blueprint-DBFQJ5ME.js → Blueprint-Bx9F-b3M.js} +5 -5
  4. package/dist/{Blueprint-CYDtiBRw.cjs → Blueprint-CKGR_t7l.cjs} +5 -5
  5. package/dist/{boolean2D-FaadcaJX.cjs → boolean2D-DXpQlTbC.cjs} +7 -7
  6. package/dist/{boolean2D-BDRf7DqS.js → boolean2D-iR7ADbYD.js} +7 -7
  7. package/dist/{booleanFns-GfGGPjuF.js → booleanFns-7rIed0u7.js} +3 -3
  8. package/dist/{booleanFns-DHFR4zO7.cjs → booleanFns-Bv06tE2O.cjs} +3 -3
  9. package/dist/brepjs.cjs +114 -32
  10. package/dist/brepjs.js +126 -44
  11. package/dist/core.cjs +1 -1
  12. package/dist/core.js +1 -1
  13. package/dist/{cornerFinder-C1oci6gb.cjs → cornerFinder-Ci8VuZvA.cjs} +1 -1
  14. package/dist/{cornerFinder-Bke7uLr6.js → cornerFinder-HW6Pd4KN.js} +1 -1
  15. package/dist/{curveFns-BteO-W-V.js → curveFns-DimdPJLf.js} +1 -1
  16. package/dist/{curveFns-DOhZedkN.cjs → curveFns-NHndvCbT.cjs} +1 -1
  17. package/dist/{drawFns-4kaeEGpt.cjs → drawFns-BBaIUkX4.cjs} +10 -10
  18. package/dist/{drawFns-D7fQtIj-.js → drawFns-D1j4FnWp.js} +10 -10
  19. package/dist/{faceFns-FViaMujJ.js → faceFns-BkJ2_drH.js} +1 -1
  20. package/dist/{faceFns-Cshr6Dql.cjs → faceFns-BxkKVWoi.cjs} +1 -1
  21. package/dist/{helpers-aY6tdIRv.cjs → helpers-BlW0S8kc.cjs} +4 -4
  22. package/dist/{helpers-j3ILUOP3.js → helpers-nNbxhw97.js} +4 -4
  23. package/dist/io/svgImportFns.d.ts.map +1 -1
  24. package/dist/io.cjs +9 -3
  25. package/dist/io.js +9 -3
  26. package/dist/kernel/advancedOps.d.ts +1 -0
  27. package/dist/kernel/advancedOps.d.ts.map +1 -1
  28. package/dist/kernel/brepkitAdapter.d.ts +2 -1
  29. package/dist/kernel/brepkitAdapter.d.ts.map +1 -1
  30. package/dist/kernel/brepkitWasmTypes.d.ts +31 -10
  31. package/dist/kernel/brepkitWasmTypes.d.ts.map +1 -1
  32. package/dist/kernel/defaultAdapter.d.ts +1 -0
  33. package/dist/kernel/defaultAdapter.d.ts.map +1 -1
  34. package/dist/kernel/types.d.ts +3 -0
  35. package/dist/kernel/types.d.ts.map +1 -1
  36. package/dist/{loft-CiXi_aga.js → loft-C8yS_NS6.js} +3 -3
  37. package/dist/{loft-6RVa269J.cjs → loft-CvTRTIDd.cjs} +3 -3
  38. package/dist/{measurement-BNrssBY_.js → measurement-4z0i9NjE.js} +2 -2
  39. package/dist/{measurement-Crrs7ULW.cjs → measurement-mWRWDA69.cjs} +2 -2
  40. package/dist/measurement.cjs +1 -1
  41. package/dist/measurement.js +1 -1
  42. package/dist/{meshFns-xdRr7G4g.cjs → meshFns-Bl6gXIPd.cjs} +2 -2
  43. package/dist/{meshFns-w1baxmAz.js → meshFns-D2eLJfd6.js} +2 -2
  44. package/dist/operations/loftFns.d.ts +1 -1
  45. package/dist/operations/loftFns.d.ts.map +1 -1
  46. package/dist/operations/multiSweepFns.d.ts.map +1 -1
  47. package/dist/operations/patternFns.d.ts +14 -0
  48. package/dist/operations/patternFns.d.ts.map +1 -1
  49. package/dist/operations/roofFns.d.ts.map +1 -1
  50. package/dist/{operations-CbE3WgWv.js → operations-6JJEKei9.js} +33 -5
  51. package/dist/{operations-Ds393Tne.cjs → operations-JLacBa4V.cjs} +33 -5
  52. package/dist/operations.cjs +3 -2
  53. package/dist/operations.d.ts +1 -1
  54. package/dist/operations.d.ts.map +1 -1
  55. package/dist/operations.js +3 -2
  56. package/dist/query.cjs +4 -4
  57. package/dist/query.js +5 -5
  58. package/dist/{shapeFns-DvwUGuOx.js → shapeFns-BO9NK6Oo.js} +2 -2
  59. package/dist/{shapeFns-BvxOc2M_.cjs → shapeFns-DdBZDjVs.cjs} +2 -2
  60. package/dist/{shapeTypes-CBhj5o2y.cjs → shapeTypes-DGDFzV7k.cjs} +1 -1
  61. package/dist/{shapeTypes-d-jYnZuW.js → shapeTypes-Dh_qy0wO.js} +1 -1
  62. package/dist/sketching.cjs +2 -2
  63. package/dist/sketching.js +2 -2
  64. package/dist/{surfaceBuilders-mE9oGh7r.cjs → surfaceBuilders-BQScH37x.cjs} +2 -2
  65. package/dist/{surfaceBuilders-C67Q29Gt.js → surfaceBuilders-CX69g8_x.js} +2 -2
  66. package/dist/{topology-DKWBbtZ3.cjs → topology-In3-XjPz.cjs} +6 -6
  67. package/dist/{topology-z4wgJE7T.js → topology-JKo9WLos.js} +6 -6
  68. package/dist/topology.cjs +6 -6
  69. package/dist/topology.js +6 -6
  70. package/package.json +2 -1
@@ -1,6 +1,6 @@
1
- import { q as getKernel, c as castShape, g as getShapeKind } from "./shapeTypes-d-jYnZuW.js";
1
+ import { q as getKernel, c as castShape, g as getShapeKind } from "./shapeTypes-Dh_qy0wO.js";
2
2
  import { H as HASH_CODE_MAX, D as DEG2RAD } from "./vecOps-ZDdZWbwT.js";
3
- import { i as iterTopo, d as downcast } from "./faceFns-FViaMujJ.js";
3
+ import { i as iterTopo, d as downcast } from "./faceFns-BkJ2_drH.js";
4
4
  import { u as unwrap } from "./errors-lBwyc8YG.js";
5
5
  function clone(shape) {
6
6
  return castShape(unwrap(downcast(shape.wrapped)));
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
- const shapeTypes = require("./shapeTypes-CBhj5o2y.cjs");
2
+ const shapeTypes = require("./shapeTypes-DGDFzV7k.cjs");
3
3
  const vecOps = require("./vecOps-CjRL1jau.cjs");
4
- const faceFns = require("./faceFns-Cshr6Dql.cjs");
4
+ const faceFns = require("./faceFns-BxkKVWoi.cjs");
5
5
  const errors = require("./errors-DiTn5EoC.cjs");
6
6
  function clone(shape) {
7
7
  return shapeTypes.castShape(errors.unwrap(faceFns.downcast(shape.wrapped)));
@@ -3458,7 +3458,7 @@ function sweepPipeShell(oc, profile, spine, options = {}) {
3458
3458
  function loftAdvanced(oc, wires, options = {}) {
3459
3459
  const solid = options.solid ?? true;
3460
3460
  const ruled = options.ruled ?? false;
3461
- const builder = new oc.BRepOffsetAPI_ThruSections(solid, ruled, 1e-6);
3461
+ const builder = new oc.BRepOffsetAPI_ThruSections(solid, ruled, options.tolerance ?? 1e-6);
3462
3462
  if (options.startVertex) {
3463
3463
  builder.AddVertex(options.startVertex);
3464
3464
  }
@@ -3457,7 +3457,7 @@ function sweepPipeShell(oc, profile, spine, options = {}) {
3457
3457
  function loftAdvanced(oc, wires, options = {}) {
3458
3458
  const solid = options.solid ?? true;
3459
3459
  const ruled = options.ruled ?? false;
3460
- const builder = new oc.BRepOffsetAPI_ThruSections(solid, ruled, 1e-6);
3460
+ const builder = new oc.BRepOffsetAPI_ThruSections(solid, ruled, options.tolerance ?? 1e-6);
3461
3461
  if (options.startVertex) {
3462
3462
  builder.AddVertex(options.startVertex);
3463
3463
  }
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const drawFns = require("./drawFns-4kaeEGpt.cjs");
4
- const boolean2D = require("./boolean2D-FaadcaJX.cjs");
3
+ const drawFns = require("./drawFns-BBaIUkX4.cjs");
4
+ const boolean2D = require("./boolean2D-DXpQlTbC.cjs");
5
5
  exports.CompoundSketch = drawFns.CompoundSketch;
6
6
  exports.Drawing = drawFns.Drawing;
7
7
  exports.DrawingPen = drawFns.DrawingPen;
package/dist/sketching.js CHANGED
@@ -1,5 +1,5 @@
1
- import { C, D, a, S, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, A, B, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, T, U, V, W } from "./drawFns-D7fQtIj-.js";
2
- import { B as B2, a as a2, F as F2, S as S2 } from "./boolean2D-BDRf7DqS.js";
1
+ import { C, D, a, S, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, A, B, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, T, U, V, W } from "./drawFns-D1j4FnWp.js";
2
+ import { B as B2, a as a2, F as F2, S as S2 } from "./boolean2D-iR7ADbYD.js";
3
3
  export {
4
4
  B2 as BaseSketcher2d,
5
5
  a2 as BlueprintSketcher,
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
- const shapeTypes = require("./shapeTypes-CBhj5o2y.cjs");
2
+ const shapeTypes = require("./shapeTypes-DGDFzV7k.cjs");
3
3
  const errors = require("./errors-DiTn5EoC.cjs");
4
- const faceFns = require("./faceFns-Cshr6Dql.cjs");
4
+ const faceFns = require("./faceFns-BxkKVWoi.cjs");
5
5
  function range(len) {
6
6
  return Array.from(Array(len).keys());
7
7
  }
@@ -1,6 +1,6 @@
1
- import { r as createWire, q as getKernel, s as createEdge, t as createFace, e as isFace } from "./shapeTypes-d-jYnZuW.js";
1
+ import { r as createWire, q as getKernel, s as createEdge, t as createFace, e as isFace } from "./shapeTypes-Dh_qy0wO.js";
2
2
  import { o as ok, e as err, k as kernelError, x as validationError, a as andThen } from "./errors-lBwyc8YG.js";
3
- import { o as outerWire, c as cast } from "./faceFns-FViaMujJ.js";
3
+ import { o as outerWire, c as cast } from "./faceFns-BkJ2_drH.js";
4
4
  function range(len) {
5
5
  return Array.from(Array(len).keys());
6
6
  }
@@ -1,12 +1,12 @@
1
1
  "use strict";
2
- const shapeFns = require("./shapeFns-BvxOc2M_.cjs");
3
- require("./booleanFns-DHFR4zO7.cjs");
4
- const shapeTypes = require("./shapeTypes-CBhj5o2y.cjs");
5
- const faceFns = require("./faceFns-Cshr6Dql.cjs");
2
+ const shapeFns = require("./shapeFns-DdBZDjVs.cjs");
3
+ require("./booleanFns-Bv06tE2O.cjs");
4
+ const shapeTypes = require("./shapeTypes-DGDFzV7k.cjs");
5
+ const faceFns = require("./faceFns-BxkKVWoi.cjs");
6
6
  const errors = require("./errors-DiTn5EoC.cjs");
7
- require("./curveFns-DOhZedkN.cjs");
7
+ require("./curveFns-NHndvCbT.cjs");
8
8
  const vecOps = require("./vecOps-CjRL1jau.cjs");
9
- require("./meshFns-xdRr7G4g.cjs");
9
+ require("./meshFns-Bl6gXIPd.cjs");
10
10
  function toBufferGeometryData(mesh) {
11
11
  return {
12
12
  position: mesh.vertices,
@@ -1,11 +1,11 @@
1
- import { c as getWires, a as getFaces } from "./shapeFns-DvwUGuOx.js";
2
- import "./booleanFns-GfGGPjuF.js";
3
- import { q as getKernel, c as castShape, j as isShape3D, l as isSolid, e as isFace, n as isWire } from "./shapeTypes-d-jYnZuW.js";
4
- import { d as downcast } from "./faceFns-FViaMujJ.js";
1
+ import { c as getWires, a as getFaces } from "./shapeFns-BO9NK6Oo.js";
2
+ import "./booleanFns-7rIed0u7.js";
3
+ import { q as getKernel, c as castShape, j as isShape3D, l as isSolid, e as isFace, n as isWire } from "./shapeTypes-Dh_qy0wO.js";
4
+ import { d as downcast } from "./faceFns-BkJ2_drH.js";
5
5
  import { e as err, x as validationError, k as kernelError, d as isErr, p as typeCastError, o as ok, u as unwrap, g as isOk, B as BrepErrorCode } from "./errors-lBwyc8YG.js";
6
- import "./curveFns-BteO-W-V.js";
6
+ import "./curveFns-DimdPJLf.js";
7
7
  import { H as HASH_CODE_MAX } from "./vecOps-ZDdZWbwT.js";
8
- import "./meshFns-w1baxmAz.js";
8
+ import "./meshFns-D2eLJfd6.js";
9
9
  function toBufferGeometryData(mesh) {
10
10
  return {
11
11
  position: mesh.vertices,
package/dist/topology.cjs CHANGED
@@ -1,11 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const shapeFns = require("./shapeFns-BvxOc2M_.cjs");
4
- const booleanFns = require("./booleanFns-DHFR4zO7.cjs");
5
- const topology = require("./topology-DKWBbtZ3.cjs");
6
- const curveFns = require("./curveFns-DOhZedkN.cjs");
7
- const faceFns = require("./faceFns-Cshr6Dql.cjs");
8
- const meshFns = require("./meshFns-xdRr7G4g.cjs");
3
+ const shapeFns = require("./shapeFns-DdBZDjVs.cjs");
4
+ const booleanFns = require("./booleanFns-Bv06tE2O.cjs");
5
+ const topology = require("./topology-In3-XjPz.cjs");
6
+ const curveFns = require("./curveFns-NHndvCbT.cjs");
7
+ const faceFns = require("./faceFns-BxkKVWoi.cjs");
8
+ const meshFns = require("./meshFns-Bl6gXIPd.cjs");
9
9
  exports.getBounds = shapeFns.getBounds;
10
10
  exports.getEdges = shapeFns.getEdges;
11
11
  exports.getFaces = shapeFns.getFaces;
package/dist/topology.js CHANGED
@@ -1,9 +1,9 @@
1
- import { h, d, a, f, e, c, x, i, y, z, A, B, v } from "./shapeFns-DvwUGuOx.js";
2
- import { k, j } from "./booleanFns-GfGGPjuF.js";
3
- import { a as a2, b, c as c2, e as e2, f as f2, d as d2, g, j as j2, s, t, k as k2, l, v as v2, w } from "./topology-z4wgJE7T.js";
4
- import { j as j3, a as a3, e as e3, k as k3, i as i2, l as l2, h as h2, d as d3, c as c3, f as f3, b as b2, g as g2, m, o } from "./curveFns-BteO-W-V.js";
5
- import { l as l3, c as c4, m as m2, j as j4, d as d4, e as e4, f as f4, q, r, g as g3, k as k4, s as s2, i as i3, n, o as o2, p, t as t2, v as v3, u, h as h3 } from "./faceFns-FViaMujJ.js";
6
- import { c as c5, b as b3, e as e5, d as d5, f as f5 } from "./meshFns-w1baxmAz.js";
1
+ import { h, d, a, f, e, c, x, i, y, z, A, B, v } from "./shapeFns-BO9NK6Oo.js";
2
+ import { k, j } from "./booleanFns-7rIed0u7.js";
3
+ import { a as a2, b, c as c2, e as e2, f as f2, d as d2, g, j as j2, s, t, k as k2, l, v as v2, w } from "./topology-JKo9WLos.js";
4
+ import { j as j3, a as a3, e as e3, k as k3, i as i2, l as l2, h as h2, d as d3, c as c3, f as f3, b as b2, g as g2, m, o } from "./curveFns-DimdPJLf.js";
5
+ import { l as l3, c as c4, m as m2, j as j4, d as d4, e as e4, f as f4, q, r, g as g3, k as k4, s as s2, i as i3, n, o as o2, p, t as t2, v as v3, u, h as h3 } from "./faceFns-BkJ2_drH.js";
6
+ import { c as c5, b as b3, e as e5, d as d5, f as f5 } from "./meshFns-D2eLJfd6.js";
7
7
  export {
8
8
  a2 as adjacentFaces,
9
9
  j3 as approximateCurve,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "brepjs",
3
- "version": "9.3.10",
3
+ "version": "9.4.0",
4
4
  "description": "Web CAD library with pluggable geometry kernel",
5
5
  "keywords": [
6
6
  "cad",
@@ -207,6 +207,7 @@
207
207
  "typescript-eslint": "8.56.0",
208
208
  "vite": "7.3.1",
209
209
  "vite-plugin-dts": "4.5.4",
210
+ "brepkit-wasm": "^0.4.3",
210
211
  "vitest": "4.0.18"
211
212
  },
212
213
  "peerDependencies": {