@thi.ng/hiccup-canvas 2.2.5 → 2.2.6

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-02-10T14:03:10Z
3
+ - **Last updated**: 2023-03-02T18:09:03Z
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/color.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type { DrawState } from "./api.js";
2
- export declare const resolveColor: (src: string | number | import("@thi.ng/vectors").ReadonlyVec) => string;
2
+ export declare const resolveColor: (src: string | number | import("@thi.ng/vectors").ReadonlyVec, cssTarget?: Partial<Record<import("@thi.ng/color/api.js").ColorMode, import("@thi.ng/api").Fn<any, string>>> | undefined) => string;
3
3
  export declare const resolveGradientOrColor: (state: DrawState, v: any) => string | CanvasGradient;
4
4
  export declare const defLinearGradient: (ctx: CanvasRenderingContext2D, { from, to }: any, stops: any[][]) => CanvasGradient;
5
5
  export declare const defRadialGradient: (ctx: CanvasRenderingContext2D, { from, to, r1, r2 }: any, stops: any[][]) => CanvasGradient;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/hiccup-canvas",
3
- "version": "2.2.5",
3
+ "version": "2.2.6",
4
4
  "description": "Hiccup shape tree renderer for vanilla Canvas 2D contexts",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -34,12 +34,12 @@
34
34
  "test": "testament test"
35
35
  },
36
36
  "dependencies": {
37
- "@thi.ng/api": "^8.7.2",
37
+ "@thi.ng/api": "^8.7.3",
38
38
  "@thi.ng/checks": "^3.3.9",
39
- "@thi.ng/color": "^5.3.3",
40
- "@thi.ng/math": "^5.4.3",
41
- "@thi.ng/pixel": "^4.1.5",
42
- "@thi.ng/vectors": "^7.6.4"
39
+ "@thi.ng/color": "^5.4.0",
40
+ "@thi.ng/math": "^5.4.4",
41
+ "@thi.ng/pixel": "^4.1.6",
42
+ "@thi.ng/vectors": "^7.6.5"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@microsoft/api-extractor": "^7.34.2",
@@ -130,5 +130,5 @@
130
130
  ],
131
131
  "year": 2018
132
132
  },
133
- "gitHead": "060a3a69281094df70be0e4f326a0ac3bbc3dd1d\n"
133
+ "gitHead": "a2915dee637c1b8cd2e11a78a23bd035e4f750e7\n"
134
134
  }