@stacksjs/charts 0.70.37 → 0.70.38

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.
@@ -0,0 +1,22 @@
1
+ import type { ChartConfig, ChartData, ChartOptions, ChartType } from './types';
2
+ /**
3
+ * Chart.js-compatible adapter rendering to HTML5 Canvas.
4
+ *
5
+ * Supports the dashboard subset: line / bar / doughnut / pie, with
6
+ * responsive sizing, scales (beginAtZero / stacked / grid / ticks /
7
+ * y1 dual-axis), legends, and tooltip callbacks. Advanced features
8
+ * (radar, animations, plugins) are no-ops rather than crashes.
9
+ */
10
+ export declare class Chart {
11
+ static instances: unknown;
12
+ static register(..._items: unknown[]): void;
13
+ type: ChartType;
14
+ data: ChartData;
15
+ options: ChartOptions;
16
+ canvas: HTMLCanvasElement;
17
+ ctx: CanvasRenderingContext2D;
18
+ constructor(target: HTMLCanvasElement | CanvasRenderingContext2D, config: ChartConfig);
19
+ update(): void;
20
+ resize(): void;
21
+ destroy(): void;
22
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/charts",
3
3
  "type": "module",
4
- "version": "0.70.37",
4
+ "version": "0.70.38",
5
5
  "description": "Chart rendering for Stacks. Built on ts-charts (D3 in TypeScript).",
6
6
  "author": "Chris Breuer",
7
7
  "contributors": [