From d2d36ff3e1f0c98a5f9b36d083a31f3d6b7f84dd Mon Sep 17 00:00:00 2001 From: Jonathan Olson Date: Wed, 17 Jul 2024 09:41:57 -0600 Subject: [PATCH] Removing duplicated layout-exemplars, see https://github.com/phetsims/scenery/issues/1418 --- doc/layout-exemplars.html | 475 -------------------------------------- 1 file changed, 475 deletions(-) delete mode 100644 doc/layout-exemplars.html diff --git a/doc/layout-exemplars.html b/doc/layout-exemplars.html deleted file mode 100644 index 04b4ab97..00000000 --- a/doc/layout-exemplars.html +++ /dev/null @@ -1,475 +0,0 @@ - - - - - - - - - Layout Exemplars - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-
- -
-
-
- -
-
- -
-
- -

- All of the code examples here are editable. You can change the code and see the results immediately. -

- -

Basic Layout

- -

Panel Alignment

- -

- To have a vertical stack of Panels keep the same width, provide stretch: true either on the parent - container, or on each Panel individually. -

- -
- - -

Checkboxes

- -

Icons

- -

- Checkboxes are WidthSizable, and act like a container for their label. For icons, this means you can - pass in HBoxes to the label with two items, and the default justification will expand items out to the desired - bounds: -

- -
- - -

Indentation

- -

- Margins can be used for indenting checkboxes: -

- -
- - -

Transforms

- -

- Sizable nodes within layout containers CAN be transformed in some specific ways that will be respected. It's - generally preferred to avoid transforms on direct children of layout containers, but sometimes it's necessary. -

- -

Scale

- -

- Scale should be maintained and respected by layout containers. In cases like these, the preferredWidth - and localPreferredWidth of sizable nodes will be different (based on the current transform). - In general, set preferredWidth as normal, regardless of the scale. -

- -
- - -

Reflection

- -

- Reflection is also supported (but hopefully rarely needed) -

- -
- - -

Rotation

- -

- Rotation is also supported (TODO) -

- -
-
-
- - - -