Skip to main content

BoxLayouter

Functions

evaluateEdgeCost(edge)number
computeBoundingBox(boxes)AABB2

Computes a bounding box for a group of AABB2s

evaluateLayout(boxes, edges)number
evaluateBoxPositionCost(box)number
trySwapBoxes(box0, box1, costFunction)boolean
applyNodeSwapPass(boxes)number
applyNodeSwaps(boxes, allowedSteps)number
applyPull(edges, strength)
centerAABB2CollectionOn(boxes, center)
forceLayout(input, graph, [center])

evaluateEdgeCost(edge) ⇒ number

Kind: global function

ParamType
edgeConnection

computeBoundingBox(boxes) ⇒ AABB2

Computes a bounding box for a group of AABB2s

Kind: global function

ParamType
boxesArray.<AABB2>

evaluateLayout(boxes, edges) ⇒ number

Kind: global function

ParamType
boxesArray.<AABB2>
edgesArray.<Connection>

evaluateBoxPositionCost(box) ⇒ number

Kind: global function

ParamType
boxAABB2

trySwapBoxes(box0, box1, costFunction) ⇒ boolean

Kind: global function

ParamType
box0AABB2
box1AABB2
costFunctionfunction

applyNodeSwapPass(boxes) ⇒ number

Kind: global function

ParamType
boxesArray.<AABB2>

applyNodeSwaps(boxes, allowedSteps) ⇒ number

Kind: global function

ParamType
boxesArray.<AABB2>
allowedStepsnumber

applyPull(edges, strength)

Kind: global function

ParamType
edgesArray.<Connection>
strengthnumber

centerAABB2CollectionOn(boxes, center)

Kind: global function

ParamType
boxesArray.<AABB2>
centerVector2

forceLayout(input, graph, [center])

Kind: global function

ParamTypeDefault
inputArray.<AABB2>
graphGraph
[center]Vector2