@thi.ng/color 5.6.41 → 5.6.43
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 +7 -1
- package/README.md +2 -2
- package/analog.d.ts +3 -3
- package/is-black.d.ts +2 -1
- package/is-gray.d.ts +2 -1
- package/is-white.d.ts +2 -1
- package/package.json +16 -17
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
- **Last updated**: 2024-04-
|
|
3
|
+
- **Last updated**: 2024-04-23T07:02:17Z
|
|
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.
|
|
@@ -9,6 +9,12 @@ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelin
|
|
|
9
9
|
**Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
|
|
10
10
|
and/or version bumps of transitive dependencies.
|
|
11
11
|
|
|
12
|
+
### [5.6.42](https://github.com/thi-ng/umbrella/tree/@thi.ng/color@5.6.42) (2024-04-20)
|
|
13
|
+
|
|
14
|
+
#### ♻️ Refactoring
|
|
15
|
+
|
|
16
|
+
- update type usage ([39494f2](https://github.com/thi-ng/umbrella/commit/39494f2))
|
|
17
|
+
|
|
12
18
|
### [5.6.40](https://github.com/thi-ng/umbrella/tree/@thi.ng/color@5.6.40) (2024-04-08)
|
|
13
19
|
|
|
14
20
|
#### ♻️ Refactoring
|
package/README.md
CHANGED
|
@@ -665,10 +665,10 @@ import * as color from "@thi.ng/color";
|
|
|
665
665
|
Browser ESM import:
|
|
666
666
|
|
|
667
667
|
```html
|
|
668
|
-
<script type="module" src="https://
|
|
668
|
+
<script type="module" src="https://esm.run/@thi.ng/color"></script>
|
|
669
669
|
```
|
|
670
670
|
|
|
671
|
-
[
|
|
671
|
+
[JSDelivr documentation](https://www.jsdelivr.com/)
|
|
672
672
|
|
|
673
673
|
For Node.js REPL:
|
|
674
674
|
|
package/analog.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { Fn3, Fn4, FnU3 } from "@thi.ng/api";
|
|
1
|
+
import type { Fn3, Fn4, FnU3, Maybe } from "@thi.ng/api";
|
|
2
2
|
import type { IRandom } from "@thi.ng/random";
|
|
3
3
|
import type { Color, ReadonlyColor, TypedColor } from "./api.js";
|
|
4
|
-
export declare const defAnalog: FnU3<Fn3<number, number, IRandom, number>, Fn4<Color | null, TypedColor<any>, number, IRandom
|
|
4
|
+
export declare const defAnalog: FnU3<Fn3<number, number, IRandom, number>, Fn4<Color | null, TypedColor<any>, number, Maybe<IRandom>, Color>>;
|
|
5
5
|
/**
|
|
6
6
|
* Returns a random analog color based on given `src` color and variance
|
|
7
7
|
* `delta`. Each channel will be randomized by +/- `delta`, optionally using
|
|
@@ -13,7 +13,7 @@ export declare const defAnalog: FnU3<Fn3<number, number, IRandom, number>, Fn4<C
|
|
|
13
13
|
* If `out` is null, the resulting color will be written back into `src`.
|
|
14
14
|
*
|
|
15
15
|
*/
|
|
16
|
-
export declare const analog: import("@thi.ng/defmulti").MultiFn4<import("@thi.ng/vectors").Vec | null, TypedColor<any>, number, IRandom
|
|
16
|
+
export declare const analog: import("@thi.ng/defmulti").MultiFn4<import("@thi.ng/vectors").Vec | null, TypedColor<any>, number, Maybe<IRandom>, import("@thi.ng/vectors").Vec>;
|
|
17
17
|
/**
|
|
18
18
|
* Similar to {@link analogRgb}. Returns an analog color based on given HSVA
|
|
19
19
|
* color, with each channel randomly varied by given channel-specific delta
|
package/is-black.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { Maybe } from "@thi.ng/api";
|
|
1
2
|
import type { TypedColor } from "./api.js";
|
|
2
|
-
export declare const isBlack: import("@thi.ng/defmulti").MultiFn2<TypedColor<any>, number
|
|
3
|
+
export declare const isBlack: import("@thi.ng/defmulti").MultiFn2<TypedColor<any>, Maybe<number>, boolean>;
|
|
3
4
|
//# sourceMappingURL=is-black.d.ts.map
|
package/is-gray.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { Maybe } from "@thi.ng/api";
|
|
1
2
|
import type { TypedColor } from "./api.js";
|
|
2
|
-
export declare const isGray: import("@thi.ng/defmulti").MultiFn2<TypedColor<any>, number
|
|
3
|
+
export declare const isGray: import("@thi.ng/defmulti").MultiFn2<TypedColor<any>, Maybe<number>, boolean>;
|
|
3
4
|
//# sourceMappingURL=is-gray.d.ts.map
|
package/is-white.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { Maybe } from "@thi.ng/api";
|
|
1
2
|
import type { TypedColor } from "./api.js";
|
|
2
|
-
export declare const isWhite: import("@thi.ng/defmulti").MultiFn2<TypedColor<any>, number
|
|
3
|
+
export declare const isWhite: import("@thi.ng/defmulti").MultiFn2<TypedColor<any>, Maybe<number>, boolean>;
|
|
3
4
|
//# sourceMappingURL=is-white.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/color",
|
|
3
|
-
"version": "5.6.
|
|
3
|
+
"version": "5.6.43",
|
|
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",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"build": "yarn build:esbuild && yarn build:decl",
|
|
28
28
|
"build:decl": "tsc --declaration --emitDeclarationOnly",
|
|
29
29
|
"build:esbuild": "esbuild --format=esm --platform=neutral --target=es2022 --tsconfig=tsconfig.json --outdir=. src/**/*.ts",
|
|
30
|
-
"clean": "
|
|
30
|
+
"clean": "bun ../../tools/src/clean-package.ts css hcy hsi hsl hsv int lab lch oklab oklch rgb srgb xyy xyz ycc",
|
|
31
31
|
"doc": "typedoc --excludePrivate --excludeInternal --out doc src/index.ts",
|
|
32
32
|
"doc:ae": "mkdir -p .ae/doc .ae/temp && api-extractor run --local --verbose",
|
|
33
33
|
"doc:readme": "bun ../../tools/src/module-stats.ts && bun ../../tools/src/readme.ts",
|
|
@@ -40,24 +40,23 @@
|
|
|
40
40
|
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@thi.ng/api": "^8.
|
|
44
|
-
"@thi.ng/arrays": "^2.9.
|
|
45
|
-
"@thi.ng/binary": "^3.4.
|
|
46
|
-
"@thi.ng/checks": "^3.6.
|
|
47
|
-
"@thi.ng/compare": "^2.3.
|
|
48
|
-
"@thi.ng/compose": "^3.0.
|
|
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": "^9.0.
|
|
55
|
-
"@thi.ng/vectors": "^7.10.
|
|
43
|
+
"@thi.ng/api": "^8.11.1",
|
|
44
|
+
"@thi.ng/arrays": "^2.9.5",
|
|
45
|
+
"@thi.ng/binary": "^3.4.24",
|
|
46
|
+
"@thi.ng/checks": "^3.6.3",
|
|
47
|
+
"@thi.ng/compare": "^2.3.4",
|
|
48
|
+
"@thi.ng/compose": "^3.0.3",
|
|
49
|
+
"@thi.ng/defmulti": "^3.0.38",
|
|
50
|
+
"@thi.ng/errors": "^2.5.6",
|
|
51
|
+
"@thi.ng/math": "^5.10.12",
|
|
52
|
+
"@thi.ng/random": "^3.7.5",
|
|
53
|
+
"@thi.ng/strings": "^3.7.32",
|
|
54
|
+
"@thi.ng/transducers": "^9.0.3",
|
|
55
|
+
"@thi.ng/vectors": "^7.10.29"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@microsoft/api-extractor": "^7.43.0",
|
|
59
59
|
"esbuild": "^0.20.2",
|
|
60
|
-
"rimraf": "^5.0.5",
|
|
61
60
|
"typedoc": "^0.25.12",
|
|
62
61
|
"typescript": "^5.4.3"
|
|
63
62
|
},
|
|
@@ -446,5 +445,5 @@
|
|
|
446
445
|
"vectors"
|
|
447
446
|
]
|
|
448
447
|
},
|
|
449
|
-
"gitHead": "
|
|
448
|
+
"gitHead": "5dd66c18a3862a3af69a5b2f49563f7cbdd960c2\n"
|
|
450
449
|
}
|