@thi.ng/color 5.6.11 → 5.6.13

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-01-23T15:58:27Z
3
+ - **Last updated**: 2024-01-29T20:39:36Z
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/README.md CHANGED
@@ -7,9 +7,13 @@
7
7
  ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/color.svg)
8
8
  [![Mastodon Follow](https://img.shields.io/mastodon/follow/109331703950160316?domain=https%3A%2F%2Fmastodon.thi.ng&style=social)](https://mastodon.thi.ng/@toxi)
9
9
 
10
- This is a standalone project, maintained as part of the
11
- [@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo and
12
- anti-framework.
10
+ > [!NOTE]
11
+ > This is one of 189 standalone projects, maintained as part
12
+ > of the [@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo
13
+ > and anti-framework.
14
+ >
15
+ > 🚀 Help me to work full-time on these projects by [sponsoring me on
16
+ > GitHub](https://github.com/sponsors/postspectacular). Thank you! ❤️
13
17
 
14
18
  For the Clojure version, please visit: [thi.ng/color-clj](https://thi.ng/color-clj)
15
19
 
package/analog.d.ts CHANGED
@@ -15,7 +15,7 @@ export declare const defAnalog: FnU3<Fn3<number, number, IRandom, number>, Fn4<C
15
15
  */
16
16
  export declare const analog: import("@thi.ng/defmulti").MultiFn4<import("@thi.ng/vectors").Vec | null, TypedColor<any>, number, IRandom | undefined, import("@thi.ng/vectors").Vec>;
17
17
  /**
18
- * Similar to {@link analogRGB}. Returns an analog color based on given HSVA
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
20
20
  * amounts (and optionally given
21
21
  * [`IRandom`](https://docs.thi.ng/umbrella/random/interfaces/IRandom.html)
@@ -38,7 +38,7 @@ export declare const analog: import("@thi.ng/defmulti").MultiFn4<import("@thi.ng
38
38
  */
39
39
  export declare const analogHsv: (out: Color | null, src: ReadonlyColor, deltaH: number, deltaS?: number, deltaV?: number, deltaA?: number, rnd?: IRandom) => import("@thi.ng/vectors").Vec;
40
40
  /**
41
- * Similar to {@link analogHSV}. Returns an analog color based on given RGBA
41
+ * Similar to {@link analogHsv}. Returns an analog color based on given RGBA
42
42
  * color, with each channel randomly varied by given delta amounts (and
43
43
  * optionally given
44
44
  * [`IRandom`](https://docs.thi.ng/umbrella/random/interfaces/IRandom.html)
@@ -25,8 +25,8 @@ export declare const cosineColor: (spec: CosGradientSpec, t: number) => Color;
25
25
  * re-interpreted and/or transformed into another {@link Color} type.
26
26
  *
27
27
  * @remarks
28
- * For CSS/SVG use cases you could use {@link srgba} as transformation function
29
- * to not convert, but reinterpret & wrap raw color values as SRGBA.
28
+ * For CSS/SVG use cases you could use {@link srgb} as transformation function
29
+ * to not convert, but to reinterpret & wrap raw color values as SRGBA.
30
30
  *
31
31
  * @param n -
32
32
  * @param spec -
package/int/int-int.d.ts CHANGED
@@ -5,7 +5,7 @@
5
5
  */
6
6
  export declare const intArgb32Abgr32: import("@thi.ng/api").FnN;
7
7
  /**
8
- * Alias for {@link intArgbAbgr}.
8
+ * Semantic sugar, alias for {@link intArgb32Abgr32}.
9
9
  */
10
10
  export declare const intAbgr32Argb32: import("@thi.ng/api").FnN;
11
11
  //# sourceMappingURL=int-int.d.ts.map
package/invert.d.ts CHANGED
@@ -5,8 +5,6 @@ import type { ColorOp, TypedColor } from "./api.js";
5
5
  * @remarks
6
6
  * If `out` is null, the resulting color will be written back into `src`.
7
7
  *
8
- * Also see {@link TypedColor.invert}.
9
- *
10
8
  * @param out - result
11
9
  * @param src - source color
12
10
  */
@@ -14,9 +12,6 @@ export declare const invertRgb: ColorOp;
14
12
  /**
15
13
  * Inverts the lowest 24 bits of an ARGB int. Does not modify alpha.
16
14
  *
17
- * @remarks
18
- * Also see {@link TypedColor.invert}.
19
- *
20
15
  * @param src - packed RGB int
21
16
  */
22
17
  export declare const invertInt: (src: number) => number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/color",
3
- "version": "5.6.11",
3
+ "version": "5.6.13",
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",
@@ -39,19 +39,19 @@
39
39
  "tool:swatches": "bun tools/index.ts"
40
40
  },
41
41
  "dependencies": {
42
- "@thi.ng/api": "^8.9.17",
43
- "@thi.ng/arrays": "^2.7.14",
44
- "@thi.ng/binary": "^3.4.5",
45
- "@thi.ng/checks": "^3.4.17",
46
- "@thi.ng/compare": "^2.2.13",
47
- "@thi.ng/compose": "^2.1.56",
48
- "@thi.ng/defmulti": "^3.0.15",
49
- "@thi.ng/errors": "^2.4.11",
50
- "@thi.ng/math": "^5.7.12",
51
- "@thi.ng/random": "^3.6.24",
52
- "@thi.ng/strings": "^3.7.8",
53
- "@thi.ng/transducers": "^8.8.21",
54
- "@thi.ng/vectors": "^7.9.0"
42
+ "@thi.ng/api": "^8.9.19",
43
+ "@thi.ng/arrays": "^2.7.16",
44
+ "@thi.ng/binary": "^3.4.7",
45
+ "@thi.ng/checks": "^3.4.19",
46
+ "@thi.ng/compare": "^2.2.15",
47
+ "@thi.ng/compose": "^2.1.58",
48
+ "@thi.ng/defmulti": "^3.0.17",
49
+ "@thi.ng/errors": "^2.4.12",
50
+ "@thi.ng/math": "^5.8.1",
51
+ "@thi.ng/random": "^3.6.26",
52
+ "@thi.ng/strings": "^3.7.10",
53
+ "@thi.ng/transducers": "^8.8.23",
54
+ "@thi.ng/vectors": "^7.10.1"
55
55
  },
56
56
  "devDependencies": {
57
57
  "@microsoft/api-extractor": "^7.39.0",
@@ -445,5 +445,5 @@
445
445
  "vectors"
446
446
  ]
447
447
  },
448
- "gitHead": "417b5a7ea7bd54a3b4f086fe0fc2ce8e8933c9b2\n"
448
+ "gitHead": "20909ffc46f23f61ec7647e8d27ed17752ce9828\n"
449
449
  }