Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Node

Hierarchy

Index

Constructors

constructor

Properties

graph

graph: Graph

handleSelection

handleSelection: Selection<SVGGElement, any, any, any>

id

id: string

x

x: number

y

y: number

Static nodeNumber

nodeNumber: number = 0

Methods

delete

  • delete(): void

init

  • init(): void

invalidate

  • invalidate(): void

translateBy

  • translateBy(dx: number, dy: number): void

translateTo

  • translateTo(x: number, y: number): void

validate

  • validate(): void

Static getNode

  • getNode(selection: Selection<any, any, any, any>): Node
  • Parameters

    • selection: Selection<any, any, any, any>

    Returns Node

    the node containing the selection.

Static isNode

  • isNode(selection: Selection<any, any, any, any>): boolean
  • Parameters

    • selection: Selection<any, any, any, any>

    Returns boolean

    true if is a node.

Generated using TypeDoc