@flesler/cursor-canvas-web 1.3.0 → 1.4.0

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/package.json CHANGED
@@ -1,8 +1,11 @@
1
1
  {
2
2
  "name": "@flesler/cursor-canvas-web",
3
3
  "private": false,
4
- "version": "1.3.0",
5
- "repository": "github:flesler/cursor-canvas-web",
4
+ "version": "1.4.0",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git+https://github.com/flesler/cursor-canvas-web.git"
8
+ },
6
9
  "type": "module",
7
10
  "description": "Deploy your Cursor canvases to the web.",
8
11
  "license": "MIT",
@@ -29,7 +29,13 @@ export type CanvasChartExtra = {
29
29
  valueAxis?: CanvasChartValueAxisExtra
30
30
  }
31
31
 
32
- export type CanvasBarChartExtra = CanvasChartExtra
32
+ export type CanvasBarChartExtra = CanvasChartExtra & {
33
+ /** Category (y) axis on `horizontal` bar charts. */
34
+ categoryAxis?: {
35
+ /** Label column width in px; labels truncate to fit. Default 96. */
36
+ width?: number
37
+ }
38
+ }
33
39
 
34
40
  export type CanvasLineChartExtra = CanvasChartExtra & {
35
41
  /** Curved (`monotone`) segments; the IDE draws straight segments. */