| 12 | |
| 13 | #[derive(Default, Clone)] |
| 14 | pub struct BaseChartProperties { |
| 15 | /// ID of the current animation frame. |
| 16 | pub animation_frame_id: usize, |
| 17 | |
| 18 | /// The starting time of an animation cycle. |
| 19 | pub animation_start_time: Option<i64>, |
| 20 | |
| 21 | // dataTableSubscriptionTracker: StreamSubscriptionTracker, // = StreamSubscriptionTracker(); |
| 22 | pub easing: Option<EasingFunction>, |
| 23 | |
| 24 | /// The chart"s width. |
| 25 | pub height: f64, |
| 26 | |
| 27 | /// The chart"s height. |
| 28 | pub width: f64, |
| 29 | |
| 30 | /// Index of the highlighted point group/bar group/pie/... |
| 31 | pub focused_entity_index: i64, // = -1; |
| 32 | |
| 33 | pub focused_channel_index: i64, // = -1; |
| 34 | |
| 35 | pub entity_value_formatter: Option<ValueFormatter>, |
| 36 | |
| 37 | /// The legend element. |
| 38 | legend: Option<bool>, //Element, |
| 39 | |
| 40 | // /// The subscription tracker for legend items" events. |
| 41 | // legendItemSubscriptionTracker: StreamSubscriptionTracker, // = StreamSubscriptionTracker(); |
| 42 | |
| 43 | // mouseMoveSub: StreamSubscription, |
| 44 | /// The tooltip element. To position the tooltip, change its transform CSS. |
| 45 | tooltip: Option<bool>, //Element, |
| 46 | /// The function used to format channel names to display in the tooltip. |
| 47 | pub tooltip_label_formatter: Option<LabelFormatter>, |
| 48 | |
| 49 | /// The function used to format channel data to display in the tooltip. |
| 50 | pub tooltip_value_formatter: Option<ValueFormatter>, |
| 51 | |
| 52 | /// Bounding box of the channel and axes. |
| 53 | pub area: Rect<f64>, |
| 54 | |
| 55 | /// Bounding box of the chart title. |
| 56 | pub title_box: Rect<f64>, |
| 57 | } |
| 58 | |
| 59 | /// Base class for all charts. |
| 60 | #[derive(Default, Clone)] |
nothing calls this directly
no outgoing calls
no test coverage detected