@thi.ng/geom-tessellate 3.0.76 → 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 +1 -1
- package/earcut-complex.js +1 -1
- package/package.json +11 -11
- package/tessellate.js +2 -2
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
|
>
|
package/earcut-complex.js
CHANGED
|
@@ -30,7 +30,7 @@ const earCutComplex = (holeIDs = [], hashThreshold = 80) => (tess, faces, pids)
|
|
|
30
30
|
const earCutComplexPrepare = (boundary, holes) => {
|
|
31
31
|
let points = boundary;
|
|
32
32
|
const holeIDs = [];
|
|
33
|
-
for (
|
|
33
|
+
for (const hole of holes) {
|
|
34
34
|
holeIDs.push(points.length);
|
|
35
35
|
points = points.concat(hole);
|
|
36
36
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/geom-tessellate",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.78",
|
|
4
4
|
"description": "2D/3D convex polygon tessellators",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -40,15 +40,15 @@
|
|
|
40
40
|
"tool:viz": "bun tools/visualize.ts"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@thi.ng/api": "^8.12.
|
|
44
|
-
"@thi.ng/checks": "^3.
|
|
45
|
-
"@thi.ng/geom-accel": "^4.1.
|
|
46
|
-
"@thi.ng/geom-isec": "^4.0.
|
|
47
|
-
"@thi.ng/geom-poly-utils": "^3.1.
|
|
48
|
-
"@thi.ng/math": "^5.
|
|
49
|
-
"@thi.ng/morton": "^3.1.
|
|
50
|
-
"@thi.ng/transducers": "^9.6.
|
|
51
|
-
"@thi.ng/vectors": "^8.6.
|
|
43
|
+
"@thi.ng/api": "^8.12.10",
|
|
44
|
+
"@thi.ng/checks": "^3.8.0",
|
|
45
|
+
"@thi.ng/geom-accel": "^4.1.71",
|
|
46
|
+
"@thi.ng/geom-isec": "^4.0.71",
|
|
47
|
+
"@thi.ng/geom-poly-utils": "^3.1.8",
|
|
48
|
+
"@thi.ng/math": "^5.14.0",
|
|
49
|
+
"@thi.ng/morton": "^3.1.132",
|
|
50
|
+
"@thi.ng/transducers": "^9.6.19",
|
|
51
|
+
"@thi.ng/vectors": "^8.6.15"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"esbuild": "^0.27.0",
|
|
@@ -123,5 +123,5 @@
|
|
|
123
123
|
"tag": "tessellation",
|
|
124
124
|
"year": 2013
|
|
125
125
|
},
|
|
126
|
-
"gitHead": "
|
|
126
|
+
"gitHead": "824bf9047b5a10f777c5c5b4aeecf0c750a22c75\n"
|
|
127
127
|
}
|
package/tessellate.js
CHANGED
|
@@ -13,9 +13,9 @@ function tessellateWith(tessel, points, ...args) {
|
|
|
13
13
|
return tessellateFaces(tessel, [tessel.addPoints(points)], fns);
|
|
14
14
|
}
|
|
15
15
|
const tessellateFaces = (tessel, faces, tessellators) => {
|
|
16
|
-
for (
|
|
16
|
+
for (const fn of tessellators) {
|
|
17
17
|
let newFaces = [];
|
|
18
|
-
for (
|
|
18
|
+
for (const face of faces) {
|
|
19
19
|
fn(tessel, newFaces, face);
|
|
20
20
|
}
|
|
21
21
|
faces = newFaces;
|