brepjs 12.7.2 → 12.8.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 (48) hide show
  1. package/dist/2d.cjs +2 -2
  2. package/dist/2d.js +11 -11
  3. package/dist/{Blueprint-DymoCs1R.js → Blueprint-C3lWY1Jf.js} +21 -20
  4. package/dist/{Blueprint-E105uFXu.cjs → Blueprint-CnDVffSX.cjs} +2 -1
  5. package/dist/{boolean2D-BXO2hNfY.js → boolean2D-CwZAIJDS.js} +15 -17
  6. package/dist/{boolean2D-D857dStk.cjs → boolean2D-DyQJt8Na.cjs} +2 -4
  7. package/dist/{booleanFns-DpAod1nu.js → booleanFns-CcNUsgI8.js} +2 -2
  8. package/dist/{booleanFns-DeWK-2pA.cjs → booleanFns-D7HmkpYt.cjs} +1 -1
  9. package/dist/brepjs.cjs +37 -108
  10. package/dist/brepjs.js +935 -1006
  11. package/dist/core.cjs +1 -1
  12. package/dist/core.js +1 -1
  13. package/dist/{cornerFinder-xxlrRbwc.js → cornerFinder-BV-l1BCw.js} +1 -1
  14. package/dist/{curveFns-LRNGcHXh.js → curveFns-CloOqAQ_.js} +11 -11
  15. package/dist/{drawFns-ClKmj3al.js → drawFns-5myJTgtX.js} +68 -324
  16. package/dist/{drawFns-BKU3X1Qn.cjs → drawFns-CDNafQhv.cjs} +61 -317
  17. package/dist/{helpers-Dnw_sLuU.js → helpers-C9KvE1RW.js} +5 -5
  18. package/dist/io.cjs +1 -1
  19. package/dist/io.js +1 -1
  20. package/dist/kernel/brepkitAdapter.d.ts.map +1 -1
  21. package/dist/kernel/brepkitWasmTypes.d.ts +11 -1
  22. package/dist/kernel/brepkitWasmTypes.d.ts.map +1 -1
  23. package/dist/{loft-DsVv4yxU.js → loft-BcZUCGKi.js} +1 -1
  24. package/dist/{operations-DXt8hFxd.cjs → operations-DLFzmdFX.cjs} +1 -1
  25. package/dist/{operations-DE9wMwvN.js → operations-Dcz6YlOt.js} +2 -2
  26. package/dist/operations.cjs +1 -1
  27. package/dist/operations.js +2 -2
  28. package/dist/query.js +4 -4
  29. package/dist/sketching/Sketcher.d.ts +31 -77
  30. package/dist/sketching/Sketcher.d.ts.map +1 -1
  31. package/dist/sketching/Sketcher2d.d.ts +1 -1
  32. package/dist/sketching/Sketcher2d.d.ts.map +1 -1
  33. package/dist/sketching/draw.d.ts +2 -2
  34. package/dist/sketching/draw.d.ts.map +1 -1
  35. package/dist/sketching/sketcherlib.d.ts +32 -1
  36. package/dist/sketching/sketcherlib.d.ts.map +1 -1
  37. package/dist/sketching.cjs +2 -2
  38. package/dist/sketching.js +2 -2
  39. package/dist/{surfaceBuilders-D7ZH2QNS.js → surfaceBuilders-D6iDVPIM.js} +12 -12
  40. package/dist/{topology-Is3aThTo.cjs → topology-CKtCGLmb.cjs} +1 -1
  41. package/dist/{topology-DEi2sFry.js → topology-DxD58iQ6.js} +3 -3
  42. package/dist/topology.cjs +2 -2
  43. package/dist/topology.js +14 -14
  44. package/dist/{vectors-TlfO1hu2.cjs → vectors-BafmMf96.cjs} +0 -5
  45. package/dist/{vectors-cec8p8NQ.js → vectors-CESkzEm6.js} +1 -6
  46. package/dist/vectors.cjs +1 -1
  47. package/dist/vectors.js +1 -1
  48. package/package.json +3 -3
