Commit b551461
authored
Refactor Plot::show_dyn internals (#161)
Closes #166
`show_dyn` is a massive function with non-trivial dependencies.
This PR attempts to untangle it and make it easier to navigate and
understand.
# Public API changes:
- simplified `show` lifetime
Removed items from the public API
---------------------------------
```
-pub fn egui_plot::Plot<'a>::show<'b, R>(self, ui: &mut egui::ui::Ui, build_fn: impl core::ops::function::FnOnce(&mut egui_plot::PlotUi<'b>) -> R + 'a) -> egui_plot::PlotResponse<R>
```
Added items to the public API
---------------------------------
```
+pub fn egui_plot::Plot<'a>::show<R>(self, ui: &mut egui::ui::Ui, build_fn: impl core::ops::function::FnOnce(&mut egui_plot::PlotUi<'a>) -> R + 'a) -> egui_plot::PlotResponse<R>
```1 parent 2605588 commit b551461
7 files changed
+478
-397
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
191 | | - | |
192 | | - | |
| 191 | + | |
| 192 | + | |
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
| 92 | + | |
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| |||
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
194 | | - | |
| 194 | + | |
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
362 | 362 | | |
363 | 363 | | |
364 | 364 | | |
365 | | - | |
| 365 | + | |
366 | 366 | | |
367 | 367 | | |
368 | 368 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
0 commit comments