GridLayout$Typings extension

on

Properties

alignment EnumValue
Gets or sets whether the Part#location or the position should be used to arrange each part.
getter/setter pair
arrangement EnumValue
Gets or sets how to arrange the parts. Must be GridLayout.LeftToRight or GridLayout.RightToLeft.
getter/setter pair
cellSize Size
Gets or sets the minimum part size by which each part is positioned in the grid.
getter/setter pair
comparer num Function(Part, Part)
Gets or sets the comparison function used to sort the parts.
getter/setter pair
sorting EnumValue
Gets or sets what order to place the parts. Must be GridLayout.Forward, GridLayout.Reverse, GridLayout.Ascending, or GridLayout.Descending.
getter/setter pair
spacing Size
Gets or sets the minimum horizontal and vertical space between parts.
getter/setter pair
wrappingColumn num
Gets or sets the maximum number of columns.
getter/setter pair
wrappingWidth num
Gets or sets the wrapping width.
getter/setter pair

Methods

doLayout(Object coll) → void
Assign the positions of the parts, ignoring any links. @param {Diagram|Group|Iterable.