@stacksjs/charts 0.72.98 → 0.72.100

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.
Files changed (2) hide show
  1. package/dist/types.d.ts +18 -1
  2. package/package.json +1 -1
package/dist/types.d.ts CHANGED
@@ -17,17 +17,34 @@ export declare interface ChartData {
17
17
  labels?: string[]
18
18
  datasets: ChartDataset[]
19
19
  }
20
+ /*
21
+ * These describe the Chart.js configuration this package ACCEPTS, which is
22
+ * wider than what it renders: the class deliberately treats what it has not
23
+ * implemented as a no-op rather than a crash, so a dashboard can be written
24
+ * against Chart.js and simply get less chrome here.
25
+ *
26
+ * So a key being declared below is not a promise that it draws - `drawBorder`
27
+ * has been declared and inert from the start. It is a promise that passing it
28
+ * is legal and harmless. Keys were being left out of these types on the
29
+ * accident of which dashboard was written first, which made honest Chart.js
30
+ * config a type error at four call sites.
31
+ */
20
32
  export declare interface ScaleConfig {
21
33
  beginAtZero?: boolean
22
34
  display?: boolean
23
35
  stacked?: boolean
24
- grid?: { display?: boolean, color?: string, drawBorder?: boolean }
36
+ grid?: { display?: boolean, color?: string, drawBorder?: boolean, borderDash?: number[] }
25
37
  ticks?: {
26
38
  color?: string
27
39
  font?: { size?: number, family?: string }
28
40
  callback?: (value: number, index: number, ticks: any[]) => string
29
41
  stepSize?: number
30
42
  maxTicksLimit?: number
43
+ precision?: number
44
+ maxRotation?: number
45
+ minRotation?: number
46
+ autoSkip?: boolean
47
+ padding?: number
31
48
  }
32
49
  min?: number
33
50
  max?: number
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@stacksjs/charts",
3
3
  "type": "module",
4
4
  "sideEffects": false,
5
- "version": "0.72.98",
5
+ "version": "0.72.100",
6
6
  "description": "Chart rendering for Stacks. Built on ts-charts (D3 in TypeScript).",
7
7
  "author": "Chris Breuer",
8
8
  "contributors": [