(&self, has_legend: bool)
| 1072 | ) |
| 1073 | .padding(6.0) |
| 1074 | .style(|theme| self.update_style(theme).tooltip); |
| 1075 | |
| 1076 | // Position tooltip at fixed location relative to point, not following cursor |
| 1077 | Some(plot_overlay::positioned_overlay( |
| 1078 | tooltip_bubble.into(), |
| 1079 | anchor, |
| 1080 | horizontal_position, |
| 1081 | vertical_position, |
| 1082 | )) |
| 1083 | } |
| 1084 | |
| 1085 | fn view_cursor_overlay(&self) -> Option<Element<'_, PlotUiMessage>> { |
| 1086 | if !self.cursor_overlay { |
| 1087 | return None; |
| 1088 | } |
nothing calls this directly
no test coverage detected