@thi.ng/color 5.7.62 → 5.7.66

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.
Files changed (2) hide show
  1. package/package.json +449 -449
  2. package/CHANGELOG.md +0 -194
package/package.json CHANGED
@@ -1,450 +1,450 @@
1
1
  {
2
- "name": "@thi.ng/color",
3
- "version": "5.7.62",
4
- "description": "Array-based color types, CSS parsing, conversions, transformations, declarative theme generation, gradients, presets",
5
- "type": "module",
6
- "module": "./index.js",
7
- "typings": "./index.d.ts",
8
- "sideEffects": false,
9
- "repository": {
10
- "type": "git",
11
- "url": "https://github.com/thi-ng/umbrella.git"
12
- },
13
- "homepage": "https://thi.ng/color",
14
- "funding": [
15
- {
16
- "type": "github",
17
- "url": "https://github.com/sponsors/postspectacular"
18
- },
19
- {
20
- "type": "patreon",
21
- "url": "https://patreon.com/thing_umbrella"
22
- },
23
- {
24
- "type": "liberapay",
25
- "url": "https://liberapay.com/thi.ng"
26
- }
27
- ],
28
- "author": "Karsten Schmidt (https://thi.ng)",
29
- "license": "Apache-2.0",
30
- "scripts": {
31
- "build": "yarn build:esbuild && yarn build:decl",
32
- "build:decl": "tsc --declaration --emitDeclarationOnly",
33
- "build:esbuild": "esbuild --format=esm --platform=neutral --target=es2022 --tsconfig=tsconfig.json --outdir=. src/**/*.ts",
34
- "clean": "bun ../../tools/src/clean-package.ts css hcy hsi hsl hsv int lab lch oklab oklch rgb srgb xyy xyz ycc",
35
- "doc": "typedoc --options ../../typedoc.json --out doc src/index.ts",
36
- "doc:readme": "bun ../../tools/src/module-stats.ts && bun ../../tools/src/readme.ts",
37
- "pub": "yarn npm publish --access public",
38
- "test": "bun test",
39
- "tool:limits": "bun tools/limits.ts",
40
- "tool:maxchroma": "bun tools/max-chroma.ts",
41
- "tool:strategies": "bun tools/strategies.ts",
42
- "tool:swatches": "bun tools/index.ts",
43
- "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
44
- },
45
- "dependencies": {
46
- "@thi.ng/api": "^8.12.2",
47
- "@thi.ng/arrays": "^2.13.11",
48
- "@thi.ng/binary": "^3.4.60",
49
- "@thi.ng/checks": "^3.7.18",
50
- "@thi.ng/compare": "^2.4.28",
51
- "@thi.ng/compose": "^3.0.39",
52
- "@thi.ng/defmulti": "^3.0.78",
53
- "@thi.ng/errors": "^2.5.42",
54
- "@thi.ng/math": "^5.12.0",
55
- "@thi.ng/random": "^4.1.27",
56
- "@thi.ng/strings": "^3.9.22",
57
- "@thi.ng/transducers": "^9.6.10",
58
- "@thi.ng/vectors": "^8.6.6"
59
- },
60
- "devDependencies": {
61
- "esbuild": "^0.25.9",
62
- "typedoc": "^0.28.12",
63
- "typescript": "^5.9.2"
64
- },
65
- "keywords": [
66
- "color",
67
- "conversion",
68
- "cosine",
69
- "css",
70
- "distance",
71
- "filter",
72
- "gamma",
73
- "generator",
74
- "gradient",
75
- "hcy",
76
- "hsi",
77
- "hsl",
78
- "hsv",
79
- "interpolation",
80
- "iterator",
81
- "lab",
82
- "lch",
83
- "matrix",
84
- "oklab",
85
- "palette",
86
- "random",
87
- "rgb",
88
- "sort",
89
- "srgb",
90
- "swatches",
91
- "theme",
92
- "typescript",
93
- "xyy",
94
- "xyz",
95
- "ycbcr",
96
- "ycc"
97
- ],
98
- "publishConfig": {
99
- "access": "public"
100
- },
101
- "browser": {
102
- "process": false,
103
- "setTimeout": false
104
- },
105
- "engines": {
106
- "node": ">=18"
107
- },
108
- "files": [
109
- "./*.js",
110
- "./*.d.ts",
111
- "api",
112
- "css",
113
- "hcy",
114
- "hsi",
115
- "hsl",
116
- "hsv",
117
- "int",
118
- "internal",
119
- "lab",
120
- "lch",
121
- "oklab",
122
- "oklch",
123
- "rgb",
124
- "srgb",
125
- "xyy",
126
- "xyz",
127
- "ycc"
128
- ],
129
- "exports": {
130
- ".": {
131
- "default": "./index.js"
132
- },
133
- "./alpha": {
134
- "default": "./alpha.js"
135
- },
136
- "./analog": {
137
- "default": "./analog.js"
138
- },
139
- "./api/constants": {
140
- "default": "./api/constants.js"
141
- },
142
- "./api/gradients": {
143
- "default": "./api/gradients.js"
144
- },
145
- "./api/names": {
146
- "default": "./api/names.js"
147
- },
148
- "./api/ranges": {
149
- "default": "./api/ranges.js"
150
- },
151
- "./api/system": {
152
- "default": "./api/system.js"
153
- },
154
- "./api": {
155
- "default": "./api.js"
156
- },
157
- "./clamp": {
158
- "default": "./clamp.js"
159
- },
160
- "./closest-hue": {
161
- "default": "./closest-hue.js"
162
- },
163
- "./color-range": {
164
- "default": "./color-range.js"
165
- },
166
- "./color": {
167
- "default": "./color.js"
168
- },
169
- "./contrast": {
170
- "default": "./contrast.js"
171
- },
172
- "./convert": {
173
- "default": "./convert.js"
174
- },
175
- "./cosine-gradients": {
176
- "default": "./cosine-gradients.js"
177
- },
178
- "./css/css": {
179
- "default": "./css/css.js"
180
- },
181
- "./css/parse-css": {
182
- "default": "./css/parse-css.js"
183
- },
184
- "./defcolor": {
185
- "default": "./defcolor.js"
186
- },
187
- "./distance": {
188
- "default": "./distance.js"
189
- },
190
- "./gradients": {
191
- "default": "./gradients.js"
192
- },
193
- "./hcy/hcy-rgb": {
194
- "default": "./hcy/hcy-rgb.js"
195
- },
196
- "./hcy/hcy": {
197
- "default": "./hcy/hcy.js"
198
- },
199
- "./hsi/hsi-rgb": {
200
- "default": "./hsi/hsi-rgb.js"
201
- },
202
- "./hsi/hsi": {
203
- "default": "./hsi/hsi.js"
204
- },
205
- "./hsl/hsl-css": {
206
- "default": "./hsl/hsl-css.js"
207
- },
208
- "./hsl/hsl-hsv": {
209
- "default": "./hsl/hsl-hsv.js"
210
- },
211
- "./hsl/hsl-rgb": {
212
- "default": "./hsl/hsl-rgb.js"
213
- },
214
- "./hsl/hsl": {
215
- "default": "./hsl/hsl.js"
216
- },
217
- "./hsv/hsv-css": {
218
- "default": "./hsv/hsv-css.js"
219
- },
220
- "./hsv/hsv-hsl": {
221
- "default": "./hsv/hsv-hsl.js"
222
- },
223
- "./hsv/hsv-rgb": {
224
- "default": "./hsv/hsv-rgb.js"
225
- },
226
- "./hsv/hsv": {
227
- "default": "./hsv/hsv.js"
228
- },
229
- "./hue": {
230
- "default": "./hue.js"
231
- },
232
- "./int/int-css": {
233
- "default": "./int/int-css.js"
234
- },
235
- "./int/int-int": {
236
- "default": "./int/int-int.js"
237
- },
238
- "./int/int-rgb": {
239
- "default": "./int/int-rgb.js"
240
- },
241
- "./int/int-srgb": {
242
- "default": "./int/int-srgb.js"
243
- },
244
- "./int/int": {
245
- "default": "./int/int.js"
246
- },
247
- "./invert": {
248
- "default": "./invert.js"
249
- },
250
- "./is-black": {
251
- "default": "./is-black.js"
252
- },
253
- "./is-gamut": {
254
- "default": "./is-gamut.js"
255
- },
256
- "./is-gray": {
257
- "default": "./is-gray.js"
258
- },
259
- "./is-white": {
260
- "default": "./is-white.js"
261
- },
262
- "./lab/lab-css": {
263
- "default": "./lab/lab-css.js"
264
- },
265
- "./lab/lab-lab": {
266
- "default": "./lab/lab-lab.js"
267
- },
268
- "./lab/lab-lch": {
269
- "default": "./lab/lab-lch.js"
270
- },
271
- "./lab/lab-rgb": {
272
- "default": "./lab/lab-rgb.js"
273
- },
274
- "./lab/lab-xyz": {
275
- "default": "./lab/lab-xyz.js"
276
- },
277
- "./lab/lab50": {
278
- "default": "./lab/lab50.js"
279
- },
280
- "./lab/lab65": {
281
- "default": "./lab/lab65.js"
282
- },
283
- "./lch/lch-css": {
284
- "default": "./lch/lch-css.js"
285
- },
286
- "./lch/lch": {
287
- "default": "./lch/lch.js"
288
- },
289
- "./lighten": {
290
- "default": "./lighten.js"
291
- },
292
- "./linear": {
293
- "default": "./linear.js"
294
- },
295
- "./luminance-rgb": {
296
- "default": "./luminance-rgb.js"
297
- },
298
- "./luminance": {
299
- "default": "./luminance.js"
300
- },
301
- "./max-chroma": {
302
- "default": "./max-chroma.js"
303
- },
304
- "./mix": {
305
- "default": "./mix.js"
306
- },
307
- "./oklab/oklab-css": {
308
- "default": "./oklab/oklab-css.js"
309
- },
310
- "./oklab/oklab-rgb": {
311
- "default": "./oklab/oklab-rgb.js"
312
- },
313
- "./oklab/oklab-xyz": {
314
- "default": "./oklab/oklab-xyz.js"
315
- },
316
- "./oklab/oklab": {
317
- "default": "./oklab/oklab.js"
318
- },
319
- "./oklch/oklab-oklch": {
320
- "default": "./oklch/oklab-oklch.js"
321
- },
322
- "./oklch/oklch-css": {
323
- "default": "./oklch/oklch-css.js"
324
- },
325
- "./oklch/oklch-oklab": {
326
- "default": "./oklch/oklch-oklab.js"
327
- },
328
- "./oklch/oklch": {
329
- "default": "./oklch/oklch.js"
330
- },
331
- "./rgb/hue-rgb": {
332
- "default": "./rgb/hue-rgb.js"
333
- },
334
- "./rgb/kelvin-rgba": {
335
- "default": "./rgb/kelvin-rgba.js"
336
- },
337
- "./rgb/rgb-css": {
338
- "default": "./rgb/rgb-css.js"
339
- },
340
- "./rgb/rgb-hcv": {
341
- "default": "./rgb/rgb-hcv.js"
342
- },
343
- "./rgb/rgb-hcy": {
344
- "default": "./rgb/rgb-hcy.js"
345
- },
346
- "./rgb/rgb-hsi": {
347
- "default": "./rgb/rgb-hsi.js"
348
- },
349
- "./rgb/rgb-hsl": {
350
- "default": "./rgb/rgb-hsl.js"
351
- },
352
- "./rgb/rgb-hsv": {
353
- "default": "./rgb/rgb-hsv.js"
354
- },
355
- "./rgb/rgb-lab": {
356
- "default": "./rgb/rgb-lab.js"
357
- },
358
- "./rgb/rgb-oklab": {
359
- "default": "./rgb/rgb-oklab.js"
360
- },
361
- "./rgb/rgb-srgb": {
362
- "default": "./rgb/rgb-srgb.js"
363
- },
364
- "./rgb/rgb-xyz": {
365
- "default": "./rgb/rgb-xyz.js"
366
- },
367
- "./rgb/rgb-ycc": {
368
- "default": "./rgb/rgb-ycc.js"
369
- },
370
- "./rgb/rgb": {
371
- "default": "./rgb/rgb.js"
372
- },
373
- "./rotate": {
374
- "default": "./rotate.js"
375
- },
376
- "./sort": {
377
- "default": "./sort.js"
378
- },
379
- "./srgb/srgb-css": {
380
- "default": "./srgb/srgb-css.js"
381
- },
382
- "./srgb/srgb-int": {
383
- "default": "./srgb/srgb-int.js"
384
- },
385
- "./srgb/srgb-rgb": {
386
- "default": "./srgb/srgb-rgb.js"
387
- },
388
- "./srgb/srgb": {
389
- "default": "./srgb/srgb.js"
390
- },
391
- "./strategies": {
392
- "default": "./strategies.js"
393
- },
394
- "./swatches": {
395
- "default": "./swatches.js"
396
- },
397
- "./tint": {
398
- "default": "./tint.js"
399
- },
400
- "./transform": {
401
- "default": "./transform.js"
402
- },
403
- "./variations": {
404
- "default": "./variations.js"
405
- },
406
- "./xyy/xyy-xyz": {
407
- "default": "./xyy/xyy-xyz.js"
408
- },
409
- "./xyy/xyy": {
410
- "default": "./xyy/xyy.js"
411
- },
412
- "./xyz/wavelength-xyz": {
413
- "default": "./xyz/wavelength-xyz.js"
414
- },
415
- "./xyz/xyz-lab": {
416
- "default": "./xyz/xyz-lab.js"
417
- },
418
- "./xyz/xyz-oklab": {
419
- "default": "./xyz/xyz-oklab.js"
420
- },
421
- "./xyz/xyz-rgb": {
422
- "default": "./xyz/xyz-rgb.js"
423
- },
424
- "./xyz/xyz-xyy": {
425
- "default": "./xyz/xyz-xyy.js"
426
- },
427
- "./xyz/xyz-xyz": {
428
- "default": "./xyz/xyz-xyz.js"
429
- },
430
- "./xyz/xyz50": {
431
- "default": "./xyz/xyz50.js"
432
- },
433
- "./xyz/xyz65": {
434
- "default": "./xyz/xyz65.js"
435
- },
436
- "./ycc/ycc-rgb": {
437
- "default": "./ycc/ycc-rgb.js"
438
- },
439
- "./ycc/ycc": {
440
- "default": "./ycc/ycc.js"
441
- }
442
- },
443
- "thi.ng": {
444
- "related": [
445
- "pixel",
446
- "vectors"
447
- ]
448
- },
449
- "gitHead": "fbf4b46ba8a5ecff8c5423f4c2d158d208d20fc8\n"
450
- }
2
+ "name": "@thi.ng/color",
3
+ "version": "5.7.66",
4
+ "description": "Array-based color types, CSS parsing, conversions, transformations, declarative theme generation, gradients, presets",
5
+ "type": "module",
6
+ "module": "./index.js",
7
+ "typings": "./index.d.ts",
8
+ "sideEffects": false,
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "https://github.com/thi-ng/umbrella.git"
12
+ },
13
+ "homepage": "https://thi.ng/color",
14
+ "funding": [
15
+ {
16
+ "type": "github",
17
+ "url": "https://github.com/sponsors/postspectacular"
18
+ },
19
+ {
20
+ "type": "patreon",
21
+ "url": "https://patreon.com/thing_umbrella"
22
+ },
23
+ {
24
+ "type": "liberapay",
25
+ "url": "https://liberapay.com/thi.ng"
26
+ }
27
+ ],
28
+ "author": "Karsten Schmidt (https://thi.ng)",
29
+ "license": "Apache-2.0",
30
+ "scripts": {
31
+ "build": "yarn build:esbuild && yarn build:decl",
32
+ "build:decl": "tsc --declaration --emitDeclarationOnly",
33
+ "build:esbuild": "esbuild --format=esm --platform=neutral --target=es2022 --tsconfig=tsconfig.json --outdir=. src/**/*.ts",
34
+ "clean": "bun ../../tools/src/clean-package.ts css hcy hsi hsl hsv int lab lch oklab oklch rgb srgb xyy xyz ycc",
35
+ "doc": "typedoc --options ../../typedoc.json --out doc src/index.ts",
36
+ "doc:readme": "bun ../../tools/src/module-stats.ts && bun ../../tools/src/readme.ts",
37
+ "pub": "npm publish --access public",
38
+ "test": "bun test",
39
+ "tool:limits": "bun tools/limits.ts",
40
+ "tool:maxchroma": "bun tools/max-chroma.ts",
41
+ "tool:strategies": "bun tools/strategies.ts",
42
+ "tool:swatches": "bun tools/index.ts",
43
+ "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
44
+ },
45
+ "dependencies": {
46
+ "@thi.ng/api": "^8.12.6",
47
+ "@thi.ng/arrays": "^2.13.15",
48
+ "@thi.ng/binary": "^3.4.64",
49
+ "@thi.ng/checks": "^3.7.22",
50
+ "@thi.ng/compare": "^2.4.32",
51
+ "@thi.ng/compose": "^3.0.43",
52
+ "@thi.ng/defmulti": "^3.0.82",
53
+ "@thi.ng/errors": "^2.5.46",
54
+ "@thi.ng/math": "^5.13.3",
55
+ "@thi.ng/random": "^4.1.31",
56
+ "@thi.ng/strings": "^3.9.26",
57
+ "@thi.ng/transducers": "^9.6.14",
58
+ "@thi.ng/vectors": "^8.6.10"
59
+ },
60
+ "devDependencies": {
61
+ "esbuild": "^0.25.11",
62
+ "typedoc": "^0.28.14",
63
+ "typescript": "^5.9.3"
64
+ },
65
+ "keywords": [
66
+ "color",
67
+ "conversion",
68
+ "cosine",
69
+ "css",
70
+ "distance",
71
+ "filter",
72
+ "gamma",
73
+ "generator",
74
+ "gradient",
75
+ "hcy",
76
+ "hsi",
77
+ "hsl",
78
+ "hsv",
79
+ "interpolation",
80
+ "iterator",
81
+ "lab",
82
+ "lch",
83
+ "matrix",
84
+ "oklab",
85
+ "palette",
86
+ "random",
87
+ "rgb",
88
+ "sort",
89
+ "srgb",
90
+ "swatches",
91
+ "theme",
92
+ "typescript",
93
+ "xyy",
94
+ "xyz",
95
+ "ycbcr",
96
+ "ycc"
97
+ ],
98
+ "publishConfig": {
99
+ "access": "public"
100
+ },
101
+ "browser": {
102
+ "process": false,
103
+ "setTimeout": false
104
+ },
105
+ "engines": {
106
+ "node": ">=18"
107
+ },
108
+ "files": [
109
+ "./*.js",
110
+ "./*.d.ts",
111
+ "api",
112
+ "css",
113
+ "hcy",
114
+ "hsi",
115
+ "hsl",
116
+ "hsv",
117
+ "int",
118
+ "internal",
119
+ "lab",
120
+ "lch",
121
+ "oklab",
122
+ "oklch",
123
+ "rgb",
124
+ "srgb",
125
+ "xyy",
126
+ "xyz",
127
+ "ycc"
128
+ ],
129
+ "exports": {
130
+ ".": {
131
+ "default": "./index.js"
132
+ },
133
+ "./alpha": {
134
+ "default": "./alpha.js"
135
+ },
136
+ "./analog": {
137
+ "default": "./analog.js"
138
+ },
139
+ "./api/constants": {
140
+ "default": "./api/constants.js"
141
+ },
142
+ "./api/gradients": {
143
+ "default": "./api/gradients.js"
144
+ },
145
+ "./api/names": {
146
+ "default": "./api/names.js"
147
+ },
148
+ "./api/ranges": {
149
+ "default": "./api/ranges.js"
150
+ },
151
+ "./api/system": {
152
+ "default": "./api/system.js"
153
+ },
154
+ "./api": {
155
+ "default": "./api.js"
156
+ },
157
+ "./clamp": {
158
+ "default": "./clamp.js"
159
+ },
160
+ "./closest-hue": {
161
+ "default": "./closest-hue.js"
162
+ },
163
+ "./color-range": {
164
+ "default": "./color-range.js"
165
+ },
166
+ "./color": {
167
+ "default": "./color.js"
168
+ },
169
+ "./contrast": {
170
+ "default": "./contrast.js"
171
+ },
172
+ "./convert": {
173
+ "default": "./convert.js"
174
+ },
175
+ "./cosine-gradients": {
176
+ "default": "./cosine-gradients.js"
177
+ },
178
+ "./css/css": {
179
+ "default": "./css/css.js"
180
+ },
181
+ "./css/parse-css": {
182
+ "default": "./css/parse-css.js"
183
+ },
184
+ "./defcolor": {
185
+ "default": "./defcolor.js"
186
+ },
187
+ "./distance": {
188
+ "default": "./distance.js"
189
+ },
190
+ "./gradients": {
191
+ "default": "./gradients.js"
192
+ },
193
+ "./hcy/hcy-rgb": {
194
+ "default": "./hcy/hcy-rgb.js"
195
+ },
196
+ "./hcy/hcy": {
197
+ "default": "./hcy/hcy.js"
198
+ },
199
+ "./hsi/hsi-rgb": {
200
+ "default": "./hsi/hsi-rgb.js"
201
+ },
202
+ "./hsi/hsi": {
203
+ "default": "./hsi/hsi.js"
204
+ },
205
+ "./hsl/hsl-css": {
206
+ "default": "./hsl/hsl-css.js"
207
+ },
208
+ "./hsl/hsl-hsv": {
209
+ "default": "./hsl/hsl-hsv.js"
210
+ },
211
+ "./hsl/hsl-rgb": {
212
+ "default": "./hsl/hsl-rgb.js"
213
+ },
214
+ "./hsl/hsl": {
215
+ "default": "./hsl/hsl.js"
216
+ },
217
+ "./hsv/hsv-css": {
218
+ "default": "./hsv/hsv-css.js"
219
+ },
220
+ "./hsv/hsv-hsl": {
221
+ "default": "./hsv/hsv-hsl.js"
222
+ },
223
+ "./hsv/hsv-rgb": {
224
+ "default": "./hsv/hsv-rgb.js"
225
+ },
226
+ "./hsv/hsv": {
227
+ "default": "./hsv/hsv.js"
228
+ },
229
+ "./hue": {
230
+ "default": "./hue.js"
231
+ },
232
+ "./int/int-css": {
233
+ "default": "./int/int-css.js"
234
+ },
235
+ "./int/int-int": {
236
+ "default": "./int/int-int.js"
237
+ },
238
+ "./int/int-rgb": {
239
+ "default": "./int/int-rgb.js"
240
+ },
241
+ "./int/int-srgb": {
242
+ "default": "./int/int-srgb.js"
243
+ },
244
+ "./int/int": {
245
+ "default": "./int/int.js"
246
+ },
247
+ "./invert": {
248
+ "default": "./invert.js"
249
+ },
250
+ "./is-black": {
251
+ "default": "./is-black.js"
252
+ },
253
+ "./is-gamut": {
254
+ "default": "./is-gamut.js"
255
+ },
256
+ "./is-gray": {
257
+ "default": "./is-gray.js"
258
+ },
259
+ "./is-white": {
260
+ "default": "./is-white.js"
261
+ },
262
+ "./lab/lab-css": {
263
+ "default": "./lab/lab-css.js"
264
+ },
265
+ "./lab/lab-lab": {
266
+ "default": "./lab/lab-lab.js"
267
+ },
268
+ "./lab/lab-lch": {
269
+ "default": "./lab/lab-lch.js"
270
+ },
271
+ "./lab/lab-rgb": {
272
+ "default": "./lab/lab-rgb.js"
273
+ },
274
+ "./lab/lab-xyz": {
275
+ "default": "./lab/lab-xyz.js"
276
+ },
277
+ "./lab/lab50": {
278
+ "default": "./lab/lab50.js"
279
+ },
280
+ "./lab/lab65": {
281
+ "default": "./lab/lab65.js"
282
+ },
283
+ "./lch/lch-css": {
284
+ "default": "./lch/lch-css.js"
285
+ },
286
+ "./lch/lch": {
287
+ "default": "./lch/lch.js"
288
+ },
289
+ "./lighten": {
290
+ "default": "./lighten.js"
291
+ },
292
+ "./linear": {
293
+ "default": "./linear.js"
294
+ },
295
+ "./luminance-rgb": {
296
+ "default": "./luminance-rgb.js"
297
+ },
298
+ "./luminance": {
299
+ "default": "./luminance.js"
300
+ },
301
+ "./max-chroma": {
302
+ "default": "./max-chroma.js"
303
+ },
304
+ "./mix": {
305
+ "default": "./mix.js"
306
+ },
307
+ "./oklab/oklab-css": {
308
+ "default": "./oklab/oklab-css.js"
309
+ },
310
+ "./oklab/oklab-rgb": {
311
+ "default": "./oklab/oklab-rgb.js"
312
+ },
313
+ "./oklab/oklab-xyz": {
314
+ "default": "./oklab/oklab-xyz.js"
315
+ },
316
+ "./oklab/oklab": {
317
+ "default": "./oklab/oklab.js"
318
+ },
319
+ "./oklch/oklab-oklch": {
320
+ "default": "./oklch/oklab-oklch.js"
321
+ },
322
+ "./oklch/oklch-css": {
323
+ "default": "./oklch/oklch-css.js"
324
+ },
325
+ "./oklch/oklch-oklab": {
326
+ "default": "./oklch/oklch-oklab.js"
327
+ },
328
+ "./oklch/oklch": {
329
+ "default": "./oklch/oklch.js"
330
+ },
331
+ "./rgb/hue-rgb": {
332
+ "default": "./rgb/hue-rgb.js"
333
+ },
334
+ "./rgb/kelvin-rgba": {
335
+ "default": "./rgb/kelvin-rgba.js"
336
+ },
337
+ "./rgb/rgb-css": {
338
+ "default": "./rgb/rgb-css.js"
339
+ },
340
+ "./rgb/rgb-hcv": {
341
+ "default": "./rgb/rgb-hcv.js"
342
+ },
343
+ "./rgb/rgb-hcy": {
344
+ "default": "./rgb/rgb-hcy.js"
345
+ },
346
+ "./rgb/rgb-hsi": {
347
+ "default": "./rgb/rgb-hsi.js"
348
+ },
349
+ "./rgb/rgb-hsl": {
350
+ "default": "./rgb/rgb-hsl.js"
351
+ },
352
+ "./rgb/rgb-hsv": {
353
+ "default": "./rgb/rgb-hsv.js"
354
+ },
355
+ "./rgb/rgb-lab": {
356
+ "default": "./rgb/rgb-lab.js"
357
+ },
358
+ "./rgb/rgb-oklab": {
359
+ "default": "./rgb/rgb-oklab.js"
360
+ },
361
+ "./rgb/rgb-srgb": {
362
+ "default": "./rgb/rgb-srgb.js"
363
+ },
364
+ "./rgb/rgb-xyz": {
365
+ "default": "./rgb/rgb-xyz.js"
366
+ },
367
+ "./rgb/rgb-ycc": {
368
+ "default": "./rgb/rgb-ycc.js"
369
+ },
370
+ "./rgb/rgb": {
371
+ "default": "./rgb/rgb.js"
372
+ },
373
+ "./rotate": {
374
+ "default": "./rotate.js"
375
+ },
376
+ "./sort": {
377
+ "default": "./sort.js"
378
+ },
379
+ "./srgb/srgb-css": {
380
+ "default": "./srgb/srgb-css.js"
381
+ },
382
+ "./srgb/srgb-int": {
383
+ "default": "./srgb/srgb-int.js"
384
+ },
385
+ "./srgb/srgb-rgb": {
386
+ "default": "./srgb/srgb-rgb.js"
387
+ },
388
+ "./srgb/srgb": {
389
+ "default": "./srgb/srgb.js"
390
+ },
391
+ "./strategies": {
392
+ "default": "./strategies.js"
393
+ },
394
+ "./swatches": {
395
+ "default": "./swatches.js"
396
+ },
397
+ "./tint": {
398
+ "default": "./tint.js"
399
+ },
400
+ "./transform": {
401
+ "default": "./transform.js"
402
+ },
403
+ "./variations": {
404
+ "default": "./variations.js"
405
+ },
406
+ "./xyy/xyy-xyz": {
407
+ "default": "./xyy/xyy-xyz.js"
408
+ },
409
+ "./xyy/xyy": {
410
+ "default": "./xyy/xyy.js"
411
+ },
412
+ "./xyz/wavelength-xyz": {
413
+ "default": "./xyz/wavelength-xyz.js"
414
+ },
415
+ "./xyz/xyz-lab": {
416
+ "default": "./xyz/xyz-lab.js"
417
+ },
418
+ "./xyz/xyz-oklab": {
419
+ "default": "./xyz/xyz-oklab.js"
420
+ },
421
+ "./xyz/xyz-rgb": {
422
+ "default": "./xyz/xyz-rgb.js"
423
+ },
424
+ "./xyz/xyz-xyy": {
425
+ "default": "./xyz/xyz-xyy.js"
426
+ },
427
+ "./xyz/xyz-xyz": {
428
+ "default": "./xyz/xyz-xyz.js"
429
+ },
430
+ "./xyz/xyz50": {
431
+ "default": "./xyz/xyz50.js"
432
+ },
433
+ "./xyz/xyz65": {
434
+ "default": "./xyz/xyz65.js"
435
+ },
436
+ "./ycc/ycc-rgb": {
437
+ "default": "./ycc/ycc-rgb.js"
438
+ },
439
+ "./ycc/ycc": {
440
+ "default": "./ycc/ycc.js"
441
+ }
442
+ },
443
+ "thi.ng": {
444
+ "related": [
445
+ "pixel",
446
+ "vectors"
447
+ ]
448
+ },
449
+ "gitHead": "136a5e5ef0b69e82329db00d806c3c4e8f1aa063\n"
450
+ }
package/CHANGELOG.md DELETED
@@ -1,194 +0,0 @@
1
- # Change Log
2
-
3
- - **Last updated**: 2025-09-01T16:38:35Z
4
- - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
-
6
- All notable changes to this project will be documented in this file.
7
- Only versions published since **2022-01-01** are listed here.
8
- Please consult the Git history for older version information.
9
- See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines.
10
-
11
- **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
12
- and/or version bumps of transitive dependencies.
13
-
14
- ### [5.7.33](https://github.com/thi-ng/umbrella/tree/@thi.ng/color@5.7.33) (2025-04-16)
15
-
16
- #### ♻️ Refactoring
17
-
18
- - minor internal updates (imports) ([269c8ae](https://github.com/thi-ng/umbrella/commit/269c8ae))
19
-
20
- ### [5.7.4](https://github.com/thi-ng/umbrella/tree/@thi.ng/color@5.7.4) (2024-09-16)
21
-
22
- #### 🩹 Bug fixes
23
-
24
- - update pkg exports ([f5f733f](https://github.com/thi-ng/umbrella/commit/f5f733f))
25
-
26
- ## [5.7.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/color@5.7.0) (2024-08-19)
27
-
28
- #### 🚀 Features
29
-
30
- - add setDefaultCSSConversions(), update css() ([2d9e505](https://github.com/thi-ng/umbrella/commit/2d9e505))
31
- - add setDefaultCSSConversions() to set default CSS color conversion rules
32
- - update css() to use current configured default instead of CSS_LEVEL3
33
- - add/update docs
34
-
35
- ### [5.6.47](https://github.com/thi-ng/umbrella/tree/@thi.ng/color@5.6.47) (2024-06-29)
36
-
37
- #### 🩹 Bug fixes
38
-
39
- - update color ctor handling for single ARGB int args ([8ab6083](https://github.com/thi-ng/umbrella/commit/8ab6083))
40
- - interpret sole int arg as sRGB, **not** as linear RGB
41
- - add tests
42
-
43
- ### [5.6.46](https://github.com/thi-ng/umbrella/tree/@thi.ng/color@5.6.46) (2024-06-21)
44
-
45
- #### ♻️ Refactoring
46
-
47
- - rename various rest args to be more semantically meaningful ([8088a56](https://github.com/thi-ng/umbrella/commit/8088a56))
48
- - enforce uniform naming convention of internal functions ([56992b2](https://github.com/thi-ng/umbrella/commit/56992b2))
49
- - dedupe types for isBlack/Gray/White() fns ([a00705d](https://github.com/thi-ng/umbrella/commit/a00705d))
50
- - minor dedupe lab/lch CSS serialization ([19df487](https://github.com/thi-ng/umbrella/commit/19df487))
51
-
52
- ### [5.6.42](https://github.com/thi-ng/umbrella/tree/@thi.ng/color@5.6.42) (2024-04-20)
53
-
54
- #### ♻️ Refactoring
55
-
56
- - update type usage ([39494f2](https://github.com/thi-ng/umbrella/commit/39494f2))
57
-
58
- ### [5.6.40](https://github.com/thi-ng/umbrella/tree/@thi.ng/color@5.6.40) (2024-04-08)
59
-
60
- #### ♻️ Refactoring
61
-
62
- - update reducer handling ([5b445a7](https://github.com/thi-ng/umbrella/commit/5b445a7))
63
-
64
- ### [5.6.24](https://github.com/thi-ng/umbrella/tree/@thi.ng/color@5.6.24) (2024-02-23)
65
-
66
- #### 🩹 Bug fixes
67
-
68
- - allow base color opt in colorFromRange() ([4e7e7fe](https://github.com/thi-ng/umbrella/commit/4e7e7fe))
69
- - fix/update readme code examples, tangle all ([6eb48ac](https://github.com/thi-ng/umbrella/commit/6eb48ac))
70
-
71
- ## [5.6.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/color@5.6.0) (2023-11-12)
72
-
73
- #### 🚀 Features
74
-
75
- - update temperatureMat() ([eaacfa0](https://github.com/thi-ng/umbrella/commit/eaacfa0))
76
- - add (optional) 2nd green/magenta axis to existing blue/yellow
77
-
78
- ### [5.5.27](https://github.com/thi-ng/umbrella/tree/@thi.ng/color@5.5.27) (2023-10-27)
79
-
80
- #### ♻️ Refactoring
81
-
82
- - update vector imports ([95f1d64](https://github.com/thi-ng/umbrella/commit/95f1d64))
83
-
84
- ### [5.5.19](https://github.com/thi-ng/umbrella/tree/@thi.ng/color@5.5.19) (2023-09-19)
85
-
86
- #### ♻️ Refactoring
87
-
88
- - update hiccup/SVG generators ([37c532f](https://github.com/thi-ng/umbrella/commit/37c532f))
89
-
90
- ### [5.5.5](https://github.com/thi-ng/umbrella/tree/@thi.ng/color@5.5.5) (2023-07-14)
91
-
92
- #### ♻️ Refactoring
93
-
94
- - update swatches() return type ([ba73557](https://github.com/thi-ng/umbrella/commit/ba73557))
95
-
96
- ## [5.5.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/color@5.5.0) (2023-04-19)
97
-
98
- #### 🚀 Features
99
-
100
- - add TypedColor.xyz 3-channel accessor, update all impls ([c62e0ee](https://github.com/thi-ng/umbrella/commit/c62e0ee))
101
- - add mostSimilar() ([8cfc36d](https://github.com/thi-ng/umbrella/commit/8cfc36d))
102
-
103
- ## [5.4.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/color@5.4.0) (2023-03-02)
104
-
105
- #### 🚀 Features
106
-
107
- - add oklch mode impl/support ([3e77420](https://github.com/thi-ng/umbrella/commit/3e77420))
108
- - add oklch() factory & class decl
109
- - add oklab<>oklch conversions
110
- - update analog() & rotate()
111
- - add CSS Level4 oklab/oklch support ([137d322](https://github.com/thi-ng/umbrella/commit/137d322))
112
- - update parseCss() to support oklab/oklch colors
113
- - add oklab/oklch CSS serializers
114
- - update css() to optionally support CSS Color Module L4
115
- - add CSS_LEVEL3 / CSS_LEVEL4 conversions
116
- - update color() to accept CSS color strings ([0d5b3e9](https://github.com/thi-ng/umbrella/commit/0d5b3e9))
117
-
118
- #### 🩹 Bug fixes
119
-
120
- - update oklab LMS matrices ([6e2cb75](https://github.com/thi-ng/umbrella/commit/6e2cb75))
121
- - according to @bottosson they were already updated in 01/2021
122
- - update parseCss()/parseHex() ([dbbdc7d](https://github.com/thi-ng/umbrella/commit/dbbdc7d))
123
- - fix support for percentages
124
- - fix channel scale factors
125
- - fix alpha-channel handling in parseHex()
126
- - rename internal helpers
127
- - add/update tests
128
-
129
- #### ⏱ Performance improvements
130
-
131
- - refactor distLch() ([fa2d4e0](https://github.com/thi-ng/umbrella/commit/fa2d4e0))
132
- - use Law of Cosines impl to avoid 1x cos and 2x sin ops
133
-
134
- #### ♻️ Refactoring
135
-
136
- - update oklab/oklch channel ranges, add docs ([d87b30d](https://github.com/thi-ng/umbrella/commit/d87b30d))
137
- - update (ok)lab/lch CSS serializers ([8492f5e](https://github.com/thi-ng/umbrella/commit/8492f5e))
138
- - extract internal helpers
139
- - update/fix channel scale factors
140
-
141
- ## [5.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/color@5.3.0) (2023-02-10)
142
-
143
- #### 🚀 Features
144
-
145
- - add hue() function ([c5c3dd5](https://github.com/thi-ng/umbrella/commit/c5c3dd5))
146
- - add distLch() ([f1b509d](https://github.com/thi-ng/umbrella/commit/f1b509d))
147
-
148
- #### 🩹 Bug fixes
149
-
150
- - fix invert() for HSL ([84d0640](https://github.com/thi-ng/umbrella/commit/84d0640))
151
-
152
- ## [5.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/color@5.2.0) (2022-09-21)
153
-
154
- #### 🚀 Features
155
-
156
- - add WCAG2 contrast() fn ([a132107](https://github.com/thi-ng/umbrella/commit/a132107))
157
-
158
- ## [5.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/color@5.1.0) (2022-06-09)
159
-
160
- #### 🚀 Features
161
-
162
- - update multiColorGradient() ([f47a59d](https://github.com/thi-ng/umbrella/commit/f47a59d))
163
- - add support for automatic conversion to packed ARGB/ABGR ints
164
- (for use with indexed color models in [@thi.ng/pixel](https://github.com/thi-ng/umbrella/tree/main/packages/pixel))
165
-
166
- # [5.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/color@5.0.0) (2022-03-11)
167
-
168
- #### 🛑 Breaking changes
169
-
170
- - rename color matrix fns ([00fdc31](https://github.com/thi-ng/umbrella/commit/00fdc31))
171
- - BREAKING CHANGE: rename color matrix fns
172
- - add `Mat` suffix, e.g. `grayscale()` => `grayscaleMat()`
173
-
174
- #### 🚀 Features
175
-
176
- - update ChannelSpec and hue-based modes ([01d93dc](https://github.com/thi-ng/umbrella/commit/01d93dc))
177
- - add `hue` flag for channel spec
178
- - update `.clamp()` impl to wrap hue in [0..1] interval
179
- - add/update LCH conversion paths
180
- - add/update color ops ([33cb4a1](https://github.com/thi-ng/umbrella/commit/33cb4a1))
181
- - add `invert()`, `isRgbGamut()`, `lighten()`, `rotate()` ops
182
- - add `tint()`, `tone()`, `shade()` ops
183
- - update impls for `isBlack/Gray/White()`
184
- - add/re-use internal multimethod dispatch fns
185
- - add max chroma LCH fns ([ab4e67a](https://github.com/thi-ng/umbrella/commit/ab4e67a))
186
- - add variations() generator ([91d760f](https://github.com/thi-ng/umbrella/commit/91d760f))
187
- - add color theme strategies ([22057e5](https://github.com/thi-ng/umbrella/commit/22057e5))
188
- - add strategy fns:
189
- - `complementaryStrategy()`
190
- - `splitComplementaryStrategy()`
191
- - `monochromeStrategy()`
192
- - `triadicStrategy()`
193
- - `tetradicStrategy()`
194
- - `squareStrategy()`