Options
All
  • Public
  • Public/Protected
  • All
Menu

Visual representation of a Vertex. Crafts and manipulates DOM elements needed to present the vertex.

Hierarchy

Index

Constructors

constructor

  • Parameters

    • id: number

      Vertex identifier. Will uniqueness is not required, it is strongly advised.

    • pos: Point

      Position of the vertex in its container.

    • Default value radius: number = 20

      Radius of vertex circle. Defaults to 20. Setting to anything else might cause visual issues.

    Returns SvgVertex

Properties

id

id: number

Vertex identifier. Will uniqueness is not required, it is strongly advised.

incomingEdges

incomingEdges: Edge[]

Edges that has this vertex as target.

outgoingEdges

outgoingEdges: Edge[]

Edges that has this vertex as source.

pos

pos: Point

Position of the vertex in its container.

radius

radius: number

Radius of vertex circle. Defaults to 20. Setting to anything else might cause visual issues.

svgElement

svgElement: SVGGElement

SVG group element containing the vertex represnetation.

Methods

Private createSvgGroup

  • createSvgGroup(): SVGGElement
  • Creates SVG group and its childs that represent this vertex in DOM.

    Returns SVGGElement

setPosition

  • setPosition(x: number, y: number): void
  • Sets new position of this vertex.

    Parameters

    • x: number

      x coordinate of vertex.

    • y: number

      y coordinate of vertex.

    Returns 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