@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 CHANGED
@@ -7,7 +7,7 @@
7
7
  [![Mastodon Follow](https://img.shields.io/mastodon/follow/109331703950160316?domain=https%3A%2F%2Fmastodon.thi.ng&style=social)](https://mastodon.thi.ng/@toxi)
8
8
 
9
9
  > [!NOTE]
10
- > This is one of 210 standalone projects, maintained as part
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 (let hole of holes) {
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.76",
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.8",
44
- "@thi.ng/checks": "^3.7.24",
45
- "@thi.ng/geom-accel": "^4.1.69",
46
- "@thi.ng/geom-isec": "^4.0.69",
47
- "@thi.ng/geom-poly-utils": "^3.1.6",
48
- "@thi.ng/math": "^5.13.5",
49
- "@thi.ng/morton": "^3.1.130",
50
- "@thi.ng/transducers": "^9.6.17",
51
- "@thi.ng/vectors": "^8.6.13"
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": "be6e7657b1e5c54d7d648d1b52888a7297e95a17\n"
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 (let fn of tessellators) {
16
+ for (const fn of tessellators) {
17
17
  let newFaces = [];
18
- for (let face of faces) {
18
+ for (const face of faces) {
19
19
  fn(tessel, newFaces, face);
20
20
  }
21
21
  faces = newFaces;