package/dist/topology.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import { h, d, a, f, e, c, x, y, i, z, A, B, C, v } from "./shapeFns-D2PlLFE6.js";
2
- import { a as a2, b, d as d2, e as e2, f as f2, g, c as c2, j, k, l, m, n, o, p, q, r, s, t, u, v as v2, w, x as x2, y as y2, z as z2, A as A2, B as B2, C as C2, D, E, F, G, H, I, J, K, L, M, N, O, P, Q } from "./topology-DEi2sFry.js";
3
- import { k as k2, j as j2 } from "./booleanFns-DpAod1nu.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 as m2, o as o2 } from "./curveFns-LRNGcHXh.js";
2
+ import { a as a2, b, d as d2, e as e2, f as f2, g, c as c2, j, k, l, m, n, o, p, q, r, s, t, u, v as v2, w, x as x2, y as y2, z as z2, A as A2, B as B2, C as C2, D, E, F, G, H, I, J, K, L, M, N, O, P, Q } from "./topology-DxD58iQ6.js";
3
+ import { k as k2, j as j2 } from "./booleanFns-CcNUsgI8.js";
4
+ import { h as h2, e as e3, b as b2, i as i2, f as f3, j as j3, d as d3, c as c3, a as a3, k as k3, l as l2, g as g2, m as m2, o as o2 } from "./curveFns-CloOqAQ_.js";
5
5
  import { l as l3, c as c4, m as m3, j as j4, d as d4, e as e4, f as f4, q as q2, r as r2, g as g3, k as k4, s as s2, i as i3, n as n2, o as o3, p as p2, t as t2, w as w2, u as u2, h as h3 } from "./faceFns-B6ebRh5I.js";
6
6
  import { c as c5, b as b3, e as e5, d as d5, f as f5 } from "./meshFns-DsLRd3tA.js";
