LayoutNode¶
Overview¶
Supertype for layout Nodes
@author Jonathan Olson <jonathan.olson@colorado.edu>
Class LayoutNode¶
Constructor¶
new LayoutNode( providedOptions? : LayoutNodeOptions )¶
Instance Methods¶
linkLayoutBounds()¶
(protected)
setExcludeInvisibleChildrenFromBounds( excludeInvisibleChildrenFromBounds : boolean )¶
setChildren( children : Node[] ) : this¶
updateLayout()¶
Manually run the layout (for instance, if resize:false is currently set, or if there is other hackery going on).
dispose()¶
Releases references
Instance Properties¶
layoutOriginProperty : TProperty<Vector2>¶
(readonly)
Type LayoutNodeOptions¶
- resize?: boolean
Controls whether the layout container will re-trigger layout automatically after the "first" layout during construction. The layout container will layout once after processing the options object, but if resize:false, then after that manual layout calls will need to be done (with updateLayout()) - layoutOrigin?: Vector2
Controls where the origin of the "layout" is placed (usually within the Node itself). For typical usages, this will be (0,0) and the upper-left of the content will be placed there.layoutOrigin
will adjust this point. NOTE: If there is origin-based content, that content will be placed at this origin (and may go to the top/left of this layoutOrigin). - & NodeOptions & SizableOptions
Source Code¶
See the source for LayoutNode.ts in the scenery repository.