Options
All
  • Public
  • Public/Protected
  • All
Menu

Type parameters

  • Node

Hierarchy

  • GridRouter

Index

Constructors

constructor

Properties

backToFront

backToFront: any

cols

cols: GridLine[]

edges

edges: any

groupPadding

groupPadding: number

groups

groups: NodeWrapper[]

leaves

leaves: NodeWrapper[] = null

nodes

nodes: NodeWrapper[]

obstacles

obstacles: any

originalnodes

originalnodes: Node[]

passableEdges

passableEdges: any

root

root: any

rows

rows: GridLine[]

verts

verts: Vert[]

Methods

Private avg

  • avg(a: any): number

Private findAncestorPathBetween

  • findAncestorPathBetween(a: any, b: any): object
  • Parameters

    • a: any
    • b: any

    Returns object

    • commonAncestor: any
    • lineages: any[]

Private findLineage

  • findLineage(v: any): any[]

Private getDepth

  • getDepth(v: any): number

Private getGridLines

Private midPoints

  • midPoints(a: any): number[]

route

  • route(s: number, t: number): Point[]

routeEdges

  • routeEdges<Edge>(edges: Edge[], nudgeGap: number, source: function, target: function): Point[][][]
  • Type parameters

    • Edge

    Parameters

    • edges: Edge[]
    • nudgeGap: number
    • source: function
        • (e: Edge): number
        • Parameters

          • e: Edge

          Returns number

    • target: function
        • (e: Edge): number
        • Parameters

          • e: Edge

          Returns number

    Returns Point[][][]

siblingObstacles

  • siblingObstacles(a: any, b: any): any

Static angleBetween2Lines

  • angleBetween2Lines(line1: Point[], line2: Point[]): number

Static Private getOrder

  • getOrder(pairs: object[]): function
  • Parameters

    • pairs: object[]

    Returns function

      • (l: number, r: number): boolean
      • Parameters

        • l: number
        • r: number

        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[]

Static Private isLeft

  • isLeft(a: any, b: any, c: any): boolean

Static makeSegments

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

          • e1: number
          • e2: number

          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

    • edges: any

    Returns function

      • (l: number, r: number): boolean
      • Parameters

        • l: number
        • r: number

        Returns boolean

Static unreverseEdges

  • unreverseEdges(routes: any, routePaths: any): void

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc