@thi.ng/color 4.0.1 → 4.0.3

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
@@ -3,6 +3,22 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [4.0.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/color@4.0.2...@thi.ng/color@4.0.3) (2021-10-15)
7
+
8
+ **Note:** Version bump only for package @thi.ng/color
9
+
10
+
11
+
12
+
13
+
14
+ ## [4.0.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/color@4.0.1...@thi.ng/color@4.0.2) (2021-10-15)
15
+
16
+ **Note:** Version bump only for package @thi.ng/color
17
+
18
+
19
+
20
+
21
+
6
22
  ## [4.0.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/color@4.0.0...@thi.ng/color@4.0.1) (2021-10-13)
7
23
 
8
24
  **Note:** Version bump only for package @thi.ng/color
package/README.md CHANGED
@@ -139,9 +139,9 @@ css(rgb(labD50("#ff0")))
139
139
  ```
140
140
 
141
141
  Additionally, colors can be created from black body temperatures
142
- ([`kelvinRgb()`](https://github.com/thi-ng/umbrella/blob/develop/packages/color/src/rgb/kelvin-rgba.ts))
142
+ ([`kelvinRgb()`](https://docs.thi.ng/umbrella/color/modules.html#kelvinRgb))
143
143
  or wavelengths
144
- ([`wavelengthXyz()`](https://github.com/thi-ng/umbrella/blob/develop/packages/color/src/xyz/wavelength-xyz.ts)).
144
+ ([`wavelengthXyz()`](https://docs.thi.ng/umbrella/color/modules.html#wavelengthXyz)).
145
145
 
146
146
  ![kelvinRgb() result swatches](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/color/blackbody.svg)
147
147
 
@@ -464,7 +464,7 @@ writeFileSync(
464
464
  - [Original article](http://www.iquilezles.org/www/articles/palettes/palettes.htm)
465
465
  - [Gradient generator](http://dev.thi.ng/gradients/)
466
466
 
467
- The following presets are bundled (in [`cosine-gradients.ts`](https://github.com/thi-ng/umbrella/tree/develop/packages/color/src/ops/cosine-gradients.ts)):
467
+ The following presets are bundled (in [`cosine-gradients.ts`](https://github.com/thi-ng/umbrella/tree/develop/packages/color/src/cosine-gradients.ts)):
468
468
 
469
469
  | Preview | Gradient ID |
470
470
  |-----------------------------------------------------------------------------------------------------------------------------------------------|-------------------------|
@@ -545,7 +545,7 @@ multiCosineGradient({
545
545
  ### RGB color transformations
546
546
 
547
547
  RGB [color matrix
548
- transformations](https://github.com/thi-ng/umbrella/tree/develop/packages/color/src/ops/transform.ts),
548
+ transformations](https://github.com/thi-ng/umbrella/tree/develop/packages/color/src/transform.ts),
549
549
  including parametric preset transforms:
550
550
 
551
551
  - brightness
@@ -601,7 +601,7 @@ node --experimental-repl-await
601
601
  > const color = await import("@thi.ng/color");
602
602
  ```
603
603
 
604
- Package sizes (gzipped, pre-treeshake): ESM: 14.21 KB
604
+ Package sizes (gzipped, pre-treeshake): ESM: 14.19 KB
605
605
 
606
606
  ## Dependencies
607
607
 
package/api.js CHANGED
@@ -21,8 +21,6 @@ export var Hue;
21
21
  * array and color mode.
22
22
  */
23
23
  export class ParsedColor {
24
- mode;
25
- value;
26
24
  constructor(mode, value) {
27
25
  this.mode = mode;
28
26
  this.value = value;
package/defcolor.js CHANGED
@@ -34,9 +34,6 @@ export const defColor = (spec) => {
34
34
  const maxR = set4([], max);
35
35
  minR[numChannels - 1] = 1;
36
36
  const $Color = class {
37
- offset;
38
- stride;
39
- buf;
40
37
  constructor(buf, offset = 0, stride = 1) {
41
38
  this.offset = offset;
42
39
  this.stride = stride;
package/int/int.js CHANGED
@@ -13,10 +13,6 @@ import { srgb } from "../srgb/srgb.js";
13
13
  import { srgbIntAbgr32, srgbIntArgb32 } from "../srgb/srgb-int.js";
14
14
  import { intArgb32Srgb } from "./int-srgb.js";
15
15
  export class Int32 {
16
- offset;
17
- stride;
18
- buf;
19
- value;
20
16
  constructor(buf, offset = 0, stride = 1) {
21
17
  this.offset = offset;
22
18
  this.stride = stride;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/color",
3
- "version": "4.0.1",
3
+ "version": "4.0.3",
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",
@@ -35,22 +35,22 @@
35
35
  "tool:swatches": "../../scripts/node-esm tools/index.ts"
36
36
  },
37
37
  "dependencies": {
38
- "@thi.ng/api": "^8.0.1",
39
- "@thi.ng/arrays": "^2.0.1",
40
- "@thi.ng/binary": "^3.0.1",
41
- "@thi.ng/checks": "^3.0.1",
42
- "@thi.ng/compare": "^2.0.1",
43
- "@thi.ng/compose": "^2.0.1",
44
- "@thi.ng/defmulti": "^2.0.1",
45
- "@thi.ng/errors": "^2.0.1",
46
- "@thi.ng/math": "^5.0.1",
47
- "@thi.ng/random": "^3.0.1",
48
- "@thi.ng/strings": "^3.0.1",
49
- "@thi.ng/transducers": "^8.0.1",
50
- "@thi.ng/vectors": "^7.0.1"
38
+ "@thi.ng/api": "^8.0.3",
39
+ "@thi.ng/arrays": "^2.0.3",
40
+ "@thi.ng/binary": "^3.0.3",
41
+ "@thi.ng/checks": "^3.0.3",
42
+ "@thi.ng/compare": "^2.0.3",
43
+ "@thi.ng/compose": "^2.0.3",
44
+ "@thi.ng/defmulti": "^2.0.3",
45
+ "@thi.ng/errors": "^2.0.3",
46
+ "@thi.ng/math": "^5.0.3",
47
+ "@thi.ng/random": "^3.0.3",
48
+ "@thi.ng/strings": "^3.0.3",
49
+ "@thi.ng/transducers": "^8.0.3",
50
+ "@thi.ng/vectors": "^7.0.3"
51
51
  },
52
52
  "devDependencies": {
53
- "@thi.ng/testament": "^0.1.1"
53
+ "@thi.ng/testament": "^0.1.3"
54
54
  },
55
55
  "keywords": [
56
56
  "color",
@@ -394,5 +394,5 @@
394
394
  "vectors"
395
395
  ]
396
396
  },
397
- "gitHead": "2e6b3d7c0f4c5686c1e9bdb4902ed7d3f90bcc19"
397
+ "gitHead": "1fb38cac74d6c009d96855c28784a267a81badf1"
398
398
  }