From b4b022940b908d8fe490b9f4f68bc60dcfb76cd2 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Mon, 19 Dec 2022 01:16:35 +0100 Subject: Syntax and example sections --- library/src/layout/transform.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'library/src/layout/transform.rs') diff --git a/library/src/layout/transform.rs b/library/src/layout/transform.rs index 3af44ca0..b509607d 100644 --- a/library/src/layout/transform.rs +++ b/library/src/layout/transform.rs @@ -7,8 +7,10 @@ use crate::prelude::*; /// # Parameters /// - body: Content (positional, required) /// The content to move. +/// /// - dx: Rel (named) /// The horizontal displacement of the content. +/// /// - dy: Rel (named) /// The vertical displacement of the content. /// @@ -61,10 +63,13 @@ impl Inline for MoveNode {} /// # Parameters /// - body: Content (positional, required) /// The content to transform. +/// /// - angle: Angle (named) /// The amount of rotation. +/// /// - x: Ratio (named) /// The horizontal scaling factor. +/// /// - y: Ratio (named) /// The vertical scaling factor. /// -- cgit v1.2.3