brepjs 8.2.0 → 8.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 (85) hide show
  1. package/dist/2d/lib/Curve2D.d.ts.map +1 -1
  2. package/dist/2d.cjs +2 -2
  3. package/dist/2d.js +3 -3
  4. package/dist/{Blueprint-D_luVeES.js → Blueprint-Bp45tnh0.js} +16 -12
  5. package/dist/{Blueprint-CTAwjJMN.cjs → Blueprint-zgFe_5Qj.cjs} +17 -13
  6. package/dist/{boolean2D-B5axNhjN.cjs → boolean2D-CfEbRMPF.cjs} +11 -11
  7. package/dist/{boolean2D-vw76Gayn.js → boolean2D-DN6ETTCq.js} +11 -11
  8. package/dist/{booleanFns-Yc3EBxdm.cjs → booleanFns-5dDG0jpA.cjs} +46 -9
  9. package/dist/{booleanFns-BhqXpQoZ.js → booleanFns-C-M6qqvB.js} +46 -9
  10. package/dist/brepjs.cjs +364 -109
  11. package/dist/brepjs.js +433 -177
  12. package/dist/{cast-C107o5ow.cjs → cast-CPNOTNFm.cjs} +3 -3
  13. package/dist/{cast-D0OhP1nV.js → cast-Cerqtxtb.js} +3 -3
  14. package/dist/core/errors.d.ts +7 -0
  15. package/dist/core/errors.d.ts.map +1 -1
  16. package/dist/core.cjs +4 -4
  17. package/dist/core.js +4 -4
  18. package/dist/{cornerFinder-DuStF5jK.cjs → cornerFinder-BQ-_VJx0.cjs} +1 -1
  19. package/dist/{cornerFinder-CPm2baSJ.js → cornerFinder-CC_MunIh.js} +1 -1
  20. package/dist/{curveBuilders-CN72XaIQ.js → curveBuilders-BREwqvuc.js} +3 -3
  21. package/dist/{curveBuilders-Du03_Yyf.cjs → curveBuilders-BkEJ-RVn.cjs} +3 -3
  22. package/dist/curveFns-VMxgfkqw.cjs +177 -0
  23. package/dist/curveFns-ZuQUBZvd.js +178 -0
  24. package/dist/{drawFns-CzBbcoXA.js → drawFns-BbhX1IUq.js} +19 -15
  25. package/dist/{drawFns-CiNxPu6J.cjs → drawFns-CKaHgGSK.cjs} +22 -18
  26. package/dist/{errors-wGhcJMpB.js → errors-CSYOlCCR.js} +10 -1
  27. package/dist/{errors-DK1VAdP4.cjs → errors-D13q2HCk.cjs} +10 -1
  28. package/dist/{faceFns-ub3CugDN.js → faceFns-CfJIbHY3.js} +4 -4
  29. package/dist/{faceFns-D1Sqnlu6.cjs → faceFns-es3GENII.cjs} +4 -4
  30. package/dist/{helpers-Dje6wrKi.cjs → helpers-C0q_FVxq.cjs} +10 -10
  31. package/dist/{helpers-BSQfs538.js → helpers-CmVkMubc.js} +7 -7
  32. package/dist/index.d.ts +3 -1
  33. package/dist/index.d.ts.map +1 -1
  34. package/dist/io.cjs +5 -5
  35. package/dist/io.js +5 -5
  36. package/dist/kernel/hullOps.d.ts +22 -0
  37. package/dist/kernel/hullOps.d.ts.map +1 -0
  38. package/dist/kernel/occtAdapter.d.ts +6 -0
  39. package/dist/kernel/occtAdapter.d.ts.map +1 -1
  40. package/dist/kernel/types.d.ts +6 -0
  41. package/dist/kernel/types.d.ts.map +1 -1
  42. package/dist/{loft-PMRx9iMG.cjs → loft-B-UCPW9P.cjs} +5 -5
  43. package/dist/{loft-BHn7GKm8.js → loft-oJq2OD3A.js} +5 -5
  44. package/dist/{measurement-B06hNs89.cjs → measurement-CYmT-C77.cjs} +3 -3
  45. package/dist/{measurement-BfhEneUl.js → measurement-Cf_SoIiR.js} +3 -3
  46. package/dist/measurement.cjs +1 -1
  47. package/dist/measurement.js +1 -1
  48. package/dist/{meshFns-BKSPaPXS.js → meshFns-CqNwW0PO.js} +6 -3
  49. package/dist/{meshFns-CFVxKBlE.cjs → meshFns-DDC_2U81.cjs} +6 -3
  50. package/dist/{occtBoundary-BFAaUtA7.cjs → occtBoundary-CocN2VKx.cjs} +419 -2
  51. package/dist/{occtBoundary-CoXB2xvx.js → occtBoundary-D_gjqgzo.js} +419 -2
  52. package/dist/{operations-CjQHEu1h.js → operations-6hdpuYmY.js} +6 -6
  53. package/dist/{operations-CdGb6IBU.cjs → operations-BQeW_DSM.cjs} +6 -6
  54. package/dist/operations.cjs +2 -2
  55. package/dist/operations.js +2 -2
  56. package/dist/query.cjs +5 -5
  57. package/dist/query.js +6 -6
  58. package/dist/result.cjs +1 -1
  59. package/dist/result.js +1 -1
  60. package/dist/{curveFns-ByeCqutv.cjs → shapeFns-B0zSdO9c.cjs} +98 -177
  61. package/dist/{curveFns-C5gSZ5EY.js → shapeFns-k1YHFwmB.js} +117 -196
  62. package/dist/{shapeTypes-UqVCIO_T.cjs → shapeTypes-BxVxLdiD.cjs} +1 -1
  63. package/dist/{shapeTypes-BU2LKv2S.js → shapeTypes-c-_pgYCx.js} +1 -1
  64. package/dist/sketching.cjs +2 -2
  65. package/dist/sketching.js +2 -2
  66. package/dist/text/textBlueprints.d.ts.map +1 -1
  67. package/dist/topology/booleanFns.d.ts.map +1 -1
  68. package/dist/topology/hullFns.d.ts +16 -0
  69. package/dist/topology/hullFns.d.ts.map +1 -0
  70. package/dist/topology/meshFns.d.ts +1 -0
  71. package/dist/topology/meshFns.d.ts.map +1 -1
  72. package/dist/topology/minkowskiFns.d.ts +20 -0
  73. package/dist/topology/minkowskiFns.d.ts.map +1 -0
  74. package/dist/topology/modifierFns.d.ts.map +1 -1
  75. package/dist/topology/shapeFns.d.ts +30 -0
  76. package/dist/topology/shapeFns.d.ts.map +1 -1
  77. package/dist/{topology-D8Au8q4i.cjs → topology-CycEc6Oe.cjs} +14 -13
  78. package/dist/{topology-BFB3LI_y.js → topology-tMKHJgw2.js} +9 -8
  79. package/dist/topology.cjs +34 -33
  80. package/dist/topology.js +59 -58
  81. package/dist/{vectors-BhfKwL9J.js → vectors-DE0XriuQ.js} +2 -2
  82. package/dist/{vectors-t1XG4LpL.cjs → vectors-DVmHF4zt.cjs} +2 -2
  83. package/dist/vectors.cjs +2 -2
  84. package/dist/vectors.js +2 -2
  85. package/package.json +5 -5
