@thi.ng/color 5.6.35 → 5.6.37
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/package.json +18 -18
- package/sort.d.ts +2 -2
- package/transform.d.ts +1 -1
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/color",
|
|
3
|
-
"version": "5.6.
|
|
3
|
+
"version": "5.6.37",
|
|
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",
|
|
@@ -40,26 +40,26 @@
|
|
|
40
40
|
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@thi.ng/api": "^8.9.
|
|
44
|
-
"@thi.ng/arrays": "^2.8.
|
|
45
|
-
"@thi.ng/binary": "^3.4.
|
|
46
|
-
"@thi.ng/checks": "^3.5.
|
|
47
|
-
"@thi.ng/compare": "^2.2.
|
|
48
|
-
"@thi.ng/compose": "^2.1.
|
|
49
|
-
"@thi.ng/defmulti": "^3.0.
|
|
50
|
-
"@thi.ng/errors": "^2.5.
|
|
51
|
-
"@thi.ng/math": "^5.10.
|
|
52
|
-
"@thi.ng/random": "^3.7.
|
|
53
|
-
"@thi.ng/strings": "^3.7.
|
|
54
|
-
"@thi.ng/transducers": "^8.9.
|
|
55
|
-
"@thi.ng/vectors": "^7.10.
|
|
43
|
+
"@thi.ng/api": "^8.9.31",
|
|
44
|
+
"@thi.ng/arrays": "^2.8.12",
|
|
45
|
+
"@thi.ng/binary": "^3.4.20",
|
|
46
|
+
"@thi.ng/checks": "^3.5.5",
|
|
47
|
+
"@thi.ng/compare": "^2.2.27",
|
|
48
|
+
"@thi.ng/compose": "^2.1.71",
|
|
49
|
+
"@thi.ng/defmulti": "^3.0.34",
|
|
50
|
+
"@thi.ng/errors": "^2.5.2",
|
|
51
|
+
"@thi.ng/math": "^5.10.8",
|
|
52
|
+
"@thi.ng/random": "^3.7.1",
|
|
53
|
+
"@thi.ng/strings": "^3.7.28",
|
|
54
|
+
"@thi.ng/transducers": "^8.9.16",
|
|
55
|
+
"@thi.ng/vectors": "^7.10.23"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@microsoft/api-extractor": "^7.
|
|
59
|
-
"esbuild": "^0.20.
|
|
58
|
+
"@microsoft/api-extractor": "^7.43.0",
|
|
59
|
+
"esbuild": "^0.20.2",
|
|
60
60
|
"rimraf": "^5.0.5",
|
|
61
61
|
"typedoc": "^0.25.12",
|
|
62
|
-
"typescript": "^5.4.
|
|
62
|
+
"typescript": "^5.4.3"
|
|
63
63
|
},
|
|
64
64
|
"keywords": [
|
|
65
65
|
"color",
|
|
@@ -446,5 +446,5 @@
|
|
|
446
446
|
"vectors"
|
|
447
447
|
]
|
|
448
448
|
},
|
|
449
|
-
"gitHead": "
|
|
449
|
+
"gitHead": "feb3b24654f2c931cd3c3308c1c0c807ee14d0e4\n"
|
|
450
450
|
}
|
package/sort.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ export declare const proximity: (target: ReadonlyColor, dist?: ColorDistance) =>
|
|
|
21
21
|
* @param dist -
|
|
22
22
|
*/
|
|
23
23
|
export declare const proximityABGR32: (target: ReadonlyColor, dist?: ColorDistance) => (col: ReadonlyColor) => number;
|
|
24
|
-
export declare const sort: <T extends import("@thi.ng/vectors
|
|
24
|
+
export declare const sort: <T extends import("@thi.ng/vectors").ReadonlyVec>(colors: T[], key: Fn<ReadonlyColor, number>, isReverse?: boolean) => T[];
|
|
25
25
|
/**
|
|
26
26
|
* Similar to {@link sort}, but only for memory mapped colors (e.g. mapping a
|
|
27
27
|
* pixel buffer). Does NOT change the order of elements in given `colors` array,
|
|
@@ -65,5 +65,5 @@ export declare const sort: <T extends import("@thi.ng/vectors/api").ReadonlyVec>
|
|
|
65
65
|
* @param isReverse -
|
|
66
66
|
*/
|
|
67
67
|
export declare const sortMapped: <T extends TypedColor<any>>(colors: T[], key: Fn<ReadonlyColor, number>, isReverse?: boolean) => T[];
|
|
68
|
-
export declare const mostSimilar: <T extends import("@thi.ng/vectors
|
|
68
|
+
export declare const mostSimilar: <T extends import("@thi.ng/vectors").ReadonlyVec>(colors: T[], key: Fn<ReadonlyColor, number>) => T;
|
|
69
69
|
//# sourceMappingURL=sort.d.ts.map
|
package/transform.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ import type { ColorMatrix, ReadonlyColor } from "./api.js";
|
|
|
10
10
|
* @param src - source color
|
|
11
11
|
* @param clampOut - true, if result should be clamped to [0..1]
|
|
12
12
|
*/
|
|
13
|
-
export declare const transform: (out: import("@thi.ng/vectors").Vec | null, mat: ColorMatrix, src: import("@thi.ng/vectors
|
|
13
|
+
export declare const transform: (out: import("@thi.ng/vectors").Vec | null, mat: ColorMatrix, src: import("@thi.ng/vectors").ReadonlyVec, clampOut?: boolean) => import("@thi.ng/vectors").Vec;
|
|
14
14
|
/**
|
|
15
15
|
* Concatenates given color matrices by pairwise multiplying them in
|
|
16
16
|
* left-right order. Returns combined result matrix to be used with
|