7
7
  export {
8
8
  a2 as addHoles,
9
9
  b as adjacentFaces,
10
- j3 as approximateCurve,
10
+ h2 as approximateCurve,
11
11
  l3 as asTopo,
12
12
  d2 as autoHeal,
13
13
  e2 as bezier,
@@ -21,14 +21,14 @@ export {
21
21
  k as compound,
22
22
  l as cone,
23
23
  b3 as createMeshCache,
24
- a3 as curveEndPoint,
25
- e3 as curveIsClosed,
26
- k3 as curveIsPeriodic,
27
- i2 as curveLength,
28
- l2 as curvePeriod,
29
- h2 as curvePointAt,
30
- d3 as curveStartPoint,
31
- c3 as curveTangentAt,
24
+ e3 as curveEndPoint,
25
+ b2 as curveIsClosed,
26
+ i2 as curveIsPeriodic,
27
+ f3 as curveLength,
28
+ j3 as curvePeriod,
29
+ d3 as curvePointAt,
30
+ c3 as curveStartPoint,
31
+ a3 as curveTangentAt,
32
32
  k2 as cutAll,
33
33
  m as cylinder,
34
34
  j4 as deserializeShape,
@@ -47,10 +47,10 @@ export {
47
47
  s as facesOfEdge,
48
48
  t as filledFace,
49
49
  r2 as flipFaceOrientation,
50
- f3 as flipOrientation,
50
+ k3 as flipOrientation,
51
51
  j2 as fuseAll,
52
52
  h as getBounds,
53
- b2 as getCurveType,
53
+ l2 as getCurveType,
54
54
  d as getEdges,
55
55
  a as getFaces,
56
56
  f as getHashCode,
@@ -62,10 +62,6 @@ function planeToWorld(plane, local) {
62
62
  const [u, v] = local;
63
63
  return vecOps.vecAdd(vecOps.vecAdd(plane.origin, vecOps.vecScale(plane.xDir, u)), vecOps.vecScale(plane.yDir, v));
64
64
  }
65
- function planeToLocal(plane, world) {
66
- const relative = vecOps.vecSub(world, plane.origin);
67
- return [vecOps.vecDot(relative, plane.xDir), vecOps.vecDot(relative, plane.yDir)];
68
- }
69
65
  function translatePlane(plane, offset) {
70
66
  return { ...plane, origin: vecOps.vecAdd(plane.origin, offset) };
71
67
  }
@@ -79,7 +75,6 @@ function pivotPlane(plane, angleDeg, axis = [1, 0, 0]) {
79
75
  exports.createNamedPlane = createNamedPlane;
80
76
  exports.createPlane = createPlane;
81
77
  exports.pivotPlane = pivotPlane;
82
- exports.planeToLocal = planeToLocal;
83
78
  exports.planeToWorld = planeToWorld;
84
79
  exports.resolvePlane = resolvePlane;
85
80
  exports.translatePlane = translatePlane;
@@ -1,5 +1,5 @@
1
1
  import { a as toVec3 } from "./types-CWDdqcrq.js";
2
- import { j as vecNormalize, f as vecIsZero, b as vecCross, v as vecAdd, n as vecScale, o as vecSub, d as vecDot, m as vecRotate, D as DEG2RAD } from "./vecOps-ZDdZWbwT.js";
2
+ import { j as vecNormalize, f as vecIsZero, b as vecCross, v as vecAdd, n as vecScale, m as vecRotate, D as DEG2RAD } from "./vecOps-ZDdZWbwT.js";
3
3
  import { e as err, y as validationError, o as ok } from "./errors-B7kgv0cd.js";
4
4
  function createPlane(origin, xDirection = null, normal = [0, 0, 1]) {
5
5
  const zDir = vecNormalize(normal);
@@ -61,10 +61,6 @@ function planeToWorld(plane, local) {
61
61
  const [u, v] = local;
62
62
  return vecAdd(vecAdd(plane.origin, vecScale(plane.xDir, u)), vecScale(plane.yDir, v));
63
63
  }
64
- function planeToLocal(plane, world) {
65
- const relative = vecSub(world, plane.origin);
66
- return [vecDot(relative, plane.xDir), vecDot(relative, plane.yDir)];
67
- }
68
64
  function translatePlane(plane, offset) {
69
65
  return { ...plane, origin: vecAdd(plane.origin, offset) };
70
66
  }
@@ -79,7 +75,6 @@ export {
79
75
  createPlane as a,
80
76
  planeToWorld as b,
81
77
  createNamedPlane as c,
82
- planeToLocal as d,
83
78
  pivotPlane as p,
84
79
  resolvePlane as r,
85
80
  translatePlane as t
package/dist/vectors.cjs CHANGED
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const types = require("./types-CA_xrgDq.cjs");
4
4
  const vecOps = require("./vecOps-CjRL1jau.cjs");
5
- const vectors = require("./vectors-TlfO1hu2.cjs");
5
+ const vectors = require("./vectors-BafmMf96.cjs");
6
6
  exports.resolveDirection = types.resolveDirection;
7
7
  exports.toVec2 = types.toVec2;
8
8
  exports.toVec3 = types.toVec3;
package/dist/vectors.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { r, t, a } from "./types-CWDdqcrq.js";
2
2
  import { D, R, v, a as a2, b, c, d, e, f, g, h, i, j, k, l, m, n, o } from "./vecOps-ZDdZWbwT.js";
3
- import { c as c2, a as a3, p, r as r2, t as t2 } from "./vectors-cec8p8NQ.js";
3
+ import { c as c2, a as a3, p, r as r2, t as t2 } from "./vectors-CESkzEm6.js";
4
4
  export {
5
5
  D as DEG2RAD,
6
6
  R as RAD2DEG,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "brepjs",
3
- "version": "12.7.2",
3
+ "version": "12.8.0",
4
4
  "description": "Web CAD library with pluggable geometry kernel",
5
5
  "keywords": [
6
6
  "cad",
@@ -18,7 +18,7 @@
18
18
  "type": "module",
19
19
  "sideEffects": false,
20
20
  "engines": {
21
- "node": ">=24 <25"
21
+ "node": ">=24"
22
22
  },
23
23
  "packageManager": "npm@11.6.1",
24
24
  "workspaces": [
@@ -197,7 +197,7 @@
197
197
  "@types/opentype.js": "1.3.9",
198
198
  "@vitest/coverage-v8": "4.0.18",
199
199
  "brepjs-opencascade": "*",
200
- "brepkit-wasm": "1.0.5",
200
+ "brepkit-wasm": "1.1.0",
201
201
  "eslint": "10.0.3",
202
202
  "husky": "9.1.7",
203
203
  "knip": "5.86.0",