Add corner rounding to the Rectangle node (#1648)

* add skeleton implementation

* add corner rounding

* fix crash when `border_radius` is zero

* rename `Border Radius` to `Corner Radius`

* add clamped property

* add `TaggedValue::F64Array4`

* add frontend support for individual corner rounding

* added individual corner rounding

* fix rebase

* change default values when switching rounding type

* fix crash caused by negative scale

* remove `Any` trait

* add `Message::Batched`

* fix stale property bug

* add smarter clamping for individual rounding

* Rearrange widgets in properties panel

* update individual clamping algorithm

* add better variable names

* make variable names clearer

* Final code cleanup

---------

Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
Karthik Prakash
2024-04-06 05:09:55 +00:00
committed by GitHub
co-authored by Keavon Chambers
parent d09e7eaf86
commit 438c45eb80
8 changed files with 221 additions and 17 deletions
+1
View File
@@ -7,6 +7,7 @@ use graphite_proc_macros::*;
pub enum Message {
NoOp,
Init,
Batched(Box<[Message]>),
#[child]
Broadcast(BroadcastMessage),