@thi.ng/color-palettes 1.4.32 → 1.4.33
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/filter.d.ts +7 -7
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
package/filter.d.ts
CHANGED
|
@@ -38,15 +38,15 @@ export declare const defFilter: (pred: ColorPredicate, threshold?: number) => Th
|
|
|
38
38
|
export declare const compFilter: (...filters: ThemePredicate[]) => ThemePredicate;
|
|
39
39
|
/**
|
|
40
40
|
* Theme predicate which ensures colors are within the given normalized hue
|
|
41
|
-
* range ([0
|
|
41
|
+
* range (`[0,1]` interval). See {@link defFilter} for more details.
|
|
42
42
|
*
|
|
43
43
|
* @remarks
|
|
44
44
|
* Since LCH uses different hue values than the more familiar HSV/HSL color
|
|
45
45
|
* wheel, LCH colors too will be first converted to HSV to ensure uniform
|
|
46
46
|
* results.
|
|
47
47
|
*
|
|
48
|
-
* If `max < min`, the filter will consider hues in both the `[min
|
|
49
|
-
* [0
|
|
48
|
+
* If `max < min`, the filter will consider hues in both the `[min,1]` and
|
|
49
|
+
* `[0,max]` intervals (i.e. angular wraparound on color wheel).
|
|
50
50
|
*
|
|
51
51
|
* @param min
|
|
52
52
|
* @param max
|
|
@@ -55,7 +55,7 @@ export declare const compFilter: (...filters: ThemePredicate[]) => ThemePredicat
|
|
|
55
55
|
export declare const hue: (min: number, max: number, threshold?: number) => ThemePredicate;
|
|
56
56
|
/**
|
|
57
57
|
* Theme predicate which ensures colors are within the given normalized chroma
|
|
58
|
-
* range ([0
|
|
58
|
+
* range (`[0,1]` interval). See {@link defFilter} for more details.
|
|
59
59
|
*
|
|
60
60
|
* @remarks
|
|
61
61
|
* Internally converts colors to LCH (unless already the case).
|
|
@@ -67,7 +67,7 @@ export declare const hue: (min: number, max: number, threshold?: number) => Them
|
|
|
67
67
|
export declare const chroma: (min: number, max: number, threshold?: number) => ThemePredicate;
|
|
68
68
|
/**
|
|
69
69
|
* Theme predicate which ensures colors are within the given normalized
|
|
70
|
-
* luminance range ([0
|
|
70
|
+
* luminance range (`[0,1]` interval). See {@link defFilter} for more details.
|
|
71
71
|
*
|
|
72
72
|
* @param min
|
|
73
73
|
* @param max
|
|
@@ -82,7 +82,7 @@ export declare const luma: (min: number, max: number, threshold?: number) => The
|
|
|
82
82
|
* Internally converts colors to LCH (unless already the case).
|
|
83
83
|
*
|
|
84
84
|
* See {@link defFilter} &
|
|
85
|
-
* [`distLch
|
|
85
|
+
* [`distLch`](https://docs.thi.ng/umbrella/color/functions/distLch.html) for
|
|
86
86
|
* more details.
|
|
87
87
|
*
|
|
88
88
|
* @param min
|
|
@@ -98,7 +98,7 @@ export declare const proximityLCH: (color: ThemeColor, eps: number, threshold?:
|
|
|
98
98
|
* Internally converts colors to sRGB (unless already the case).
|
|
99
99
|
*
|
|
100
100
|
* See {@link defFilter} &
|
|
101
|
-
* [`distEucledian3
|
|
101
|
+
* [`distEucledian3`](https://docs.thi.ng/umbrella/color/functions/distEucledian3.html)
|
|
102
102
|
* for more details.
|
|
103
103
|
*
|
|
104
104
|
* @param min
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/color-palettes",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.33",
|
|
4
4
|
"description": "Collection of 200+ image based color themes & composable theme query filters",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -41,16 +41,16 @@
|
|
|
41
41
|
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@thi.ng/api": "^8.11.
|
|
45
|
-
"@thi.ng/base-n": "^2.7.
|
|
46
|
-
"@thi.ng/checks": "^3.6.
|
|
47
|
-
"@thi.ng/color": "^5.7.
|
|
48
|
-
"@thi.ng/errors": "^2.5.
|
|
49
|
-
"@thi.ng/hex": "^2.3.
|
|
44
|
+
"@thi.ng/api": "^8.11.20",
|
|
45
|
+
"@thi.ng/base-n": "^2.7.32",
|
|
46
|
+
"@thi.ng/checks": "^3.6.23",
|
|
47
|
+
"@thi.ng/color": "^5.7.24",
|
|
48
|
+
"@thi.ng/errors": "^2.5.26",
|
|
49
|
+
"@thi.ng/hex": "^2.3.64"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"esbuild": "^0.
|
|
53
|
-
"typedoc": "^0.27.
|
|
52
|
+
"esbuild": "^0.25.0",
|
|
53
|
+
"typedoc": "^0.27.7",
|
|
54
54
|
"typescript": "^5.7.3"
|
|
55
55
|
},
|
|
56
56
|
"keywords": [
|
|
@@ -92,5 +92,5 @@
|
|
|
92
92
|
"parent": "@thi.ng/color",
|
|
93
93
|
"year": 2021
|
|
94
94
|
},
|
|
95
|
-
"gitHead": "
|
|
95
|
+
"gitHead": "9a0b33253fef092aaf301decf6ecd54317874d4c\n"
|
|
96
96
|
}
|