package/dist/topology.cjs CHANGED
@@ -1,38 +1,25 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const curveFns = require("./curveFns-ByeCqutv.cjs");
4
- const booleanFns = require("./booleanFns-Yc3EBxdm.cjs");
5
- const topology = require("./topology-D8Au8q4i.cjs");
6
- const faceFns = require("./faceFns-D1Sqnlu6.cjs");
7
- const meshFns = require("./meshFns-CFVxKBlE.cjs");
8
- const cast = require("./cast-C107o5ow.cjs");
9
- exports.approximateCurve = curveFns.approximateCurve;
10
- exports.curveEndPoint = curveFns.curveEndPoint;
11
- exports.curveIsClosed = curveFns.curveIsClosed;
12
- exports.curveIsPeriodic = curveFns.curveIsPeriodic;
13
- exports.curveLength = curveFns.curveLength;
14
- exports.curvePeriod = curveFns.curvePeriod;
15
- exports.curvePointAt = curveFns.curvePointAt;
16
- exports.curveStartPoint = curveFns.curveStartPoint;
17
- exports.curveTangentAt = curveFns.curveTangentAt;
18
- exports.flipOrientation = curveFns.flipOrientation;
19
- exports.getBounds = curveFns.getBounds;
20
- exports.getCurveType = curveFns.getCurveType;
21
- exports.getEdges = curveFns.getEdges;
22
- exports.getFaces = curveFns.getFaces;
23
- exports.getHashCode = curveFns.getHashCode;
24
- exports.getOrientation = curveFns.getOrientation;
25
- exports.getVertices = curveFns.getVertices;
26
- exports.getWires = curveFns.getWires;
27
- exports.interpolateCurve = curveFns.interpolateCurve;
28
- exports.isEqualShape = curveFns.isEqualShape;
29
- exports.isSameShape = curveFns.isSameShape;
30
- exports.iterEdges = curveFns.iterEdges;
31
- exports.iterFaces = curveFns.iterFaces;
32
- exports.iterVertices = curveFns.iterVertices;
33
- exports.iterWires = curveFns.iterWires;
34
- exports.offsetWire2D = curveFns.offsetWire2D;
35
- exports.vertexPosition = curveFns.vertexPosition;
3
+ const shapeFns = require("./shapeFns-B0zSdO9c.cjs");
4
+ const booleanFns = require("./booleanFns-5dDG0jpA.cjs");
5
+ const topology = require("./topology-CycEc6Oe.cjs");
6
+ const curveFns = require("./curveFns-VMxgfkqw.cjs");
7
+ const faceFns = require("./faceFns-es3GENII.cjs");
8
+ const meshFns = require("./meshFns-DDC_2U81.cjs");
9
+ const cast = require("./cast-CPNOTNFm.cjs");
10
+ exports.getBounds = shapeFns.getBounds;
11
+ exports.getEdges = shapeFns.getEdges;
12
+ exports.getFaces = shapeFns.getFaces;
13
+ exports.getHashCode = shapeFns.getHashCode;
14
+ exports.getVertices = shapeFns.getVertices;
15
+ exports.getWires = shapeFns.getWires;
16
+ exports.isEqualShape = shapeFns.isEqualShape;
17
+ exports.isSameShape = shapeFns.isSameShape;
18
+ exports.iterEdges = shapeFns.iterEdges;
19
+ exports.iterFaces = shapeFns.iterFaces;
20
+ exports.iterVertices = shapeFns.iterVertices;
21
+ exports.iterWires = shapeFns.iterWires;
22
+ exports.vertexPosition = shapeFns.vertexPosition;
36
23
  exports.cutAll = booleanFns.cutAll;
