@thi.ng/color 5.6.36 → 5.6.38

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2024-03-13T14:04:31Z
3
+ - **Last updated**: 2024-03-27T09:53:45Z
4
4
  - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
5
 
6
6
  All notable changes to this project will be documented in this file.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/color",
3
- "version": "5.6.36",
3
+ "version": "5.6.38",
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.30",
44
- "@thi.ng/arrays": "^2.8.11",
45
- "@thi.ng/binary": "^3.4.19",
46
- "@thi.ng/checks": "^3.5.4",
47
- "@thi.ng/compare": "^2.2.26",
48
- "@thi.ng/compose": "^2.1.70",
49
- "@thi.ng/defmulti": "^3.0.33",
50
- "@thi.ng/errors": "^2.5.1",
51
- "@thi.ng/math": "^5.10.7",
52
- "@thi.ng/random": "^3.7.0",
53
- "@thi.ng/strings": "^3.7.27",
54
- "@thi.ng/transducers": "^8.9.15",
55
- "@thi.ng/vectors": "^7.10.22"
43
+ "@thi.ng/api": "^8.9.31",
44
+ "@thi.ng/arrays": "^2.9.0",
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.17",
55
+ "@thi.ng/vectors": "^7.10.24"
56
56
  },
57
57
  "devDependencies": {
58
- "@microsoft/api-extractor": "^7.42.3",
59
- "esbuild": "^0.20.1",
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.2"
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": "16686bb40f7bd7a14a5d1304e353a82cb0069a1a\n"
449
+ "gitHead": "db5f5a5d1b223a8e6b4999d67836678038fd3560\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/api").ReadonlyVec>(colors: T[], key: Fn<ReadonlyColor, number>, isReverse?: boolean) => T[];
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/api").ReadonlyVec>(colors: T[], key: Fn<ReadonlyColor, number>) => T;
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/api").ReadonlyVec, clampOut?: boolean) => import("@thi.ng/vectors").Vec;
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