# breadthFirstLayout

abstract fun <N, Row, Column> breadthFirstLayout(shape: Shape, parent: N, children: Array<N>, sumSizes: Double, horizontalVanishingPoint: Int, verticalVanishingPoint: Int, accessor: TreeMapAccessor<N>, worker: TreeMapWorker?): Boolean

Arrange the items in the given array to fill the given shape. This is called during the first pass, while traversing the tree top down.

#### Return

true if the layout has been cancelled, false otherwise

#### Parameters

shape

the current rectangle being divided.

parent

the parent node.

children

the items to map.

sumSizes

the size of the parent.

horizontalVanishingPoint
verticalVanishingPoint
worker

the worker thread