Arrange an arbitrary number of objects in a pile, which can start to stack items on top of each other if needed. Objects are biased towards the middle of the available space.
Optional options: IPileArrangementOptionsOptional Readonly itemWhen provided, replaces the size of each child object when arranging.
Protected Readonly jitterOptional Readonly localWhen provided, used instead of the bounds of the parent object when arranging.
Protected Readonly marginProtected Readonly maxProtected Readonly maxOptional Readonly maxWhen provided, sets the maximum width for a pyramid layer
Protected Readonly minProtected Readonly minOptional Readonly minWhen provided, sets the minimum width for a pyramid layer
Optional Readonly minWhen provided, sets the minium number of items required to build a pyramid
Optional Readonly triangleWhen provided, toggles between triangular based and square based pyramids
Static Readonly DEFAULT_Static Readonly DEFAULT_Static Readonly FALLBACKArrangement used if the available space can't be determined.
Generates the transformations for a bunch of child objects, given the bounds of the containing object.
Array of generated transformations, one for each element in boundsArray.
Protected generateWhen implemented in a deriving class, generates the base transformations for an array of objects. The returned array must contain exactly one element for each item in boundsArray. There's no need to handle margin or jitter here, those features are implemented in the base class.
Axis aligned offsets and sizes of each child object.
Random number generator available for adding variance to the generated transforms. Will produce the same sequence of samples between calls on the same instance.
Optional parentLocalBounds: BoundsOffset and size of the containing object.
Static Protected getStatic getStatic getStatic getStatic maxStatic rotate2dGenerated using TypeDoc
Stack in a pyramid.