37
24
  exports.fuseAll = booleanFns.fuseAll;
38
25
  exports.adjacentFaces = topology.adjacentFaces;
@@ -49,6 +36,20 @@ exports.toGroupedBufferGeometryData = topology.toGroupedBufferGeometryData;
49
36
  exports.toLineGeometryData = topology.toLineGeometryData;
50
37
  exports.verticesOfEdge = topology.verticesOfEdge;
51
38
  exports.wiresOfFace = topology.wiresOfFace;
39
+ exports.approximateCurve = curveFns.approximateCurve;
40
+ exports.curveEndPoint = curveFns.curveEndPoint;
41
+ exports.curveIsClosed = curveFns.curveIsClosed;
42
+ exports.curveIsPeriodic = curveFns.curveIsPeriodic;
43
+ exports.curveLength = curveFns.curveLength;
44
+ exports.curvePeriod = curveFns.curvePeriod;
45
+ exports.curvePointAt = curveFns.curvePointAt;
46
+ exports.curveStartPoint = curveFns.curveStartPoint;
47
+ exports.curveTangentAt = curveFns.curveTangentAt;
48
+ exports.flipOrientation = curveFns.flipOrientation;
49
+ exports.getCurveType = curveFns.getCurveType;
50
+ exports.getOrientation = curveFns.getOrientation;
51
+ exports.interpolateCurve = curveFns.interpolateCurve;
52
+ exports.offsetWire2D = curveFns.offsetWire2D;
52
53
  exports.classifyPointOnFace = faceFns.classifyPointOnFace;
53
54
  exports.faceCenter = faceFns.faceCenter;
54
55
  exports.faceGeomType = faceFns.faceGeomType;
