@thi.ng/geom-subdiv-curve 3.0.77 → 3.0.78
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/README.md +2 -2
- package/package.json +4 -4
- package/subdivide.js +1 -1
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
[](https://mastodon.thi.ng/@toxi)
|
|
8
8
|
|
|
9
9
|
> [!NOTE]
|
|
10
|
-
> This is one of
|
|
10
|
+
> This is one of 211 standalone projects, maintained as part
|
|
11
11
|
> of the [@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo
|
|
12
12
|
> and anti-framework.
|
|
13
13
|
>
|
|
@@ -126,7 +126,7 @@ For Node.js REPL:
|
|
|
126
126
|
const gsc = await import("@thi.ng/geom-subdiv-curve");
|
|
127
127
|
```
|
|
128
128
|
|
|
129
|
-
Package sizes (brotli'd, pre-treeshake): ESM:
|
|
129
|
+
Package sizes (brotli'd, pre-treeshake): ESM: 802 bytes
|
|
130
130
|
|
|
131
131
|
## Dependencies
|
|
132
132
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/geom-subdiv-curve",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.78",
|
|
4
4
|
"description": "Freely customizable, iterative nD subdivision curves for open / closed geometries",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"tool:viz": "bun tools/visualize.ts"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@thi.ng/transducers": "^9.6.
|
|
44
|
-
"@thi.ng/vectors": "^8.6.
|
|
43
|
+
"@thi.ng/transducers": "^9.6.19",
|
|
44
|
+
"@thi.ng/vectors": "^8.6.15"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"esbuild": "^0.27.0",
|
|
@@ -93,5 +93,5 @@
|
|
|
93
93
|
],
|
|
94
94
|
"tag": "subdivision"
|
|
95
95
|
},
|
|
96
|
-
"gitHead": "
|
|
96
|
+
"gitHead": "824bf9047b5a10f777c5c5b4aeecf0c750a22c75\n"
|
|
97
97
|
}
|
package/subdivide.js
CHANGED
|
@@ -4,7 +4,7 @@ import { partition } from "@thi.ng/transducers/partition";
|
|
|
4
4
|
import { push } from "@thi.ng/transducers/push";
|
|
5
5
|
import { transduce } from "@thi.ng/transducers/transduce";
|
|
6
6
|
function subdivide(points, kernels, closed = false) {
|
|
7
|
-
for (
|
|
7
|
+
for (const { fn, pre, size } of kernels) {
|
|
8
8
|
const nump = points.length;
|
|
9
9
|
points = transduce(
|
|
10
10
|
comp(
|