@thi.ng/color 5.5.28 → 5.5.30
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/CHANGELOG.md +1 -1
- package/README.md +1 -1
- package/api.js +2 -0
- package/defcolor.js +3 -0
- package/int/int.js +4 -0
- package/package.json +20 -21
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
package/api.js
CHANGED
package/defcolor.js
CHANGED
|
@@ -36,6 +36,9 @@ export const defColor = (spec) => {
|
|
|
36
36
|
minR[numChannels - 1] = 1;
|
|
37
37
|
const hueChanID = order.findIndex((id) => !!channels[id].hue);
|
|
38
38
|
const $Color = class {
|
|
39
|
+
offset;
|
|
40
|
+
stride;
|
|
41
|
+
buf;
|
|
39
42
|
constructor(buf, offset = 0, stride = 1) {
|
|
40
43
|
this.offset = offset;
|
|
41
44
|
this.stride = stride;
|
package/int/int.js
CHANGED
|
@@ -13,6 +13,10 @@ import { srgb } from "../srgb/srgb.js";
|
|
|
13
13
|
import { srgbIntAbgr32, srgbIntArgb32 } from "../srgb/srgb-int.js";
|
|
14
14
|
import { intArgb32Srgb } from "./int-srgb.js";
|
|
15
15
|
export class Int32 {
|
|
16
|
+
offset;
|
|
17
|
+
stride;
|
|
18
|
+
buf;
|
|
19
|
+
value;
|
|
16
20
|
constructor(buf, offset = 0, stride = 1) {
|
|
17
21
|
this.offset = offset;
|
|
18
22
|
this.stride = stride;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/color",
|
|
3
|
-
"version": "5.5.
|
|
3
|
+
"version": "5.5.30",
|
|
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",
|
|
@@ -28,36 +28,35 @@
|
|
|
28
28
|
"clean": "rimraf --glob '*.js' '*.d.ts' '*.map' doc api css hcy hsi hsl hsv int internal lab lch oklab oklch rgb srgb xyy xyz ycc",
|
|
29
29
|
"doc": "typedoc --excludePrivate --excludeInternal --out doc src/index.ts",
|
|
30
30
|
"doc:ae": "mkdir -p .ae/doc .ae/temp && api-extractor run --local --verbose",
|
|
31
|
-
"doc:readme": "
|
|
32
|
-
"doc:stats": "tools:module-stats",
|
|
31
|
+
"doc:readme": "bun ../../tools/src/module-stats.ts && bun ../../tools/src/readme.ts",
|
|
33
32
|
"pub": "yarn npm publish --access public",
|
|
34
|
-
"test": "
|
|
33
|
+
"test": "bun test",
|
|
35
34
|
"tool:limits": "tools:node-esm tools/limits.ts",
|
|
36
35
|
"tool:maxchroma": "tools:node-esm tools/max-chroma.ts",
|
|
37
36
|
"tool:strategies": "tools:node-esm tools/strategies.ts",
|
|
38
37
|
"tool:swatches": "tools:node-esm tools/index.ts"
|
|
39
38
|
},
|
|
40
39
|
"dependencies": {
|
|
41
|
-
"@thi.ng/api": "^8.9.
|
|
42
|
-
"@thi.ng/arrays": "^2.7.
|
|
43
|
-
"@thi.ng/binary": "^3.3.
|
|
44
|
-
"@thi.ng/checks": "^3.4.
|
|
45
|
-
"@thi.ng/compare": "^2.2.
|
|
46
|
-
"@thi.ng/compose": "^2.1.
|
|
47
|
-
"@thi.ng/defmulti": "^3.0.
|
|
48
|
-
"@thi.ng/errors": "^2.4.
|
|
49
|
-
"@thi.ng/math": "^5.7.
|
|
50
|
-
"@thi.ng/random": "^3.6.
|
|
51
|
-
"@thi.ng/strings": "^3.6.
|
|
52
|
-
"@thi.ng/transducers": "^8.8.
|
|
53
|
-
"@thi.ng/vectors": "^7.8.
|
|
40
|
+
"@thi.ng/api": "^8.9.7",
|
|
41
|
+
"@thi.ng/arrays": "^2.7.3",
|
|
42
|
+
"@thi.ng/binary": "^3.3.36",
|
|
43
|
+
"@thi.ng/checks": "^3.4.7",
|
|
44
|
+
"@thi.ng/compare": "^2.2.3",
|
|
45
|
+
"@thi.ng/compose": "^2.1.46",
|
|
46
|
+
"@thi.ng/defmulti": "^3.0.5",
|
|
47
|
+
"@thi.ng/errors": "^2.4.1",
|
|
48
|
+
"@thi.ng/math": "^5.7.2",
|
|
49
|
+
"@thi.ng/random": "^3.6.13",
|
|
50
|
+
"@thi.ng/strings": "^3.6.5",
|
|
51
|
+
"@thi.ng/transducers": "^8.8.9",
|
|
52
|
+
"@thi.ng/vectors": "^7.8.3"
|
|
54
53
|
},
|
|
55
54
|
"devDependencies": {
|
|
56
|
-
"@microsoft/api-extractor": "^7.38.
|
|
57
|
-
"@thi.ng/testament": "^0.
|
|
55
|
+
"@microsoft/api-extractor": "^7.38.2",
|
|
56
|
+
"@thi.ng/testament": "^0.4.0",
|
|
58
57
|
"rimraf": "^5.0.5",
|
|
59
58
|
"tools": "^0.0.1",
|
|
60
|
-
"typedoc": "^0.25.
|
|
59
|
+
"typedoc": "^0.25.3",
|
|
61
60
|
"typescript": "^5.2.2"
|
|
62
61
|
},
|
|
63
62
|
"keywords": [
|
|
@@ -445,5 +444,5 @@
|
|
|
445
444
|
"vectors"
|
|
446
445
|
]
|
|
447
446
|
},
|
|
448
|
-
"gitHead": "
|
|
447
|
+
"gitHead": "9f4d8ad79bca1d68214fbc9bbc5fb55f5a445f7e\n"
|
|
449
448
|
}
|