MCPcopy Create free account
hub / github.com/donkeyteethUX/iced_plot / view

Method view

examples/interactive_spline.rs:136–143  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

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
146fn sample_catmull_rom(control_points: &[[f64; 2]], samples_per_segment: usize) -> Vec<[f64; 2]> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected