@stacksjs/charts 0.72.97 → 0.72.99
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/dist/types.d.ts +18 -1
- 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