diff --git a/charming/src/component/angle_axis.rs b/charming/src/component/angle_axis.rs index a4ada04..701e0c8 100644 --- a/charming/src/component/angle_axis.rs +++ b/charming/src/component/angle_axis.rs @@ -24,6 +24,9 @@ pub struct AngleAxis { #[serde(skip_serializing_if = "Option::is_none")] start_angle: Option, + #[serde(skip_serializing_if = "Option::is_none")] + end_angle: Option, + /// Whether the direction of axis is clockwise, default to true. #[serde(skip_serializing_if = "Option::is_none")] clockwise: Option, @@ -112,6 +115,7 @@ impl AngleAxis { id: None, polar_index: None, start_angle: None, + end_angle: None, clockwise: None, type_: None, zlevel: None, @@ -158,6 +162,11 @@ impl AngleAxis { self } + pub fn end_angle>(mut self, end_angle: F) -> Self { + self.end_angle = Some(end_angle.into()); + self + } + pub fn clockwise(mut self, clockwise: bool) -> Self { self.clockwise = Some(clockwise); self