Options
All
  • Public
  • Public/Protected
  • All
Menu
classdesc

An event listeners wrapper. This is just a set of three listener queues (drag, dragStart, dragEnd) and their respective firing functions.

Hierarchy

  • VertexListeners

Index

Constructors

constructor

Properties

Private click

click: Array<VertListener>

Private drag

drag: Array<VertListener>

Private dragEnd

dragEnd: Array<VertListener>

Private dragStart

dragStart: Array<VertListener>

Private vertex

vertex: Vertex

Methods

addClickListener

addDragEndListener

addDragListener

addDragStartListener

fireClickEvent

  • Fire a click event with the given event instance to all installed click listeners.

    method

    fireClickEvent

    instance
    memberof

    VertexListeners

    Parameters

    Returns void

fireDragEndEvent

  • Fire a dragEnd event with the given event instance to all installed drag-end listeners.

    method

    fireDragEndEvent

    instance
    memberof

    VertexListeners

    Parameters

    • e: VertEvent | XMouseEvent

      The drag-end event itself to be fired to all installed dragEnd listeners.

    Returns void

fireDragEvent

  • Fire a drag event with the given event instance to all installed drag listeners.

    method

    fireDragEvent

    instance
    memberof

    VertexListeners

    Parameters

    Returns void

fireDragStartEvent

  • Fire a dragStart event with the given event instance to all installed drag-start listeners.

    method

    fireDragStartEvent

    instance
    memberof

    VertexListeners

    Parameters

    • e: VertEvent | XMouseEvent

      The drag-start event itself to be fired to all installed dragStart listeners.

    Returns void

removeClickListener

removeDragEndListener

removeDragListener

removeDragStartListener

Static Private _addListener

  • _addListener(listeners: Array<(e: VertEvent) => void>, newListener: (e: VertEvent) => void): boolean

Static Private _fireEvent

Static Private _removeListener

Legend

  • Constructor
  • Property
  • Method
  • Property
  • Method
  • Inherited property
  • Inherited method
  • Private property
  • Private method
  • Static property
  • Static method

Generated using TypeDoc