package/dist/topology.js CHANGED
@@ -1,76 +1,77 @@
1
- import { z, q, c, B, w, C, p, u, o, E, l, F, a, n, g, G, x, y, H, I, i, J, K, L, M, N, v } from "./curveFns-C5gSZ5EY.js";
2
- import { e, d } from "./booleanFns-BhqXpQoZ.js";
3
- import { a as a2, b, c as c2, e as e2, f, d as d2, g as g2, j, s, t, k, l as l2, v as v2, w as w2 } from "./topology-BFB3LI_y.js";
4
- import { c as c3, f as f2, a as a3, b as b2, d as d3, g as g3, i as i2, n as n2, o as o2, p as p2, e as e3, u as u2, h } from "./faceFns-ub3CugDN.js";
5
- import { c as c4, b as b3, e as e4, d as d4, f as f3 } from "./meshFns-BKSPaPXS.js";
6
- import { e as e5, c as c5, f as f4, d as d5, g as g4, i as i3, s as s2 } from "./cast-D0OhP1nV.js";
1
+ import { q, e, c, b, d, u, x, i, y, z, A, B, v } from "./shapeFns-k1YHFwmB.js";
2
+ import { e as e2, d as d2 } from "./booleanFns-C-M6qqvB.js";
3
+ import { a, b as b2, c as c2, e as e3, f, d as d3, g, j, s, t, k, l, v as v2, w } from "./topology-tMKHJgw2.js";
4
+ import { g as g2, d as d4, c as c3, h, f as f2, i as i2, b as b3, e as e4, a as a2, k as k2, l as l2, m, n, o } from "./curveFns-ZuQUBZvd.js";
5
+ import { c as c4, f as f3, a as a3, b as b4, d as d5, g as g3, i as i3, n as n2, o as o2, p, e as e5, u as u2, h as h2 } from "./faceFns-CfJIbHY3.js";
6
+ import { c as c5, b as b5, e as e6, d as d6, f as f4 } from "./meshFns-CqNwW0PO.js";
7
+ import { e as e7, c as c6, f as f5, d as d7, g as g4, i as i4, s as s2 } from "./cast-Cerqtxtb.js";
7
8
  export {
8
- a2 as adjacentFaces,
9
- z as approximateCurve,
10
- e5 as asTopo,
11
- b as autoHeal,
12
- c5 as cast,
9
+ a as adjacentFaces,
10
+ g2 as approximateCurve,
11
+ e7 as asTopo,
12
+ b2 as autoHeal,
13
+ c6 as cast,
13
14
  c2 as chamferDistAngleShape,
14
- c3 as classifyPointOnFace,
15
- c4 as clearMeshCache,
16
- b3 as createMeshCache,
17
- q as curveEndPoint,
18
- c as curveIsClosed,
19
- B as curveIsPeriodic,
20
- w as curveLength,
21
- C as curvePeriod,
22
- p as curvePointAt,
23
- u as curveStartPoint,
24
- o as curveTangentAt,
25
- e as cutAll,
26
- f4 as deserializeShape,
27
- d5 as downcast,
28
- e2 as edgesOfFace,
29
- e4 as exportIGES,
30
- d4 as exportSTEP,
31
- f3 as exportSTL,
32
- f2 as faceCenter,
15
+ c4 as classifyPointOnFace,
16
+ c5 as clearMeshCache,
17
+ b5 as createMeshCache,
18
+ d4 as curveEndPoint,
19
+ c3 as curveIsClosed,
20
+ h as curveIsPeriodic,
21
+ f2 as curveLength,
22
+ i2 as curvePeriod,
23
+ b3 as curvePointAt,
24
+ e4 as curveStartPoint,
25
+ a2 as curveTangentAt,
26
+ e2 as cutAll,
27
+ f5 as deserializeShape,
28
+ d7 as downcast,
29
+ e3 as edgesOfFace,
30
+ e6 as exportIGES,
31
+ d6 as exportSTEP,
32
+ f4 as exportSTL,
33
+ f3 as faceCenter,
33
34
  a3 as faceGeomType,
34
- b2 as faceOrientation,
35
+ b4 as faceOrientation,
35
36
  f as facesOfEdge,
36
- d3 as flipFaceOrientation,
37
- E as flipOrientation,
38
- d as fuseAll,
39
- l as getBounds,
40
- F as getCurveType,
41
- a as getEdges,
42
- n as getFaces,
43
- g as getHashCode,
44
- G as getOrientation,
37
+ d5 as flipFaceOrientation,
38
+ k2 as flipOrientation,
39
+ d2 as fuseAll,
40
+ q as getBounds,
41
+ l2 as getCurveType,
42
+ e as getEdges,
43
+ c as getFaces,
44
+ b as getHashCode,
45
+ m as getOrientation,
45
46
  g3 as getSurfaceType,
46
- x as getVertices,
47
- y as getWires,
48
- d2 as healFace,
49
- g2 as healSolid,
47
+ d as getVertices,
48
+ u as getWires,
49
+ d3 as healFace,
50
+ g as healSolid,
50
51
  j as healWire,
51
- i2 as innerWires,
52
- H as interpolateCurve,
52
+ i3 as innerWires,
53
+ n as interpolateCurve,
53
54
  g4 as isCompSolid,
54
- I as isEqualShape,
55
+ x as isEqualShape,
55
56
  i as isSameShape,
56
- J as iterEdges,
57
- K as iterFaces,
58
- i3 as iterTopo,
59
- L as iterVertices,
60
- M as iterWires,
57
+ y as iterEdges,
58
+ z as iterFaces,
59
+ i4 as iterTopo,
60
+ A as iterVertices,
61
+ B as iterWires,
61
62
  n2 as normalAt,
62
- N as offsetWire2D,
63
+ o as offsetWire2D,
63
64
  o2 as outerWire,
64
- p2 as pointOnSurface,
65
- e3 as projectPointOnFace,
65
+ p as pointOnSurface,
66
+ e5 as projectPointOnFace,
66
67
  s2 as shapeType,
67
68
  s as sharedEdges,
68
69
  t as toBufferGeometryData,
69
70
  k as toGroupedBufferGeometryData,
70
- l2 as toLineGeometryData,
71
+ l as toLineGeometryData,
71
72
  u2 as uvBounds,
72
- h as uvCoordinates,
73
+ h2 as uvCoordinates,
73
74
  v as vertexPosition,
74
75
  v2 as verticesOfEdge,
75
- w2 as wiresOfFace
76
+ w as wiresOfFace
76
77
  };
