@thi.ng/color 5.5.29 → 5.5.31

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-10-30T14:31:56Z
3
+ - **Last updated**: 2023-11-09T10:28:18Z
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
@@ -602,7 +602,7 @@ For Node.js REPL:
602
602
  const color = await import("@thi.ng/color");
603
603
  ```
604
604
 
605
- Package sizes (brotli'd, pre-treeshake): ESM: 15.59 KB
605
+ Package sizes (brotli'd, pre-treeshake): ESM: 15.68 KB
606
606
 
607
607
  ## Dependencies
608
608
 
package/api.js CHANGED
@@ -21,6 +21,8 @@ export var Hue;
21
21
  * array and color mode.
22
22
  */
23
23
  export class ParsedColor {
24
+ mode;
25
+ value;
24
26
  constructor(mode, value) {
25
27
  this.mode = mode;
26
28
  this.value = value;
package/defcolor.js CHANGED
@@ -36,6 +36,9 @@ export const defColor = (spec) => {
36
36
  minR[numChannels - 1] = 1;
37
37
  const hueChanID = order.findIndex((id) => !!channels[id].hue);
38
38
  const $Color = class {
39
+ offset;
40
+ stride;
41
+ buf;
39
42
  constructor(buf, offset = 0, stride = 1) {
40
43
  this.offset = offset;
41
44
  this.stride = stride;
package/int/int.js CHANGED
@@ -13,6 +13,10 @@ 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;
16
20
  constructor(buf, offset = 0, stride = 1) {
17
21
  this.offset = offset;
18
22
  this.stride = stride;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/color",
3
- "version": "5.5.29",
3
+ "version": "5.5.31",
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",
@@ -28,36 +28,35 @@
28
28
  "clean": "rimraf --glob '*.js' '*.d.ts' '*.map' doc api css hcy hsi hsl hsv int internal lab lch oklab oklch rgb srgb xyy xyz ycc",
29
29
  "doc": "typedoc --excludePrivate --excludeInternal --out doc src/index.ts",
30
30
  "doc:ae": "mkdir -p .ae/doc .ae/temp && api-extractor run --local --verbose",
31
- "doc:readme": "yarn doc:stats && tools:readme",
32
- "doc:stats": "tools:module-stats",
31
+ "doc:readme": "bun ../../tools/src/module-stats.ts && bun ../../tools/src/readme.ts",
33
32
  "pub": "yarn npm publish --access public",
34
- "test": "testament test",
33
+ "test": "bun test",
35
34
  "tool:limits": "tools:node-esm tools/limits.ts",
36
35
  "tool:maxchroma": "tools:node-esm tools/max-chroma.ts",
37
36
  "tool:strategies": "tools:node-esm tools/strategies.ts",
38
37
  "tool:swatches": "tools:node-esm tools/index.ts"
39
38
  },
40
39
  "dependencies": {
41
- "@thi.ng/api": "^8.9.6",
42
- "@thi.ng/arrays": "^2.7.2",
43
- "@thi.ng/binary": "^3.3.35",
44
- "@thi.ng/checks": "^3.4.6",
45
- "@thi.ng/compare": "^2.2.2",
46
- "@thi.ng/compose": "^2.1.45",
47
- "@thi.ng/defmulti": "^3.0.4",
48
- "@thi.ng/errors": "^2.4.0",
49
- "@thi.ng/math": "^5.7.1",
50
- "@thi.ng/random": "^3.6.12",
51
- "@thi.ng/strings": "^3.6.4",
52
- "@thi.ng/transducers": "^8.8.8",
53
- "@thi.ng/vectors": "^7.8.2"
40
+ "@thi.ng/api": "^8.9.8",
41
+ "@thi.ng/arrays": "^2.7.4",
42
+ "@thi.ng/binary": "^3.3.37",
43
+ "@thi.ng/checks": "^3.4.8",
44
+ "@thi.ng/compare": "^2.2.4",
45
+ "@thi.ng/compose": "^2.1.47",
46
+ "@thi.ng/defmulti": "^3.0.6",
47
+ "@thi.ng/errors": "^2.4.2",
48
+ "@thi.ng/math": "^5.7.3",
49
+ "@thi.ng/random": "^3.6.14",
50
+ "@thi.ng/strings": "^3.6.6",
51
+ "@thi.ng/transducers": "^8.8.10",
52
+ "@thi.ng/vectors": "^7.8.4"
54
53
  },
55
54
  "devDependencies": {
56
- "@microsoft/api-extractor": "^7.38.0",
57
- "@thi.ng/testament": "^0.3.24",
55
+ "@microsoft/api-extractor": "^7.38.2",
56
+ "@thi.ng/testament": "^0.4.1",
58
57
  "rimraf": "^5.0.5",
59
58
  "tools": "^0.0.1",
60
- "typedoc": "^0.25.2",
59
+ "typedoc": "^0.25.3",
61
60
  "typescript": "^5.2.2"
62
61
  },
63
62
  "keywords": [
@@ -445,5 +444,5 @@
445
444
  "vectors"
446
445
  ]
447
446
  },
448
- "gitHead": "336bd1bf95825b3c318a3ab49c54451c94aaa883\n"
447
+ "gitHead": "669a3151e4302480244fe3e60eff5e732ea5b7a7\n"
449
448
  }