Stacks the drawing elements vertically. Multiple stacks are used if the elements height exceeds the given rectangle height.


elements Element[]

An array with the drawing elements that should be wrapped.

rect Rect

The rectangle in which the elements should be wrapped.


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