(&self)
| 134 | } |
| 135 | |
| 136 | fn view(&self) -> Element<'_, Message> { |
| 137 | column![ |
| 138 | text("Interactive spline: click and drag a control point.").size(16), |
| 139 | self.widget.view().map(Message::Plot), |
| 140 | ] |
| 141 | .spacing(8) |
| 142 | .into() |
| 143 | } |
| 144 | } |
| 145 | |
| 146 | fn sample_catmull_rom(control_points: &[[f64; 2]], samples_per_segment: usize) -> Vec<[f64; 2]> { |
nothing calls this directly
no outgoing calls
no test coverage detected