From 7a6c2cce7747f7632f0be012f49b548db3e62a2d Mon Sep 17 00:00:00 2001 From: Laurenz Date: Tue, 14 Jun 2022 15:07:13 +0200 Subject: Make radius configuration unconfusing --- src/library/graphics/shape.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/library') diff --git a/src/library/graphics/shape.rs b/src/library/graphics/shape.rs index eed3c9d9..5cc5a76d 100644 --- a/src/library/graphics/shape.rs +++ b/src/library/graphics/shape.rs @@ -33,9 +33,11 @@ impl ShapeNode { /// How much to extend the shape's dimensions beyond the allocated space. #[property(resolve, fold)] pub const OUTSET: Sides>> = Sides::splat(Relative::zero()); + /// How much to round the shape's corners. #[property(skip, resolve, fold)] - pub const RADIUS: Sides>> = Sides::splat(Relative::zero()); + pub const RADIUS: Corners>> = + Corners::splat(Relative::zero()); fn construct(_: &mut Machine, args: &mut Args) -> TypResult { let size = match S { -- cgit v1.2.3