partforge 0.109.0 → 0.109.1
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "partforge",
|
|
3
|
-
"version": "0.109.
|
|
3
|
+
"version": "0.109.1",
|
|
4
4
|
"description": "Turn a declarative part definition into a parametric-CAD web app (three.js + Manifold/Replicad). Requires a Vite-based consumer.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -96,6 +96,8 @@
|
|
|
96
96
|
"test": "vitest run",
|
|
97
97
|
"test:watch": "vitest",
|
|
98
98
|
"typecheck": "tsc -p tsconfig.json",
|
|
99
|
+
"lint": "eslint .",
|
|
100
|
+
"lint:dead": "knip",
|
|
99
101
|
"check": "node scripts/check-app.mjs",
|
|
100
102
|
"offset-rates": "node scripts/offset-rates.mjs"
|
|
101
103
|
},
|
|
@@ -120,9 +122,13 @@
|
|
|
120
122
|
"three": "^0.184.0"
|
|
121
123
|
},
|
|
122
124
|
"devDependencies": {
|
|
125
|
+
"@eslint/js": "^10.0.1",
|
|
123
126
|
"@fontsource-variable/geist": "^5.3.0",
|
|
124
127
|
"@fontsource-variable/geist-mono": "^5.3.0",
|
|
128
|
+
"eslint": "^10.10.0",
|
|
129
|
+
"globals": "^17.12.0",
|
|
125
130
|
"happy-dom": "^20.10.6",
|
|
131
|
+
"knip": "^6.35.1",
|
|
126
132
|
"playwright": "^1.49.0",
|
|
127
133
|
"typescript": "^5.9.3",
|
|
128
134
|
"vite": "^8.0.16",
|
|
@@ -13,8 +13,6 @@
|
|
|
13
13
|
// Main-thread only, and deliberately import-free beyond what a lookup needs: it
|
|
14
14
|
// runs during panel construction, on every rebuild.
|
|
15
15
|
|
|
16
|
-
const arr = (v) => (Array.isArray(v) ? v : []);
|
|
17
|
-
|
|
18
16
|
// `images`/`vectors`/`fonts` may each be a plain map or a function of params —
|
|
19
17
|
// the function form is what a control drives. Resolving it can throw (it is
|
|
20
18
|
// author code running on every panel build), and a broken declaration must not
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
import { createProbeKernel } from "./geometry/probe.js";
|
|
6
6
|
import { byteAwareReplacer } from "./geometry/solid-hash.js";
|
|
7
7
|
import { viewSubParts } from "./part-model.js";
|
|
8
|
-
import { resolveDerived } from "./derive.js";
|
|
9
8
|
|
|
10
9
|
export const RELEVANT_ALL = Symbol("relevant-all");
|
|
11
10
|
|
|
@@ -22,10 +22,7 @@ import {
|
|
|
22
22
|
isLoopbackOrigin, isLoopbackHost,
|
|
23
23
|
} from "./endpoint.js";
|
|
24
24
|
|
|
25
|
-
export {
|
|
26
|
-
PICK_SERVER_DEFAULT_PORT, PICK_SERVER_DEFAULT_TIMEOUT_MS, PICK_SERVER_DEFAULT_HOST,
|
|
27
|
-
PICK_SERVER_DEFAULT_URL,
|
|
28
|
-
} from "./endpoint.js";
|
|
25
|
+
export { PICK_SERVER_DEFAULT_PORT, PICK_SERVER_DEFAULT_TIMEOUT_MS } from "./endpoint.js";
|
|
29
26
|
|
|
30
27
|
const MAX_BODY_BYTES = 256 * 1024; // no route needs more; anything bigger is abuse
|
|
31
28
|
const MAX_SELECTION_CHARS = 16 * 1024;
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
// running twist plus an alternating half-facet offset, so the facets zig-zag into a
|
|
4
4
|
// woven look. A second, wall-inset loft is cut from the body to hollow it (Manifold
|
|
5
5
|
// backend, so it stays fast — no OCCT). See docs/AUTHORING-PARTS.md for the conventions.
|
|
6
|
-
import { regularPolygon } from "partforge/geometry";
|
|
7
6
|
|
|
8
7
|
const RINGS = 28; // silhouette resolution (ring count up the height)
|
|
9
8
|
|