Skip to main content

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

ParamType
circlesArray.<Circle>

applyClusteredLayoutStep(input)

Kind: global function

ParamType
inputArray.<Circle>

layoutCircleGraph(input, graph, center)

Kind: global function

ParamType
inputArray.<Circle>
graphGraph
centerVector2

computeBoundingBox(circles) ⇒ AABB2

Computes a bounding box for a group of Circles

Kind: global function

ParamType
circlesArray.<Circle>

centerCircleCollectionOn(circles, center)

Kind: global function

ParamType
circlesArray.<Circle>
centerVector2

applyPull(edges, strength)

Kind: global function

ParamType
edgesArray.<Connection>
strengthnumber

evaluateEdgeCost(edge) ⇒ number

Kind: global function

ParamType
edgeConnection

computeNumberOfNodeEdgeOverlaps(nodes, edges) ⇒ number

Kind: global function

ParamType
nodesArray.<Circle>
edgesArray.<Connection>

trySwap(c0, c1, circles, edges, numEdges) ⇒ boolean

Kind: global function

ParamType
c0Circle
c1Circle
circlesArray.<Circle>
edgesArray.<Connection>
numEdgesnumber

applyNodeSwapPass(candidates, numCandidates, edges, numEdges) ⇒ number

Kind: global function

ParamType
candidatesArray.<Circle>
numCandidatesnumber
edgesArray.<Connection>
numEdgesnumber

applyNodeSwaps(candidates, edges, allowedSteps) ⇒ number

Kind: global function

ParamType
candidatesArray.<Circle>
edgesArray.<Connection>
allowedStepsnumber

resolveCircleConnectionOverlapsStep(candidates, connections) ⇒ number

Kind: global function

ParamType
candidatesArray.<Circle>
connectionsConnection

resolveCircleConnectionOverlapsStep~resolveOverlap(circle, connection)

Kind: inner method of resolveCircleConnectionOverlapsStep

ParamType
circleCircle
connectionConnection

circleOverlapsConnection(circle, edge) ⇒ boolean

Kind: global function

ParamType
circleCircle
edgeConnection

resolveCircleLineOverlap(circle, c0, c1)

Kind: global function

ParamType
circleCircle
c0Circle
c1Circle

applyCircleForces(numCircles, circles)

Kind: global function

ParamType
numCirclesnumber
circlesArray.<Circle>

applyPullToCircles(circles, target, strength)

Kind: global function

ParamType
circlesArray.<Circle>
targetVector2
strengthnumber

resolveCircleOverlapStep(numCircles, circles) ⇒ number

Kind: global function

ParamType
numCirclesnumber
circlesArray.<Circle>