@thi.ng/color 5.6.49 → 5.6.51
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/README.md +7 -5
- package/package.json +15 -15
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
<!-- This file is generated - DO NOT EDIT! -->
|
|
2
2
|
<!-- Please see: https://github.com/thi-ng/umbrella/blob/develop/CONTRIBUTING.md#changes-to-readme-files -->
|
|
3
|
-
# 
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@thi.ng/color)
|
|
6
6
|

|
|
7
7
|
[](https://mastodon.thi.ng/@toxi)
|
|
8
8
|
|
|
9
9
|
> [!NOTE]
|
|
10
|
-
> This is one of
|
|
10
|
+
> This is one of 198 standalone projects, maintained as part
|
|
11
11
|
> of the [@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo
|
|
12
12
|
> and anti-framework.
|
|
13
13
|
>
|
|
@@ -347,7 +347,7 @@ Full example:
|
|
|
347
347
|
import { colorsFromTheme, swatchesH, type ColorThemePartTuple } from "@thi.ng/color";
|
|
348
348
|
import { serialize } from "@thi.ng/hiccup";
|
|
349
349
|
import { svg } from "@thi.ng/hiccup-svg";
|
|
350
|
-
import { writeFileSync }
|
|
350
|
+
import { writeFileSync } "node:fs";
|
|
351
351
|
|
|
352
352
|
// color theme definition using:
|
|
353
353
|
// color range preset names, CSS colors and weights
|
|
@@ -474,7 +474,7 @@ delegates to type specific strategies. See `GradientOpts` for details.
|
|
|
474
474
|
import { lch, multiColorGradient, swatchesH } from "@thi.ng/color";
|
|
475
475
|
import { serialize } from "@thi.ng/hiccup";
|
|
476
476
|
import { svg } from "@thi.ng/hiccup-svg";
|
|
477
|
-
import { writeFileSync }
|
|
477
|
+
import { writeFileSync } "node:fs";
|
|
478
478
|
|
|
479
479
|
const L = 0.8;
|
|
480
480
|
const C = 0.8;
|
|
@@ -694,9 +694,11 @@ Package sizes (brotli'd, pre-treeshake): ESM: 15.67 KB
|
|
|
694
694
|
- [@thi.ng/transducers](https://github.com/thi-ng/umbrella/tree/develop/packages/transducers)
|
|
695
695
|
- [@thi.ng/vectors](https://github.com/thi-ng/umbrella/tree/develop/packages/vectors)
|
|
696
696
|
|
|
697
|
+
Note: @thi.ng/api is in _most_ cases a type-only import (not used at runtime)
|
|
698
|
+
|
|
697
699
|
## Usage examples
|
|
698
700
|
|
|
699
|
-
|
|
701
|
+
26 projects in this repo's
|
|
700
702
|
[/examples](https://github.com/thi-ng/umbrella/tree/develop/examples)
|
|
701
703
|
directory are using this package:
|
|
702
704
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/color",
|
|
3
|
-
"version": "5.6.
|
|
3
|
+
"version": "5.6.51",
|
|
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,19 +40,19 @@
|
|
|
40
40
|
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@thi.ng/api": "^8.11.
|
|
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.11.
|
|
52
|
-
"@thi.ng/random": "^
|
|
53
|
-
"@thi.ng/strings": "^3.
|
|
54
|
-
"@thi.ng/transducers": "^9.0.
|
|
55
|
-
"@thi.ng/vectors": "^7.11.
|
|
43
|
+
"@thi.ng/api": "^8.11.7",
|
|
44
|
+
"@thi.ng/arrays": "^2.9.12",
|
|
45
|
+
"@thi.ng/binary": "^3.4.30",
|
|
46
|
+
"@thi.ng/checks": "^3.6.9",
|
|
47
|
+
"@thi.ng/compare": "^2.3.10",
|
|
48
|
+
"@thi.ng/compose": "^3.0.10",
|
|
49
|
+
"@thi.ng/defmulti": "^3.0.45",
|
|
50
|
+
"@thi.ng/errors": "^2.5.13",
|
|
51
|
+
"@thi.ng/math": "^5.11.5",
|
|
52
|
+
"@thi.ng/random": "^4.0.0",
|
|
53
|
+
"@thi.ng/strings": "^3.8.1",
|
|
54
|
+
"@thi.ng/transducers": "^9.0.11",
|
|
55
|
+
"@thi.ng/vectors": "^7.11.5"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@microsoft/api-extractor": "^7.47.0",
|
|
@@ -445,5 +445,5 @@
|
|
|
445
445
|
"vectors"
|
|
446
446
|
]
|
|
447
447
|
},
|
|
448
|
-
"gitHead": "
|
|
448
|
+
"gitHead": "324d6b7dbf31558329e9fb6452e29b2f7db9c61a\n"
|
|
449
449
|
}
|