diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-06-14 15:07:13 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-06-14 17:17:54 +0200 |
| commit | 7a6c2cce7747f7632f0be012f49b548db3e62a2d (patch) | |
| tree | 30103d743fcf22c6838e5ce3b6c632abe15e78b9 /src/library/graphics | |
| parent | 6832ca2a26df5a9407bd2b0266cc0bab328ebeba (diff) | |
Make radius configuration unconfusing
Diffstat (limited to 'src/library/graphics')
| -rw-r--r-- | src/library/graphics/shape.rs | 4 |
1 files changed, 3 insertions, 1 deletions
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<const S: ShapeKind> ShapeNode<S> { /// How much to extend the shape's dimensions beyond the allocated space. #[property(resolve, fold)] pub const OUTSET: Sides<Option<Relative<RawLength>>> = Sides::splat(Relative::zero()); + /// How much to round the shape's corners. #[property(skip, resolve, fold)] - pub const RADIUS: Sides<Option<Relative<RawLength>>> = Sides::splat(Relative::zero()); + pub const RADIUS: Corners<Option<Relative<RawLength>>> = + Corners::splat(Relative::zero()); fn construct(_: &mut Machine, args: &mut Args) -> TypResult<Content> { let size = match S { |
