CircleLayout
Functions
- doLayerLayout(circles)
- applyClusteredLayoutStep(input)
- layoutCircleGraph(input, graph, center)
- computeBoundingBox(circles) ⇒
AABB2
Computes a bounding box for a group of Circles
- centerCircleCollectionOn(circles, center)
- applyPull(edges, strength)
- evaluateEdgeCost(edge) ⇒
number
- computeNumberOfNodeEdgeOverlaps(nodes, edges) ⇒
number
- trySwap(c0, c1, circles, edges, numEdges) ⇒
boolean
- applyNodeSwapPass(candidates, numCandidates, edges, numEdges) ⇒
number
- applyNodeSwaps(candidates, edges, allowedSteps) ⇒
number
- resolveCircleConnectionOverlapsStep(candidates, connections) ⇒
number
- circleOverlapsConnection(circle, edge) ⇒
boolean
- resolveCircleLineOverlap(circle, c0, c1)
- applyCircleForces(numCircles, circles)
- applyPullToCircles(circles, target, strength)
- resolveCircleOverlapStep(numCircles, circles) ⇒
number
doLayerLayout(circles)
Kind: global function
Param | Type |
---|---|
circles | Array.<Circle> |
applyClusteredLayoutStep(input)
Kind: global function
Param | Type |
---|---|
input | Array.<Circle> |
layoutCircleGraph(input, graph, center)
Kind: global function
Param | Type |
---|---|
input | Array.<Circle> |
graph | Graph |
center | Vector2 |
computeBoundingBox(circles) ⇒ AABB2
Computes a bounding box for a group of Circles
Kind: global function
Param | Type |
---|---|
circles | Array.<Circle> |
centerCircleCollectionOn(circles, center)
Kind: global function
Param | Type |
---|---|
circles | Array.<Circle> |
center | Vector2 |
applyPull(edges, strength)
Kind: global function
Param | Type |
---|---|
edges | Array.<Connection> |
strength | number |
evaluateEdgeCost(edge) ⇒ number
Kind: global function
Param | Type |
---|---|
edge | Connection |
computeNumberOfNodeEdgeOverlaps(nodes, edges) ⇒ number
Kind: global function
Param | Type |
---|---|
nodes | Array.<Circle> |
edges | Array.<Connection> |
trySwap(c0, c1, circles, edges, numEdges) ⇒ boolean
Kind: global function
Param | Type |
---|---|
c0 | Circle |
c1 | Circle |
circles | Array.<Circle> |
edges | Array.<Connection> |
numEdges | number |
applyNodeSwapPass(candidates, numCandidates, edges, numEdges) ⇒ number
Kind: global function
Param | Type |
---|---|
candidates | Array.<Circle> |
numCandidates | number |
edges | Array.<Connection> |
numEdges | number |
applyNodeSwaps(candidates, edges, allowedSteps) ⇒ number
Kind: global function
Param | Type |
---|---|
candidates | Array.<Circle> |
edges | Array.<Connection> |
allowedSteps | number |
resolveCircleConnectionOverlapsStep(candidates, connections) ⇒ number
Kind: global function
Param | Type |
---|---|
candidates | Array.<Circle> |
connections | Connection |
resolveCircleConnectionOverlapsStep~resolveOverlap(circle, connection)
Kind: inner method of resolveCircleConnectionOverlapsStep
Param | Type |
---|---|
circle | Circle |
connection | Connection |
circleOverlapsConnection(circle, edge) ⇒ boolean
Kind: global function
Param | Type |
---|---|
circle | Circle |
edge | Connection |
resolveCircleLineOverlap(circle, c0, c1)
Kind: global function
Param | Type |
---|---|
circle | Circle |
c0 | Circle |
c1 | Circle |
applyCircleForces(numCircles, circles)
Kind: global function
Param | Type |
---|---|
numCircles | number |
circles | Array.<Circle> |
applyPullToCircles(circles, target, strength)
Kind: global function
Param | Type |
---|---|
circles | Array.<Circle> |
target | Vector2 |
strength | number |
resolveCircleOverlapStep(numCircles, circles) ⇒ number
Kind: global function
Param | Type |
---|---|
numCircles | number |
circles | Array.<Circle> |