1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/// Outer padding in logical pixels inside the chart canvas bounds.
pub const ENGINE_CANVAS_PAD: f32 = 12.0;
/// Interactive data-zoom slider strip height in logical pixels.
pub const ENGINE_SLIDER_HEIGHT: f32 = 30.0;
/// Visual handle grip width in logical pixels for the `DataZoom::Slider` thumbs.
pub const ENGINE_SLIDER_HANDLE_W: f32 = 14.0;
/// Generous interactive touch/mouse hitbox width in logical pixels for each `DataZoom::Slider` handle.
pub const ENGINE_SLIDER_HIT_W: f32 = 30.0;
/// Extra vertical hit-area padding in logical pixels above and below the `DataZoom::Slider` bar.
pub const ENGINE_SLIDER_HIT_PAD_Y: f32 = 6.0;
/// Vertical gap in logical pixels between Cartesian X-axis labels and the bottom `DataZoom::Slider`.
pub const ENGINE_SLIDER_TOP_GAP: f32 = 8.0;
/// Interactive visual-map bar strip height in logical pixels.
pub const ENGINE_VISUAL_BAR_HEIGHT: f32 = 24.0;
/// Legend row height in logical pixels.
pub const ENGINE_LEGEND_ROW_H: f32 = 20.0;
/// Legend vertical column width in logical pixels when docked left or right.
pub const ENGINE_LEGEND_SIDE_W: f32 = 104.0;
/// Floating tooltip card maximum width in logical pixels.
pub const ENGINE_TOOLTIP_MAX_W: f32 = 220.0;
/// DataView header label for the primary category/label column.
pub const ENGINE_COL_CATEGORY: &str = "Category";
/// DataView header label for value columns when unlabeled.
pub const ENGINE_COL_VALUE: &str = "Value";
/// DataView header label for series name column.
pub const ENGINE_COL_SERIES: &str = "Series";
/// Default stack group key applied when MagicType switches to `Stack`.
pub const ENGINE_MAGIC_STACK_KEY: &str = "magic_stack";