@thi.ng/pixel-analysis 2.0.18 → 2.0.20

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.
Files changed (3) hide show
  1. package/README.md +1 -1
  2. package/hues.js +3 -3
  3. package/package.json +13 -13
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/hues.js CHANGED
@@ -11,14 +11,14 @@ import { mean } from "@thi.ng/transducers/mean";
11
11
  import { circularMean } from "@thi.ng/vectors/circular";
12
12
  function* selectHueRange(colors, minHue, maxHue, minSat) {
13
13
  const pred = __hueSelector(minHue, maxHue);
14
- for (let col of colors) {
14
+ for (const col of colors) {
15
15
  if (col[1] >= minSat && pred(col[0])) yield col;
16
16
  }
17
17
  }
18
18
  function* selectHueRangeIDs(colors, minHue, maxHue, minSat) {
19
19
  const pred = __hueSelector(minHue, maxHue);
20
20
  let id = 0;
21
- for (let col of colors) {
21
+ for (const col of colors) {
22
22
  if (col[1] >= minSat && pred(col[0])) yield id;
23
23
  id++;
24
24
  }
@@ -26,7 +26,7 @@ function* selectHueRangeIDs(colors, minHue, maxHue, minSat) {
26
26
  const countHueRange = (colors, minHue, maxHue, minSat) => {
27
27
  const pred = __hueSelector(minHue, maxHue);
28
28
  let count = 0;
29
- for (let col of colors) {
29
+ for (const col of colors) {
30
30
  if (col[1] >= minSat && pred(col[0])) count++;
31
31
  }
32
32
  return count;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/pixel-analysis",
3
- "version": "2.0.18",
3
+ "version": "2.0.20",
4
4
  "description": "Image color & feature analysis utilities",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -39,17 +39,17 @@
39
39
  "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
40
40
  },
41
41
  "dependencies": {
42
- "@thi.ng/api": "^8.12.8",
43
- "@thi.ng/arrays": "^2.14.1",
44
- "@thi.ng/color": "^5.8.3",
45
- "@thi.ng/compare": "^2.4.34",
46
- "@thi.ng/math": "^5.13.5",
47
- "@thi.ng/metrics": "^0.2.12",
48
- "@thi.ng/pixel": "^7.5.17",
49
- "@thi.ng/pixel-convolve": "^1.1.17",
50
- "@thi.ng/pixel-dominant-colors": "^2.0.22",
51
- "@thi.ng/transducers": "^9.6.17",
52
- "@thi.ng/vectors": "^8.6.13"
42
+ "@thi.ng/api": "^8.12.10",
43
+ "@thi.ng/arrays": "^2.14.3",
44
+ "@thi.ng/color": "^5.8.5",
45
+ "@thi.ng/compare": "^2.4.36",
46
+ "@thi.ng/math": "^5.14.0",
47
+ "@thi.ng/metrics": "^0.2.14",
48
+ "@thi.ng/pixel": "^7.5.19",
49
+ "@thi.ng/pixel-convolve": "^1.1.19",
50
+ "@thi.ng/pixel-dominant-colors": "^2.0.24",
51
+ "@thi.ng/transducers": "^9.6.19",
52
+ "@thi.ng/vectors": "^8.6.15"
53
53
  },
54
54
  "devDependencies": {
55
55
  "esbuild": "^0.27.0",
@@ -113,5 +113,5 @@
113
113
  "status": "beta",
114
114
  "year": 2024
115
115
  },
116
- "gitHead": "be6e7657b1e5c54d7d648d1b52888a7297e95a17\n"
116
+ "gitHead": "824bf9047b5a10f777c5c5b4aeecf0c750a22c75\n"
117
117
  }