plotters-rs / plotters

A rust drawing library for high quality data plotting for both WASM and native, statically and realtimely 🦀 📈🚀
https://plotters-rs.github.io/home/
MIT License
3.89k stars 281 forks source link

element/basic_shapes: add two Rectangle getters/setters #601

Closed 10ne1 closed 4 months ago

10ne1 commented 4 months ago

It is useful to be able to update rectangle styles after the rectangles were created, so we add a helper for it.

It is also useful to be able to get the point coordinates.