wrap

Stacks the drawing elements horizontally. Multiple stacks are used if the elements width exceeds the given rectangle width.

Parameters

elements Element[]

An array with the drawing elements that should be wrapped.

rect Rect

The rectangle in which the elements should be wrapped.

Returns

Array<Array<Element>> - An array with the stacks. Each stack is an Array holding the stack drawing elements.

 /