@thi.ng/color 5.8.4 → 5.8.5

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/convert.js CHANGED
@@ -3,7 +3,7 @@ import { assert } from "@thi.ng/errors/assert";
3
3
  import { unsupported } from "@thi.ng/errors/unsupported";
4
4
  const CONVERSIONS = {};
5
5
  const defConversions = (mode, spec) => {
6
- for (let id in spec) {
6
+ for (const id in spec) {
7
7
  const val = spec[id];
8
8
  if (isArray(val)) {
9
9
  const [a, b, c, d] = val;
@@ -159,7 +159,7 @@ const cosineGradient = (n, spec, tx) => transduce(
159
159
  normRange(n - 1)
160
160
  );
161
161
  const cosineGradientBuffer = (n, spec, buffer = [], offset = 0, cstride = 1, estride = 4) => {
162
- for (let t of normRange(n - 1)) {
162
+ for (const t of normRange(n - 1)) {
163
163
  setS4(buffer, cosineColor(spec, t), offset, 0, cstride);
164
164
  offset += estride;
165
165
  }
package/gradients.js CHANGED
@@ -10,7 +10,7 @@ function multiColorGradient(opts, isABGR) {
10
10
  return isABGR ? rgba.map(intArgb32Abgr32) : rgba;
11
11
  }
12
12
  const multiColorGradientBuffer = (opts, buffer = [], offset = 0, cstride = 1, estride = 4) => {
13
- for (let col of __gradient(opts)) {
13
+ for (const col of __gradient(opts)) {
14
14
  setS4(buffer, col, offset, 0, cstride);
15
15
  offset += estride;
16
16
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/color",
3
- "version": "5.8.4",
3
+ "version": "5.8.5",
4
4
  "description": "Array-based color types, CSS parsing, conversions, transformations, declarative theme generation, gradients, presets",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -43,19 +43,19 @@
43
43
  "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
44
44
  },
45
45
  "dependencies": {
46
- "@thi.ng/api": "^8.12.9",
47
- "@thi.ng/arrays": "^2.14.2",
48
- "@thi.ng/binary": "^3.4.67",
49
- "@thi.ng/checks": "^3.7.25",
50
- "@thi.ng/compare": "^2.4.35",
51
- "@thi.ng/compose": "^3.0.46",
52
- "@thi.ng/defmulti": "^3.0.85",
53
- "@thi.ng/errors": "^2.5.49",
54
- "@thi.ng/math": "^5.13.6",
55
- "@thi.ng/random": "^4.1.34",
56
- "@thi.ng/strings": "^3.9.30",
57
- "@thi.ng/transducers": "^9.6.18",
58
- "@thi.ng/vectors": "^8.6.14"
46
+ "@thi.ng/api": "^8.12.10",
47
+ "@thi.ng/arrays": "^2.14.3",
48
+ "@thi.ng/binary": "^3.4.68",
49
+ "@thi.ng/checks": "^3.8.0",
50
+ "@thi.ng/compare": "^2.4.36",
51
+ "@thi.ng/compose": "^3.0.47",
52
+ "@thi.ng/defmulti": "^3.0.86",
53
+ "@thi.ng/errors": "^2.5.50",
54
+ "@thi.ng/math": "^5.14.0",
55
+ "@thi.ng/random": "^4.1.35",
56
+ "@thi.ng/strings": "^3.9.31",
57
+ "@thi.ng/transducers": "^9.6.19",
58
+ "@thi.ng/vectors": "^8.6.15"
59
59
  },
60
60
  "devDependencies": {
61
61
  "esbuild": "^0.27.0",
@@ -446,5 +446,5 @@
446
446
  "vectors"
447
447
  ]
448
448
  },
449
- "gitHead": "fdca77cabf47dd23a9ab17a5ca13e3060075c12c\n"
449
+ "gitHead": "824bf9047b5a10f777c5c5b4aeecf0c750a22c75\n"
450
450
  }