@pioneer-code/pioneer-charts 22.2.21 → 22.2.22
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
|
@@ -91,9 +91,22 @@ declare class PcacAxisConfig {
|
|
|
91
91
|
* margins grow or shrink by the same amount so the plot area makes room for them - a longer
|
|
92
92
|
* tick means a slightly smaller plot, never labels pushed off the edge. Only the per-tick marks
|
|
93
93
|
* change; the axis line's two end-caps keep their default length. Colored by `tickColor`, the
|
|
94
|
-
* theme's `$gray-900` (like the axis line) by default.
|
|
94
|
+
* theme's `$gray-900` (like the axis line) by default. Ignored while `autoTickSize` is on.
|
|
95
95
|
*/
|
|
96
96
|
tickSize?: number;
|
|
97
|
+
/**
|
|
98
|
+
* Size the tick marks from the chart's points instead of `tickSize`: half the largest mark
|
|
99
|
+
* toward this axis, so a point sitting on the axis ends where its tick does and never covers a
|
|
100
|
+
* tick label (D3's 3px tick padding is the gap left between them). This **overrides**
|
|
101
|
+
* `tickSize` - with it on, any `tickSize` given is ignored - and turns the marks on the same
|
|
102
|
+
* way a `tickSize` does. The largest mark is measured as drawn: a hovered dot, an image's box
|
|
103
|
+
* (its height for the x axis, its width for the y axis), and a gauge ring around either,
|
|
104
|
+
* after any shrinking to fit (dot plot). Honored by the charts that draw points - line, area,
|
|
105
|
+
* plot and dot plot; ignored elsewhere. On the dot plot the marks never reach the axis (its
|
|
106
|
+
* bottom row sits a `gap` above it), so there it only spaces the labels to the marks' size.
|
|
107
|
+
* Default false.
|
|
108
|
+
*/
|
|
109
|
+
autoTickSize?: boolean;
|
|
97
110
|
/**
|
|
98
111
|
* Tick mark color (`--pcac-axis-tick-color`), shown once `tickSize` has turned the marks on.
|
|
99
112
|
* Theme default `$gray-900`.
|