Constructors
constructor
-
Parameters
-
originalnodes: Node[]
-
-
Default value groupPadding: number = 12
Properties
backToFront
backToFront: any
groupPadding
groupPadding: number
originalnodes
originalnodes: Node[]
passableEdges
passableEdges: any
Methods
Private avg
-
Parameters
Returns number
Private findAncestorPathBetween
- findAncestorPathBetween(a: any, b: any): object
-
Parameters
Returns object
-
commonAncestor: any
-
lineages: any[]
Private findLineage
- findLineage(v: any): any[]
Private getDepth
-
Parameters
Returns number
Private midPoints
- midPoints(a: any): number[]
-
Parameters
Returns number[]
route
- route(s: number, t: number): Point[]
routeEdges
- routeEdges<Edge>(edges: Edge[], nudgeGap: number, source: function, target: function): Point[][][]
-
Type parameters
Parameters
-
edges: Edge[]
-
nudgeGap: number
-
source: function
-
-
Parameters
Returns number
-
target: function
-
-
Parameters
Returns number
Returns Point[][][]
siblingObstacles
- siblingObstacles(a: any, b: any): any
Static angleBetween2Lines
- angleBetween2Lines(line1: Point[], line2: Point[]): number
-
Parameters
Returns number
Static Private getOrder
- getOrder(pairs: object[]): function
-
Parameters
Returns function
-
- (l: number, r: number): boolean
-
Parameters
Returns boolean
Static getRoutePath
- getRoutePath(route: Point[][], cornerradius: number, arrowwidth: number, arrowheight: number): object
-
Parameters
-
route: Point[][]
-
cornerradius: number
-
arrowwidth: number
-
arrowheight: number
Returns object
-
arrowpath: string
-
routepath: string
Static getSegmentSets
- getSegmentSets(routes: any, x: any, y: any): any[]
-
Parameters
-
routes: any
-
x: any
-
y: any
Returns any[]
Static Private isLeft
- isLeft(a: any, b: any, c: any): boolean
-
Parameters
Returns boolean
Static makeSegments
-
Parameters
Returns Point[][]
Static nudgeSegments
- nudgeSegments(routes: any, x: string, y: string, leftOf: function, gap: number): void
-
Parameters
-
routes: any
-
x: string
-
y: string
-
leftOf: function
-
- (e1: number, e2: number): boolean
-
Parameters
Returns boolean
-
gap: number
Returns void
Static nudgeSegs
- nudgeSegs(x: string, y: string, routes: any, segments: any, leftOf: any, gap: number): void
-
Parameters
-
x: string
-
y: string
-
routes: any
-
segments: any
-
leftOf: any
-
gap: number
Returns void
Static orderEdges
- orderEdges(edges: any): function
-
Parameters
Returns function
-
- (l: number, r: number): boolean
-
Parameters
Returns boolean
Static unreverseEdges
- unreverseEdges(routes: any, routePaths: any): void
-
Parameters
-
routes: any
-
routePaths: any
Returns void