@thi.ng/color 5.6.10 → 5.6.12

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**: 2023-12-31T09:44:23Z
3
+ - **Last updated**: 2024-01-26T18:03:04Z
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
@@ -669,4 +669,4 @@ If this project contributes to an academic publication, please cite it as:
669
669
 
670
670
  ## License
671
671
 
672
- © 2016 - 2023 Karsten Schmidt // Apache License 2.0
672
+ © 2016 - 2024 Karsten Schmidt // Apache License 2.0
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.10",
3
+ "version": "5.6.12",
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.16",
43
- "@thi.ng/arrays": "^2.7.13",
44
- "@thi.ng/binary": "^3.4.4",
45
- "@thi.ng/checks": "^3.4.16",
46
- "@thi.ng/compare": "^2.2.12",
47
- "@thi.ng/compose": "^2.1.55",
48
- "@thi.ng/defmulti": "^3.0.14",
49
- "@thi.ng/errors": "^2.4.10",
50
- "@thi.ng/math": "^5.7.11",
51
- "@thi.ng/random": "^3.6.23",
52
- "@thi.ng/strings": "^3.7.7",
53
- "@thi.ng/transducers": "^8.8.20",
54
- "@thi.ng/vectors": "^7.8.15"
42
+ "@thi.ng/api": "^8.9.18",
43
+ "@thi.ng/arrays": "^2.7.15",
44
+ "@thi.ng/binary": "^3.4.6",
45
+ "@thi.ng/checks": "^3.4.18",
46
+ "@thi.ng/compare": "^2.2.14",
47
+ "@thi.ng/compose": "^2.1.57",
48
+ "@thi.ng/defmulti": "^3.0.16",
49
+ "@thi.ng/errors": "^2.4.11",
50
+ "@thi.ng/math": "^5.8.0",
51
+ "@thi.ng/random": "^3.6.25",
52
+ "@thi.ng/strings": "^3.7.9",
53
+ "@thi.ng/transducers": "^8.8.22",
54
+ "@thi.ng/vectors": "^7.10.0"
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": "b3db173682e1148cf08a6bd907b8d90b47b7c066\n"
448
+ "gitHead": "7426e2ae6fca5482c6eaf649872296fc89955374\n"
449
449
  }