brepjs 8.8.0 → 8.8.2
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/2d/lib/vectorOperations.d.ts +1 -3
- package/dist/2d/lib/vectorOperations.d.ts.map +1 -1
- package/dist/2d.cjs +2 -2
- package/dist/2d.js +3 -3
- package/dist/{Blueprint-DEhjUTv4.cjs → Blueprint-BmbNUnGI.cjs} +8 -8
- package/dist/{Blueprint-BihoXiSm.js → Blueprint-C-JJkkwL.js} +8 -8
- package/dist/{boolean2D-B7MAHWWy.js → boolean2D-Dgnuy63w.js} +10 -10
- package/dist/{boolean2D-BMw-2GRS.cjs → boolean2D-q5FOdOQW.cjs} +10 -10
- package/dist/{booleanFns-CxU6z_LD.js → booleanFns--Orezl-b.js} +6 -6
- package/dist/{booleanFns-BOrYk5DW.cjs → booleanFns-CFit7JYt.cjs} +6 -6
- package/dist/brepjs.cjs +33 -148
- package/dist/brepjs.js +85 -200
- package/dist/core/errors.d.ts +0 -1
- package/dist/core/errors.d.ts.map +1 -1
- package/dist/core/occtBoundary.d.ts +1 -5
- package/dist/core/occtBoundary.d.ts.map +1 -1
- package/dist/core/planeOps.d.ts +0 -12
- package/dist/core/planeOps.d.ts.map +1 -1
- package/dist/core/vecOps.d.ts +1 -20
- package/dist/core/vecOps.d.ts.map +1 -1
- package/dist/core.cjs +4 -4
- package/dist/core.js +4 -4
- package/dist/{cornerFinder-Dh6RKiNy.js → cornerFinder-KNTFoGrm.js} +1 -1
- package/dist/{cornerFinder-DilC5fiE.cjs → cornerFinder-v4un1Fr9.cjs} +1 -1
- package/dist/{curveFns-BT8cTVDA.cjs → curveFns-6ovDM_sR.cjs} +3 -3
- package/dist/{curveFns-BJG6oqMt.js → curveFns-BhQECv8e.js} +3 -3
- package/dist/{drawFns-DcEDgZzq.cjs → drawFns-WgXeXHH1.cjs} +13 -13
- package/dist/{drawFns-aKd56G2a.js → drawFns-XwroLxdb.js} +13 -13
- package/dist/{errors-Coh_5_19.js → errors-DJ92ermb.js} +0 -2
- package/dist/{errors-eRQu29oc.cjs → errors-NNmTtM5u.cjs} +0 -2
- package/dist/{faceFns-C8ye0H_K.js → faceFns-3PDjBeW7.js} +3 -3
- package/dist/{faceFns-B8fGirMy.cjs → faceFns-CxaLWOjc.cjs} +3 -3
- package/dist/{helpers-MiJaYJMA.cjs → helpers-CRfqaW0Y.cjs} +6 -6
- package/dist/{helpers-8QToWU3Q.js → helpers-CtBCzEqs.js} +6 -6
- package/dist/io/objImportFns.d.ts.map +1 -1
- package/dist/io/threemfImportFns.d.ts.map +1 -1
- package/dist/io.cjs +5 -5
- package/dist/io.js +5 -5
- package/dist/kernel/constructorOps.d.ts +6 -0
- package/dist/kernel/constructorOps.d.ts.map +1 -1
- package/dist/kernel/hullOps.d.ts.map +1 -1
- package/dist/{loft-DCEZpu53.cjs → loft-CVb-IjEI.cjs} +7 -7
- package/dist/{loft-C810lPN5.js → loft-DMFjK6lk.js} +7 -7
- package/dist/{measurement-BFotSPr0.cjs → measurement-CecYIt3s.cjs} +3 -3
- package/dist/{measurement-BT2jlvKC.js → measurement-DHDLAH7-.js} +3 -3
- package/dist/measurement.cjs +1 -1
- package/dist/measurement.js +1 -1
- package/dist/{meshFns-CxYud6A4.cjs → meshFns-CPNNlpbw.cjs} +3 -3
- package/dist/{meshFns-DPbSUo0q.js → meshFns-DAmWVyEp.js} +3 -3
- package/dist/{occtBoundary-ChEJsbOT.cjs → occtBoundary-Cqfsau2c.cjs} +31 -29
- package/dist/{occtBoundary-DC1yVJex.js → occtBoundary-DvBywHyU.js} +38 -36
- package/dist/operations/exporterUtils.d.ts +0 -9
- package/dist/operations/exporterUtils.d.ts.map +1 -1
- package/dist/operations/roofFns.d.ts.map +1 -1
- package/dist/{operations-CckDdRJ0.cjs → operations-BQ25CPI8.cjs} +6 -6
- package/dist/{operations-IFpeXZme.js → operations-vN0tcoaU.js} +6 -6
- package/dist/operations.cjs +2 -2
- package/dist/operations.js +2 -2
- package/dist/query.cjs +5 -5
- package/dist/query.js +6 -6
- package/dist/result.cjs +1 -1
- package/dist/result.js +1 -1
- package/dist/{shapeFns-CQWvvjmd.cjs → shapeFns-C785aeVn.cjs} +4 -4
- package/dist/{shapeFns-BTnqah-6.js → shapeFns-ClpALED4.js} +4 -4
- package/dist/{shapeTypes-MK0PKst9.cjs → shapeTypes-CIijJxCz.cjs} +1 -1
- package/dist/{shapeTypes-BVd0rRNe.js → shapeTypes-DnwCo942.js} +1 -1
- package/dist/sketching.cjs +2 -2
- package/dist/sketching.js +2 -2
- package/dist/{surfaceBuilders-5Ci2Du77.cjs → surfaceBuilders-CC0ZQGix.cjs} +5 -5
- package/dist/{surfaceBuilders-nuWe3gns.js → surfaceBuilders-CrJtFu2a.js} +5 -5
- package/dist/topology/api.d.ts.map +1 -1
- package/dist/topology/surfaceFns.d.ts.map +1 -1
- package/dist/{topology-P-u0NDwX.js → topology-CqyxpmEh.js} +8 -8
- package/dist/{topology-C06jndeV.cjs → topology-zG8maSDK.cjs} +8 -8
- package/dist/topology.cjs +6 -6
- package/dist/topology.js +6 -6
- package/dist/{vectors-Dp17lKnm.js → vectors-2lOjaa8N.js} +2 -2
- package/dist/{vectors-DrAMMsHl.cjs → vectors-CGLqemPY.cjs} +2 -2
- package/dist/vectors.cjs +2 -2
- package/dist/vectors.js +2 -2
- package/package.json +4 -4
|
@@ -1104,6 +1104,34 @@ function makeCone(oc, radius1, radius2, height, center = [0, 0, 0], direction =
|
|
|
1104
1104
|
dir.delete();
|
|
1105
1105
|
return solid;
|
|
1106
1106
|
}
|
|
1107
|
+
function makeTriFace(oc, a, b, c) {
|
|
1108
|
+
const gpA = new oc.gp_Pnt_3(a[0], a[1], a[2]);
|
|
1109
|
+
const gpB = new oc.gp_Pnt_3(b[0], b[1], b[2]);
|
|
1110
|
+
const gpC = new oc.gp_Pnt_3(c[0], c[1], c[2]);
|
|
1111
|
+
const e1 = new oc.BRepBuilderAPI_MakeEdge_3(gpA, gpB);
|
|
1112
|
+
const e2 = new oc.BRepBuilderAPI_MakeEdge_3(gpB, gpC);
|
|
1113
|
+
const e3 = new oc.BRepBuilderAPI_MakeEdge_3(gpC, gpA);
|
|
1114
|
+
const wireBuilder = new oc.BRepBuilderAPI_MakeWire_1();
|
|
1115
|
+
wireBuilder.Add_1(e1.Edge());
|
|
1116
|
+
wireBuilder.Add_1(e2.Edge());
|
|
1117
|
+
wireBuilder.Add_1(e3.Edge());
|
|
1118
|
+
let face = null;
|
|
1119
|
+
if (wireBuilder.IsDone()) {
|
|
1120
|
+
const makeFaceBuilder = new oc.BRepBuilderAPI_MakeFace_15(wireBuilder.Wire(), false);
|
|
1121
|
+
if (makeFaceBuilder.IsDone()) {
|
|
1122
|
+
face = makeFaceBuilder.Face();
|
|
1123
|
+
}
|
|
1124
|
+
makeFaceBuilder.delete();
|
|
1125
|
+
}
|
|
1126
|
+
wireBuilder.delete();
|
|
1127
|
+
e1.delete();
|
|
1128
|
+
e2.delete();
|
|
1129
|
+
e3.delete();
|
|
1130
|
+
gpA.delete();
|
|
1131
|
+
gpB.delete();
|
|
1132
|
+
gpC.delete();
|
|
1133
|
+
return face;
|
|
1134
|
+
}
|
|
1107
1135
|
function makeTorus(oc, majorRadius, minorRadius, center = [0, 0, 0], direction = [0, 0, 1]) {
|
|
1108
1136
|
const origin = new oc.gp_Pnt_3(...center);
|
|
1109
1137
|
const dir = new oc.gp_Dir_4(...direction);
|
|
@@ -1745,39 +1773,12 @@ function extractVertices(oc, shapes, tolerance) {
|
|
|
1745
1773
|
}
|
|
1746
1774
|
return vertices;
|
|
1747
1775
|
}
|
|
1748
|
-
function buildTriFace(oc, pa, pb, pc) {
|
|
1749
|
-
const gpA = new oc.gp_Pnt_3(pa.x, pa.y, pa.z);
|
|
1750
|
-
const gpB = new oc.gp_Pnt_3(pb.x, pb.y, pb.z);
|
|
1751
|
-
const gpC = new oc.gp_Pnt_3(pc.x, pc.y, pc.z);
|
|
1752
|
-
const e1 = new oc.BRepBuilderAPI_MakeEdge_3(gpA, gpB);
|
|
1753
|
-
const e2 = new oc.BRepBuilderAPI_MakeEdge_3(gpB, gpC);
|
|
1754
|
-
const e3 = new oc.BRepBuilderAPI_MakeEdge_3(gpC, gpA);
|
|
1755
|
-
const wireBuilder = new oc.BRepBuilderAPI_MakeWire_1();
|
|
1756
|
-
wireBuilder.Add_1(e1.Edge());
|
|
1757
|
-
wireBuilder.Add_1(e2.Edge());
|
|
1758
|
-
wireBuilder.Add_1(e3.Edge());
|
|
1759
|
-
let face = null;
|
|
1760
|
-
if (wireBuilder.IsDone()) {
|
|
1761
|
-
const makeFaceBuilder = new oc.BRepBuilderAPI_MakeFace_15(wireBuilder.Wire(), false);
|
|
1762
|
-
if (makeFaceBuilder.IsDone()) {
|
|
1763
|
-
face = makeFaceBuilder.Face();
|
|
1764
|
-
}
|
|
1765
|
-
makeFaceBuilder.delete();
|
|
1766
|
-
}
|
|
1767
|
-
wireBuilder.delete();
|
|
1768
|
-
e1.delete();
|
|
1769
|
-
e2.delete();
|
|
1770
|
-
e3.delete();
|
|
1771
|
-
gpA.delete();
|
|
1772
|
-
gpB.delete();
|
|
1773
|
-
gpC.delete();
|
|
1774
|
-
return face;
|
|
1775
|
-
}
|
|
1776
1776
|
function reconstructBrep(oc, hullResult, tolerance) {
|
|
1777
1777
|
const { faces: hullFaces, points } = hullResult;
|
|
1778
1778
|
const ocFaces = [];
|
|
1779
1779
|
for (const [ia, ib, ic] of hullFaces) {
|
|
1780
|
-
const
|
|
1780
|
+
const pa = at(points, ia), pb = at(points, ib), pc = at(points, ic);
|
|
1781
|
+
const face = makeTriFace(oc, [pa.x, pa.y, pa.z], [pb.x, pb.y, pb.z], [pc.x, pc.y, pc.z]);
|
|
1781
1782
|
if (face !== null) {
|
|
1782
1783
|
ocFaces.push(face);
|
|
1783
1784
|
}
|
|
@@ -2200,15 +2201,16 @@ export {
|
|
|
2200
2201
|
makeOcAx2 as c,
|
|
2201
2202
|
toOcPnt as d,
|
|
2202
2203
|
makeOcAx3 as e,
|
|
2203
|
-
|
|
2204
|
+
makeTriFace as f,
|
|
2204
2205
|
getKernel as g,
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2206
|
+
fromOcDir as h,
|
|
2207
|
+
fromOcPnt as i,
|
|
2208
|
+
fromOcVec as j,
|
|
2209
|
+
initFromOC as k,
|
|
2210
|
+
withOcPnt as l,
|
|
2210
2211
|
makeOcAx1 as m,
|
|
2211
|
-
|
|
2212
|
+
withOcVec as n,
|
|
2213
|
+
uniqueId as o,
|
|
2212
2214
|
resolveDirection as r,
|
|
2213
2215
|
surfaceCurvature as s,
|
|
2214
2216
|
toVec2 as t,
|
|
@@ -11,15 +11,6 @@ type OcType = any;
|
|
|
11
11
|
* @returns An OCCT `TCollection_ExtendedString` instance.
|
|
12
12
|
*/
|
|
13
13
|
export declare function wrapString(str: string): OcType;
|
|
14
|
-
/**
|
|
15
|
-
* Convert a hex color string to an RGB tuple with values in [0, 255].
|
|
16
|
-
*
|
|
17
|
-
* Accepts `'#rgb'`, `'#rrggbb'`, or bare hex without the leading `#`.
|
|
18
|
-
*
|
|
19
|
-
* @param hex - Hex color string (e.g. `'#ff8800'` or `'f80'`).
|
|
20
|
-
* @returns A 3-element tuple `[red, green, blue]` with integer values 0-255.
|
|
21
|
-
*/
|
|
22
|
-
export declare function colorFromHex(hex: string): [number, number, number];
|
|
23
14
|
/**
|
|
24
15
|
* Create an OCCT `Quantity_ColorRGBA` from a hex color string and alpha.
|
|
25
16
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exporterUtils.d.ts","sourceRoot":"","sources":["../../src/operations/exporterUtils.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,KAAK,MAAM,GAAG,GAAG,CAAC;AAGlB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAMrD;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAG9C;
|
|
1
|
+
{"version":3,"file":"exporterUtils.d.ts","sourceRoot":"","sources":["../../src/operations/exporterUtils.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,KAAK,MAAM,GAAG,GAAG,CAAC;AAGlB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAMrD;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAG9C;AAwBD;;;;;;GAMG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,SAAI,GAAG,MAAM,CAIxD;AAMD,8CAA8C;AAC9C,MAAM,MAAM,aAAa,GAAG,GAAG,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,GAAG,IAAI,GAAG,GAAG,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,GAAG,IAAI,CAAC;AAMlG;;;;;;;;;GASG;AACH,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,aAAa,GAAG,SAAS,EAC/B,SAAS,EAAE,aAAa,GAAG,SAAS,EACpC,CAAC,EAAE,CAAC,CAAC,SAAS,SAAS,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC,GAClC,IAAI,CAON;AAED;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CASxD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"roofFns.d.ts","sourceRoot":"","sources":["../../src/operations/roofFns.ts"],"names":[],"mappings":"AAAA;;;GAGG;
|
|
1
|
+
{"version":3,"file":"roofFns.d.ts","sourceRoot":"","sources":["../../src/operations/roofFns.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAGzD,OAAO,EAAE,KAAK,MAAM,EAAW,MAAM,mBAAmB,CAAC;AAWzD,MAAM,WAAW,WAAW;IAC1B,iDAAiD;IACjD,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;CACzB;AAwCD;;;;;;;GAOG;AACH,wBAAgB,IAAI,CAAC,CAAC,EAAE,IAAI,EAAE,OAAO,CAAC,EAAE,WAAW,GAAG,MAAM,CAAC,KAAK,CAAC,CA4HlE"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const occtBoundary = require("./occtBoundary-
|
|
2
|
+
const occtBoundary = require("./occtBoundary-Cqfsau2c.cjs");
|
|
3
3
|
const vecOps = require("./vecOps-CjRL1jau.cjs");
|
|
4
|
-
const shapeTypes = require("./shapeTypes-
|
|
5
|
-
const faceFns = require("./faceFns-
|
|
6
|
-
const errors = require("./errors-
|
|
7
|
-
const loft = require("./loft-
|
|
8
|
-
const booleanFns = require("./booleanFns-
|
|
4
|
+
const shapeTypes = require("./shapeTypes-CIijJxCz.cjs");
|
|
5
|
+
const faceFns = require("./faceFns-CxaLWOjc.cjs");
|
|
6
|
+
const errors = require("./errors-NNmTtM5u.cjs");
|
|
7
|
+
const loft = require("./loft-CVb-IjEI.cjs");
|
|
8
|
+
const booleanFns = require("./booleanFns-CFit7JYt.cjs");
|
|
9
9
|
function uuidv() {
|
|
10
10
|
return (String([1e7]) + String(-1e3) + String(-4e3) + String(-8e3) + String(-1e11)).replace(
|
|
11
11
|
/[018]/g,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { g as getKernel, b as toOcVec, d as toOcPnt, e as makeOcAx3, u as uniqueIOFilename } from "./occtBoundary-
|
|
1
|
+
import { g as getKernel, b as toOcVec, d as toOcPnt, e as makeOcAx3, u as uniqueIOFilename } from "./occtBoundary-DvBywHyU.js";
|
|
2
2
|
import { g as vecLength, v as vecAdd, D as DEG2RAD, f as vecIsZero, j as vecNormalize, n as vecScale } from "./vecOps-ZDdZWbwT.js";
|
|
3
|
-
import { b as createOcHandle, c as castShape, h as isShape3D, m as isWire, n as gcWithScope, u as createSolid } from "./shapeTypes-
|
|
4
|
-
import { d as downcast } from "./faceFns-
|
|
5
|
-
import { e as err, x as validationError, u as unwrap, p as typeCastError, l as ok, B as BrepErrorCode, d as isErr, o as occtError, i as ioError, b as computationError } from "./errors-
|
|
6
|
-
import { n as buildLawFromProfile } from "./loft-
|
|
7
|
-
import { g as fuseAll } from "./booleanFns-
|
|
3
|
+
import { b as createOcHandle, c as castShape, h as isShape3D, m as isWire, n as gcWithScope, u as createSolid } from "./shapeTypes-DnwCo942.js";
|
|
4
|
+
import { d as downcast } from "./faceFns-3PDjBeW7.js";
|
|
5
|
+
import { e as err, x as validationError, u as unwrap, p as typeCastError, l as ok, B as BrepErrorCode, d as isErr, o as occtError, i as ioError, b as computationError } from "./errors-DJ92ermb.js";
|
|
6
|
+
import { n as buildLawFromProfile } from "./loft-DMFjK6lk.js";
|
|
7
|
+
import { g as fuseAll } from "./booleanFns--Orezl-b.js";
|
|
8
8
|
function uuidv() {
|
|
9
9
|
return (String([1e7]) + String(-1e3) + String(-4e3) + String(-8e3) + String(-1e11)).replace(
|
|
10
10
|
/[018]/g,
|
package/dist/operations.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const operations = require("./operations-
|
|
4
|
-
const loft = require("./loft-
|
|
3
|
+
const operations = require("./operations-BQ25CPI8.cjs");
|
|
4
|
+
const loft = require("./loft-CVb-IjEI.cjs");
|
|
5
5
|
exports.addChild = operations.addChild;
|
|
6
6
|
exports.addStep = operations.addStep;
|
|
7
7
|
exports.circularPattern = operations.circularPattern;
|
package/dist/operations.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a, b, c, d, f, g, h, i, j, k, m, n, o, p, l, q, t, u, v, x, y, z, A, B, s, C, D, E, w } from "./operations-
|
|
2
|
-
import { b as b2, g as g2, l as l2, r } from "./loft-
|
|
1
|
+
import { a, b, c, d, f, g, h, i, j, k, m, n, o, p, l, q, t, u, v, x, y, z, A, B, s, C, D, E, w } from "./operations-vN0tcoaU.js";
|
|
2
|
+
import { b as b2, g as g2, l as l2, r } from "./loft-DMFjK6lk.js";
|
|
3
3
|
export {
|
|
4
4
|
a as addChild,
|
|
5
5
|
b as addStep,
|
package/dist/query.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const helpers = require("./helpers-
|
|
4
|
-
const cornerFinder = require("./cornerFinder-
|
|
5
|
-
const occtBoundary = require("./occtBoundary-
|
|
6
|
-
const shapeTypes = require("./shapeTypes-
|
|
3
|
+
const helpers = require("./helpers-CRfqaW0Y.cjs");
|
|
4
|
+
const cornerFinder = require("./cornerFinder-v4un1Fr9.cjs");
|
|
5
|
+
const occtBoundary = require("./occtBoundary-Cqfsau2c.cjs");
|
|
6
|
+
const shapeTypes = require("./shapeTypes-CIijJxCz.cjs");
|
|
7
7
|
const vecOps = require("./vecOps-CjRL1jau.cjs");
|
|
8
|
-
const curveFns = require("./curveFns-
|
|
8
|
+
const curveFns = require("./curveFns-6ovDM_sR.cjs");
|
|
9
9
|
function edgeDirectionFilter(dir, angle) {
|
|
10
10
|
const d = vecOps.vecNormalize(helpers.resolveDir(dir));
|
|
11
11
|
return (edge) => {
|
package/dist/query.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { l as createTypedFinder, o as distanceFromPointFilter, q as resolveDir } from "./helpers-
|
|
2
|
-
import { m, g } from "./helpers-
|
|
3
|
-
import { c } from "./cornerFinder-
|
|
4
|
-
import { g as getKernel } from "./occtBoundary-
|
|
5
|
-
import { n as gcWithScope } from "./shapeTypes-
|
|
1
|
+
import { l as createTypedFinder, o as distanceFromPointFilter, q as resolveDir } from "./helpers-CtBCzEqs.js";
|
|
2
|
+
import { m, g } from "./helpers-CtBCzEqs.js";
|
|
3
|
+
import { c } from "./cornerFinder-KNTFoGrm.js";
|
|
4
|
+
import { g as getKernel } from "./occtBoundary-DvBywHyU.js";
|
|
5
|
+
import { n as gcWithScope } from "./shapeTypes-DnwCo942.js";
|
|
6
6
|
import { j as vecNormalize, d as vecDot, D as DEG2RAD } from "./vecOps-ZDdZWbwT.js";
|
|
7
|
-
import { b as getCurveType, i as curveLength } from "./curveFns-
|
|
7
|
+
import { b as getCurveType, i as curveLength } from "./curveFns-BhQECv8e.js";
|
|
8
8
|
function edgeDirectionFilter(dir, angle) {
|
|
9
9
|
const d = vecNormalize(resolveDir(dir));
|
|
10
10
|
return (edge) => {
|
package/dist/result.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const errors = require("./errors-
|
|
3
|
+
const errors = require("./errors-NNmTtM5u.cjs");
|
|
4
4
|
class BrepBugError extends Error {
|
|
5
5
|
location;
|
|
6
6
|
constructor(location, message) {
|
package/dist/result.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B, O, a, c, b, e, f, i, d, g, m, h, j, k, o, l, z, q, s, t, n, p, u, r, v, w, x } from "./errors-
|
|
1
|
+
import { B, O, a, c, b, e, f, i, d, g, m, h, j, k, o, l, z, q, s, t, n, p, u, r, v, w, x } from "./errors-DJ92ermb.js";
|
|
2
2
|
class BrepBugError extends Error {
|
|
3
3
|
location;
|
|
4
4
|
constructor(location, message) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const occtBoundary = require("./occtBoundary-
|
|
3
|
-
const shapeTypes = require("./shapeTypes-
|
|
2
|
+
const occtBoundary = require("./occtBoundary-Cqfsau2c.cjs");
|
|
3
|
+
const shapeTypes = require("./shapeTypes-CIijJxCz.cjs");
|
|
4
4
|
const vecOps = require("./vecOps-CjRL1jau.cjs");
|
|
5
|
-
const faceFns = require("./faceFns-
|
|
6
|
-
const errors = require("./errors-
|
|
5
|
+
const faceFns = require("./faceFns-CxaLWOjc.cjs");
|
|
6
|
+
const errors = require("./errors-NNmTtM5u.cjs");
|
|
7
7
|
function clone(shape) {
|
|
8
8
|
return shapeTypes.castShape(errors.unwrap(faceFns.downcast(shape.wrapped)));
|
|
9
9
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { g as getKernel, b as toOcVec, m as makeOcAx1, c as makeOcAx2, d as toOcPnt } from "./occtBoundary-
|
|
2
|
-
import { c as castShape, g as getShapeKind, n as gcWithScope } from "./shapeTypes-
|
|
1
|
+
import { g as getKernel, b as toOcVec, m as makeOcAx1, c as makeOcAx2, d as toOcPnt } from "./occtBoundary-DvBywHyU.js";
|
|
2
|
+
import { c as castShape, g as getShapeKind, n as gcWithScope } from "./shapeTypes-DnwCo942.js";
|
|
3
3
|
import { D as DEG2RAD, H as HASH_CODE_MAX } from "./vecOps-ZDdZWbwT.js";
|
|
4
|
-
import { i as iterTopo, d as downcast } from "./faceFns-
|
|
5
|
-
import { u as unwrap } from "./errors-
|
|
4
|
+
import { i as iterTopo, d as downcast } from "./faceFns-3PDjBeW7.js";
|
|
5
|
+
import { u as unwrap } from "./errors-DJ92ermb.js";
|
|
6
6
|
function clone(shape) {
|
|
7
7
|
return castShape(unwrap(downcast(shape.wrapped)));
|
|
8
8
|
}
|
|
@@ -44,7 +44,7 @@ var __callDispose = (stack, error, hasError) => {
|
|
|
44
44
|
};
|
|
45
45
|
return next();
|
|
46
46
|
};
|
|
47
|
-
const occtBoundary = require("./occtBoundary-
|
|
47
|
+
const occtBoundary = require("./occtBoundary-Cqfsau2c.cjs");
|
|
48
48
|
const globalWithRegistry = globalThis;
|
|
49
49
|
if (!globalWithRegistry.FinalizationRegistry) {
|
|
50
50
|
console.warn("brepjs: FinalizationRegistry unavailable — garbage collection will not work");
|
|
@@ -43,7 +43,7 @@ var __callDispose = (stack, error, hasError) => {
|
|
|
43
43
|
};
|
|
44
44
|
return next();
|
|
45
45
|
};
|
|
46
|
-
import { g as getKernel } from "./occtBoundary-
|
|
46
|
+
import { g as getKernel } from "./occtBoundary-DvBywHyU.js";
|
|
47
47
|
const globalWithRegistry = globalThis;
|
|
48
48
|
if (!globalWithRegistry.FinalizationRegistry) {
|
|
49
49
|
console.warn("brepjs: FinalizationRegistry unavailable — garbage collection will not work");
|
package/dist/sketching.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const drawFns = require("./drawFns-
|
|
4
|
-
const boolean2D = require("./boolean2D-
|
|
3
|
+
const drawFns = require("./drawFns-WgXeXHH1.cjs");
|
|
4
|
+
const boolean2D = require("./boolean2D-q5FOdOQW.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-
|
|
2
|
-
import { B as B2, a as a2, F as F2, S as S2 } from "./boolean2D-
|
|
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-XwroLxdb.js";
|
|
2
|
+
import { B as B2, a as a2, F as F2, S as S2 } from "./boolean2D-Dgnuy63w.js";
|
|
3
3
|
export {
|
|
4
4
|
B2 as BaseSketcher2d,
|
|
5
5
|
a2 as BlueprintSketcher,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const occtBoundary = require("./occtBoundary-
|
|
3
|
-
const errors = require("./errors-
|
|
4
|
-
const shapeTypes = require("./shapeTypes-
|
|
5
|
-
const shapeFns = require("./shapeFns-
|
|
6
|
-
const faceFns = require("./faceFns-
|
|
2
|
+
const occtBoundary = require("./occtBoundary-Cqfsau2c.cjs");
|
|
3
|
+
const errors = require("./errors-NNmTtM5u.cjs");
|
|
4
|
+
const shapeTypes = require("./shapeTypes-CIijJxCz.cjs");
|
|
5
|
+
const shapeFns = require("./shapeFns-C785aeVn.cjs");
|
|
6
|
+
const faceFns = require("./faceFns-CxaLWOjc.cjs");
|
|
7
7
|
function range(len) {
|
|
8
8
|
return Array.from(Array(len).keys());
|
|
9
9
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { g as getKernel, d as toOcPnt, b as toOcVec, c as makeOcAx2, e as makeOcAx3 } from "./occtBoundary-
|
|
2
|
-
import { e as err, o as occtError, l as ok, x as validationError, a as andThen } from "./errors-
|
|
3
|
-
import { d as isEdge, m as isWire, o as createWire, p as createEdge, n as gcWithScope, q as createFace, r as localGC, e as isFace } from "./shapeTypes-
|
|
4
|
-
import { d as getEdges } from "./shapeFns-
|
|
5
|
-
import { o as outerWire, c as cast } from "./faceFns-
|
|
1
|
+
import { g as getKernel, d as toOcPnt, b as toOcVec, c as makeOcAx2, e as makeOcAx3 } from "./occtBoundary-DvBywHyU.js";
|
|
2
|
+
import { e as err, o as occtError, l as ok, x as validationError, a as andThen } from "./errors-DJ92ermb.js";
|
|
3
|
+
import { d as isEdge, m as isWire, o as createWire, p as createEdge, n as gcWithScope, q as createFace, r as localGC, e as isFace } from "./shapeTypes-DnwCo942.js";
|
|
4
|
+
import { d as getEdges } from "./shapeFns-ClpALED4.js";
|
|
5
|
+
import { o as outerWire, c as cast } from "./faceFns-3PDjBeW7.js";
|
|
6
6
|
function range(len) {
|
|
7
7
|
return Array.from(Array(len).keys());
|
|
8
8
|
}
|
|
@@ -1 +1 @@
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AElB;AAED,4CAA4C;AAC5C,wBAAgB,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAC,QAAQ,CAAC,GAAG,UAAU,CAAC,gBAAgB,CAEhF;AAED,wCAAwC;AACxC,wBAAgB,MAAM,CAAC,KAAK,EAAE,SAAS,CAAC,QAAQ,CAAC,GAAG,MAAM,CAEzD;AAED,4CAA4C;AAC5C,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAC,CAEvD;AAED,iCAAiC;AACjC,wBAAgB,OAAO,CAAC,KAAK,EAAE,SAAS,CAAC,QAAQ,CAAC,GAAG,OAAO,CAE3D;AAED,wCAAwC;AACxC,wBAAgB,OAAO,CAAC,KAAK,EAAE,SAAS,CAAC,QAAQ,CAAC,GAAG,OAAO,CAE3D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"surfaceFns.d.ts","sourceRoot":"","sources":["../../src/topology/surfaceFns.ts"],"names":[],"mappings":"AAAA;;GAEG;
|
|
1
|
+
{"version":3,"file":"surfaceFns.d.ts","sourceRoot":"","sources":["../../src/topology/surfaceFns.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,OAAO,KAAK,EAAE,QAAQ,EAAQ,MAAM,uBAAuB,CAAC;AAE5D,OAAO,EAAE,KAAK,MAAM,EAAW,MAAM,mBAAmB,CAAC;AAGzD,MAAM,WAAW,sBAAsB;IACrC,qEAAqE;IACrE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kEAAkE;IAClE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,6CAA6C;IAC7C,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;;;;GASG;AACH,wBAAgB,eAAe,CAC7B,OAAO,EAAE,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,EAC7C,OAAO,GAAE,sBAA2B,GACnC,MAAM,CAAC,QAAQ,CAAC,CAsDlB;AA4ID,MAAM,WAAW,uBAAwB,SAAQ,sBAAsB;IACrE,6DAA6D;IAC7D,OAAO,CAAC,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,WAAW,CAAC;IACxC,6EAA6E;IAC7E,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;;;;;;;GAQG;AACH,wBAAsB,gBAAgB,CACpC,IAAI,EAAE,IAAI,EACV,OAAO,GAAE,uBAA4B,GACpC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAqG3B"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { c as getWires, a as getFaces } from "./shapeFns-
|
|
2
|
-
import "./booleanFns-
|
|
3
|
-
import { g as getKernel } from "./occtBoundary-
|
|
4
|
-
import { c as castShape, h as isShape3D, k as isSolid, e as isFace, m as isWire } from "./shapeTypes-
|
|
5
|
-
import { d as downcast } from "./faceFns-
|
|
6
|
-
import { e as err, x as validationError, o as occtError, d as isErr, p as typeCastError, l as ok, u as unwrap, g as isOk, B as BrepErrorCode } from "./errors-
|
|
7
|
-
import "./curveFns-
|
|
1
|
+
import { c as getWires, a as getFaces } from "./shapeFns-ClpALED4.js";
|
|
2
|
+
import "./booleanFns--Orezl-b.js";
|
|
3
|
+
import { g as getKernel } from "./occtBoundary-DvBywHyU.js";
|
|
4
|
+
import { c as castShape, h as isShape3D, k as isSolid, e as isFace, m as isWire } from "./shapeTypes-DnwCo942.js";
|
|
5
|
+
import { d as downcast } from "./faceFns-3PDjBeW7.js";
|
|
6
|
+
import { e as err, x as validationError, o as occtError, d as isErr, p as typeCastError, l as ok, u as unwrap, g as isOk, B as BrepErrorCode } from "./errors-DJ92ermb.js";
|
|
7
|
+
import "./curveFns-BhQECv8e.js";
|
|
8
8
|
import { H as HASH_CODE_MAX } from "./vecOps-ZDdZWbwT.js";
|
|
9
|
-
import "./meshFns-
|
|
9
|
+
import "./meshFns-DAmWVyEp.js";
|
|
10
10
|
function toBufferGeometryData(mesh) {
|
|
11
11
|
return {
|
|
12
12
|
position: mesh.vertices,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const shapeFns = require("./shapeFns-
|
|
3
|
-
require("./booleanFns-
|
|
4
|
-
const occtBoundary = require("./occtBoundary-
|
|
5
|
-
const shapeTypes = require("./shapeTypes-
|
|
6
|
-
const faceFns = require("./faceFns-
|
|
7
|
-
const errors = require("./errors-
|
|
8
|
-
require("./curveFns-
|
|
2
|
+
const shapeFns = require("./shapeFns-C785aeVn.cjs");
|
|
3
|
+
require("./booleanFns-CFit7JYt.cjs");
|
|
4
|
+
const occtBoundary = require("./occtBoundary-Cqfsau2c.cjs");
|
|
5
|
+
const shapeTypes = require("./shapeTypes-CIijJxCz.cjs");
|
|
6
|
+
const faceFns = require("./faceFns-CxaLWOjc.cjs");
|
|
7
|
+
const errors = require("./errors-NNmTtM5u.cjs");
|
|
8
|
+
require("./curveFns-6ovDM_sR.cjs");
|
|
9
9
|
const vecOps = require("./vecOps-CjRL1jau.cjs");
|
|
10
|
-
require("./meshFns-
|
|
10
|
+
require("./meshFns-CPNNlpbw.cjs");
|
|
11
11
|
function toBufferGeometryData(mesh) {
|
|
12
12
|
return {
|
|
13
13
|
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-
|
|
4
|
-
const booleanFns = require("./booleanFns-
|
|
5
|
-
const topology = require("./topology-
|
|
6
|
-
const curveFns = require("./curveFns-
|
|
7
|
-
const faceFns = require("./faceFns-
|
|
8
|
-
const meshFns = require("./meshFns-
|
|
3
|
+
const shapeFns = require("./shapeFns-C785aeVn.cjs");
|
|
4
|
+
const booleanFns = require("./booleanFns-CFit7JYt.cjs");
|
|
5
|
+
const topology = require("./topology-zG8maSDK.cjs");
|
|
6
|
+
const curveFns = require("./curveFns-6ovDM_sR.cjs");
|
|
7
|
+
const faceFns = require("./faceFns-CxaLWOjc.cjs");
|
|
8
|
+
const meshFns = require("./meshFns-CPNNlpbw.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 { u, d, a, e, f, c, x, i, y, z, A, B, v } from "./shapeFns-
|
|
2
|
-
import { h, g } from "./booleanFns-
|
|
3
|
-
import { a as a2, b, c as c2, e as e2, f as f2, d as d2, g as g2, j, s, t, k, l, v as v2, w } from "./topology-
|
|
4
|
-
import { j as j2, a as a3, e as e3, k as k2, i as i2, l as l2, h as h2, d as d3, c as c3, m, b as b2, g as g3, n, o } from "./curveFns-
|
|
5
|
-
import { l as l3, c as c4, m as m2, j as j3, d as d4, e as e4, f as f3, q, r, g as g4, k as k3, s as s2, i as i3, n as n2, o as o2, p, t as t2, v as v3, u as u2, h as h3 } from "./faceFns-
|
|
6
|
-
import { c as c5, b as b3, e as e5, d as d5, f as f4 } from "./meshFns-
|
|
1
|
+
import { u, d, a, e, f, c, x, i, y, z, A, B, v } from "./shapeFns-ClpALED4.js";
|
|
2
|
+
import { h, g } from "./booleanFns--Orezl-b.js";
|
|
3
|
+
import { a as a2, b, c as c2, e as e2, f as f2, d as d2, g as g2, j, s, t, k, l, v as v2, w } from "./topology-CqyxpmEh.js";
|
|
4
|
+
import { j as j2, a as a3, e as e3, k as k2, i as i2, l as l2, h as h2, d as d3, c as c3, m, b as b2, g as g3, n, o } from "./curveFns-BhQECv8e.js";
|
|
5
|
+
import { l as l3, c as c4, m as m2, j as j3, d as d4, e as e4, f as f3, q, r, g as g4, k as k3, s as s2, i as i3, n as n2, o as o2, p, t as t2, v as v3, u as u2, h as h3 } from "./faceFns-3PDjBeW7.js";
|
|
6
|
+
import { c as c5, b as b3, e as e5, d as d5, f as f4 } from "./meshFns-DAmWVyEp.js";
|
|
7
7
|
export {
|
|
8
8
|
a2 as adjacentFaces,
|
|
9
9
|
j2 as approximateCurve,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { e as makeOcAx3, a as toVec3 } from "./occtBoundary-
|
|
1
|
+
import { e as makeOcAx3, a as toVec3 } from "./occtBoundary-DvBywHyU.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-
|
|
3
|
+
import { e as err, x as validationError, l as ok } from "./errors-DJ92ermb.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-
|
|
2
|
+
const occtBoundary = require("./occtBoundary-Cqfsau2c.cjs");
|
|
3
3
|
const vecOps = require("./vecOps-CjRL1jau.cjs");
|
|
4
|
-
const errors = require("./errors-
|
|
4
|
+
const errors = require("./errors-NNmTtM5u.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-
|
|
3
|
+
const occtBoundary = require("./occtBoundary-Cqfsau2c.cjs");
|
|
4
4
|
const vecOps = require("./vecOps-CjRL1jau.cjs");
|
|
5
|
-
const vectors = require("./vectors-
|
|
5
|
+
const vectors = require("./vectors-CGLqemPY.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-
|
|
1
|
+
import { r, t, a } from "./occtBoundary-DvBywHyU.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-
|
|
3
|
+
import { c as c2, a as a3, p, r as r2, t as t2 } from "./vectors-2lOjaa8N.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.8.
|
|
3
|
+
"version": "8.8.2",
|
|
4
4
|
"description": "Web CAD library built on OpenCascade",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cad",
|
|
@@ -190,15 +190,15 @@
|
|
|
190
190
|
},
|
|
191
191
|
"devDependencies": {
|
|
192
192
|
"@commitlint/cli": "20.4.1",
|
|
193
|
-
"@commitlint/config-conventional": "20.4.
|
|
193
|
+
"@commitlint/config-conventional": "20.4.2",
|
|
194
194
|
"@eslint/js": "10.0.1",
|
|
195
195
|
"@size-limit/file": "12.0.0",
|
|
196
196
|
"@types/opentype.js": "1.3.9",
|
|
197
197
|
"@vitest/coverage-v8": "4.0.18",
|
|
198
198
|
"brepjs-opencascade": "*",
|
|
199
|
-
"eslint": "10.0.
|
|
199
|
+
"eslint": "10.0.1",
|
|
200
200
|
"husky": "9.1.7",
|
|
201
|
-
"knip": "5.
|
|
201
|
+
"knip": "5.85.0",
|
|
202
202
|
"lint-staged": "16.2.7",
|
|
203
203
|
"prettier": "3.8.1",
|
|
204
204
|
"size-limit": "12.0.0",
|