MCPcopy Create free account
hub / github.com/angular-rust/ux-charts / LinePoint

Class LinePoint

src/line.rs:23–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21
22#[derive(Default, Clone)]
23pub struct LinePoint<D> {
24 color: Color,
25 highlight_color: Color,
26 // formatted_value: String,
27 index: usize,
28 old_value: Option<D>,
29 value: Option<D>,
30
31 old_x: f64,
32 old_y: f64,
33 old_cp1: Option<Point<f64>>,
34 old_cp2: Option<Point<f64>>,
35 old_point_radius: f64,
36
37 /// The first control point.
38 cp1: Option<Point<f64>>,
39
40 /// The second control point.
41 cp2: Option<Point<f64>>,
42 x: f64,
43 y: f64,
44
45 point_radius: f64,
46}
47
48impl<D> LinePoint<D> {
49 fn as_point(&self) -> Point<f64> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected