Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

Properties

Private _isMouseDown

_isMouseDown: boolean

Protected chart

chart: Chart

Protected currentPosition

currentPosition: Coordinates

Protected previousPosition

previousPosition: Coordinates

Protected startPosition

startPosition: Coordinates

Methods

componentEventFirstCall

  • componentEventFirstCall(evt: MouseEvent, eventType: string): void
  • Parameters

    • evt: MouseEvent
    • eventType: string

    Returns void

componentEventRecursive

  • componentEventRecursive(component: IComponent, func: string): boolean
  • Recursive function that goes through each possible component and execute event each component

    Parameters

    Returns boolean

Protected findPosition

getPosition

getPreviousMousePosition

  • Get previous mouse position from previous frame

    Returns Coordinates

Protected initialize

  • initialize(): void

isMouseDown

  • isMouseDown(): boolean
  • Returns true if left mouse key is currently pressed

    Returns boolean

Protected isOnComponent

  • Parameters

    Returns boolean

mouseClick

  • mouseClick(evt: MouseEvent): void
  • Parameters

    • evt: MouseEvent

    Returns void

mouseDown

  • mouseDown(evt: MouseEvent): void
  • Parameters

    • evt: MouseEvent

    Returns void

mouseMove

  • mouseMove(evt: MouseEvent): void
  • Parameters

    • evt: MouseEvent

    Returns void

mouseUp

  • mouseUp(evt: MouseEvent): void
  • Parameters

    • evt: MouseEvent

    Returns void

Protected setCursor

  • setCursor(): void
  • Returns void

Protected setCursorRecursive

  • Parameters

    Returns void

Protected setPosition

  • setPosition(evt: MouseEvent): void
  • Set current mouse position on canvas

    Parameters

    • evt: MouseEvent

    Returns void

wheel

  • wheel(evt: MouseWheelEvent): void
  • MouseWheel event

    Parameters

    • evt: MouseWheelEvent

    Returns void

Generated using TypeDoc