@@ -1,6 +1,6 @@
1
- import { d as makeOcAx3, a as toVec3 } from "./occtBoundary-CoXB2xvx.js";
1
+ import { d as makeOcAx3, a as toVec3 } from "./occtBoundary-D_gjqgzo.js";
2
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";
3
- import { e as err, x as validationError, l as ok } from "./errors-wGhcJMpB.js";
3
+ import { e as err, x as validationError, l as ok } from "./errors-CSYOlCCR.js";
4
4
  function createPlane(origin, xDirection = null, normal = [0, 0, 1]) {
5
5
  const zDir = vecNormalize(normal);
6
6
  if (vecIsZero(zDir)) throw new Error("Plane normal must be non-zero");
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
- const occtBoundary = require("./occtBoundary-BFAaUtA7.cjs");
2
+ const occtBoundary = require("./occtBoundary-CocN2VKx.cjs");
3
3
  const vecOps = require("./vecOps-CjRL1jau.cjs");
4
- const errors = require("./errors-DK1VAdP4.cjs");
4
+ const errors = require("./errors-D13q2HCk.cjs");
5
5
  function createPlane(origin, xDirection = null, normal = [0, 0, 1]) {
6
6
  const zDir = vecOps.vecNormalize(normal);
7
7
  if (vecOps.vecIsZero(zDir)) throw new Error("Plane normal must be non-zero");
package/dist/vectors.cjs CHANGED
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const occtBoundary = require("./occtBoundary-BFAaUtA7.cjs");
3
+ const occtBoundary = require("./occtBoundary-CocN2VKx.cjs");
4
4
  const vecOps = require("./vecOps-CjRL1jau.cjs");
5
- const vectors = require("./vectors-t1XG4LpL.cjs");
5
+ const vectors = require("./vectors-DVmHF4zt.cjs");
6
6
  exports.resolveDirection = occtBoundary.resolveDirection;
7
7
  exports.toVec2 = occtBoundary.toVec2;
8
8
  exports.toVec3 = occtBoundary.toVec3;
package/dist/vectors.js CHANGED
@@ -1,6 +1,6 @@
1
- import { r, t, a } from "./occtBoundary-CoXB2xvx.js";
1
+ import { r, t, a } from "./occtBoundary-D_gjqgzo.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-BhfKwL9J.js";
3
+ import { c as c2, a as a3, p, r as r2, t as t2 } from "./vectors-DE0XriuQ.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": "8.2.0",
3
+ "version": "8.4.0",
4
4
  "description": "Web CAD library built on OpenCascade",
5
5
  "keywords": [
6
6
  "cad",
@@ -188,19 +188,19 @@
188
188
  },
189
189
  "devDependencies": {
190
190
  "@commitlint/cli": "20.4.1",
191
- "@commitlint/config-conventional": "20.4.0",
192
- "@eslint/js": "9.39.2",
191
+ "@commitlint/config-conventional": "20.4.1",
192
+ "@eslint/js": "10.0.1",
193
193
  "@types/opentype.js": "1.3.9",
194
194
  "@vitest/coverage-v8": "4.0.18",
195
195
  "brepjs-opencascade": "*",
196
- "eslint": "9.39.2",
196
+ "eslint": "10.0.0",
197
197
  "husky": "9.1.7",
198
198
  "knip": "5.83.1",
199
199
  "lint-staged": "16.2.7",
200
200
  "prettier": "3.8.1",
201
201
  "typedoc": "0.28.16",
202
202
  "typescript": "5.9.3",
203
- "typescript-eslint": "8.54.0",
203
+ "typescript-eslint": "8.56.0",
204
204
  "vite": "7.3.1",
205
205
  "vite-plugin-dts": "4.5.4",
206
206
  "vitest": "4.0.18"