gpui-component/crates/ui/src/plot/shape.rs
Floyd Wang 19a54d6065
chart(pie): Support dynamic inner and outer radius (#1444)
## ⚠️Breaking Change
Add `inner_radius` and `outer_radius` options for `Arc` paint function.

```diff
- arc.paint(a, "#9d9d9d", bounds, window)
+ arc.paint(a, "#9d9d9d", Some(20.), Some(30.), bounds, window)
```
## Demo
<img width="410" height="442" alt="SCR-20251028-kohu"
src="https://github.com/user-attachments/assets/8b849053-22e6-4d6f-933f-b9fb2a47f5e3"
/>
2025-10-28 13:53:28 +08:00

11 lines
153 B
Rust

mod arc;
mod area;
mod bar;
mod line;
mod pie;
pub use arc::{Arc, ArcData};
pub use area::Area;
pub use bar::Bar;
pub use line::Line;
pub use pie::Pie;