From c5e726d0b7bfd695409d09eb27438a3cc949cc3e Mon Sep 17 00:00:00 2001 From: Brent Yorgey Date: Mon, 15 Oct 2012 21:08:25 -0400 Subject: [PATCH] Mention sized and friends in user manual --- manual/diagrams-manual.rst | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/manual/diagrams-manual.rst b/manual/diagrams-manual.rst index c6bb7022..5b8782de 100644 --- a/manual/diagrams-manual.rst +++ b/manual/diagrams-manual.rst @@ -2194,6 +2194,19 @@ Envelope-related functions information from the envelopes of two-dimensional diagrams, such as `width`, `height`, `extentX`, `extentY`, and `center2D`. + It also provides functions `sized` and `sizedAs`, which can be used + for changing the size of an object. For example: + + .. class:: dia-lhs + + :: + + > shapes = circle 1 + > ||| square 2 + > ||| circle # scaleY 0.3 # sizedAs (square 2) + > + > example = hrule 1 # sizedAs (shapes # scale 0.5) <> shapes # centerX + The ``Enveloped`` class ~~~~~~~~~~~~~~~~~~~~~~~