@thi.ng/color 5.8.3 → 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 +1 -1
- package/convert.js +1 -1
- package/cosine-gradients.js +1 -1
- package/gradients.js +1 -1
- package/package.json +15 -15
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/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 (
|
|
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;
|
package/cosine-gradients.js
CHANGED
|
@@ -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 (
|
|
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 (
|
|
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.
|
|
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.
|
|
47
|
-
"@thi.ng/arrays": "^2.14.
|
|
48
|
-
"@thi.ng/binary": "^3.4.
|
|
49
|
-
"@thi.ng/checks": "^3.
|
|
50
|
-
"@thi.ng/compare": "^2.4.
|
|
51
|
-
"@thi.ng/compose": "^3.0.
|
|
52
|
-
"@thi.ng/defmulti": "^3.0.
|
|
53
|
-
"@thi.ng/errors": "^2.5.
|
|
54
|
-
"@thi.ng/math": "^5.
|
|
55
|
-
"@thi.ng/random": "^4.1.
|
|
56
|
-
"@thi.ng/strings": "^3.9.
|
|
57
|
-
"@thi.ng/transducers": "^9.6.
|
|
58
|
-
"@thi.ng/vectors": "^8.6.
|
|
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": "
|
|
449
|
+
"gitHead": "824bf9047b5a10f777c5c5b4aeecf0c750a22c75\n"
|
|
450
450
|
}
|