diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-03-08 10:43:03 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-03-08 10:44:24 +0100 |
| commit | 1b2b53ecb91a9bd7fb3493e471ae03cd142a7c03 (patch) | |
| tree | 682124c2343db9491c84bddbdca026c676f220c6 /library/src/visualize/shape.rs | |
| parent | 25b5bd117529cd04bb789e1988eb3a3db8025a0e (diff) | |
Require font to be a named argument
Diffstat (limited to 'library/src/visualize/shape.rs')
| -rw-r--r-- | library/src/visualize/shape.rs | 21 |
1 files changed, 5 insertions, 16 deletions
diff --git a/library/src/visualize/shape.rs b/library/src/visualize/shape.rs index ef81a871..b3b9364f 100644 --- a/library/src/visualize/shape.rs +++ b/library/src/visualize/shape.rs @@ -190,6 +190,11 @@ impl Layout for RectNode { /// ] /// ``` /// +/// ## Parameters +/// - size: `Smart<Length>` (named) +/// The square's side length. This is mutually exclusive with `width` and +/// `height`. +/// /// Display: Square /// Category: visualize #[node(Construct, Layout)] @@ -414,26 +419,10 @@ impl Layout for EllipseNode { /// ``` /// /// ## Parameters -/// - body: `Content` (positional) -/// The content to place into the circle. The circle expands to fit this -/// content, keeping the 1-1 aspect ratio. -/// /// - radius: `Length` (named) /// The circle's radius. This is mutually exclusive with `width` and /// `height`. /// -/// - width: `Rel<Length>` (named) -/// The circle's width. This is mutually exclusive with `radius` and `height`. -/// -/// In contrast to `size`, this can be relative to the parent container's -/// width. -/// -/// - height: `Rel<Length>` (named) -/// The circle's height.This is mutually exclusive with `radius` and `width`. -/// -/// In contrast to `size`, this can be relative to the parent container's -/// height. -/// /// Display: Circle /// Category: visualize #[node(Construct, Layout)] |
