Abstract Optional options: IArrangementOptionsProtected Readonly jitterProtected Readonly marginProtected Readonly maxProtected Readonly maxProtected Readonly minProtected Readonly minStatic Readonly DEFAULT_Static Readonly DEFAULT_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 Abstract 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 getGenerated using TypeDoc
Arrangements handle deciding where to position items based on the local bounds of the parent object. Each class extending Arrangement needs to implement generateLocal. Features like margin and jitter are handled in the base Arrangement class.