(&self)
| 68 | } |
| 69 | |
| 70 | fn bottom_shapes(&self) -> impl Iterator<Item = PlotOverlay<'_, Message>> { |
| 71 | let region = container(text("axes-space region\n (on bottom)").size(13.0)) |
| 72 | .width(Length::Fixed(190.0)) |
| 73 | .height(Length::Fixed(76.0)) |
| 74 | .align_x(alignment::Horizontal::Center) |
| 75 | .align_y(alignment::Vertical::Center) |
| 76 | .style(region_style); |
| 77 | |
| 78 | std::iter::once( |
| 79 | PlotOverlay::new(region, [0.5, 0.5]) |
| 80 | .with_axes_transform() |
| 81 | .align_to_anchor(alignment::Horizontal::Center, alignment::Vertical::Center) |
| 82 | .map(Message::Shape), |
| 83 | ) |
| 84 | } |
| 85 | |
| 86 | fn top_shapes(&self) -> impl Iterator<Item = PlotOverlay<'_, Message>> { |
| 87 | let label = if self.annotation_expanded { |
no test coverage detected