Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • CurtainInteraction

Implements

Index

Constructors

constructor

Properties

Private curtain

curtain: ChartCurtain

eventByName

eventByName: DomEventByName = mouseEventByName

Private moveState

moveState: MoveState | undefined

Private onMouseMove

onMouseMove: function = throttle((event) => {const normalized = normalizeEvent(event, this.state.chartRect);// movenmentX/movenmentY aren't supported by safari/ie https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/movementX#Browser_compatibilityif (this.moveState) {this.curtain.move(this.moveState.target, normalized.clientX - this.moveState.previousMouseMoveEvent.clientX);this.moveState.previousMouseMoveEvent = normalized;}}, MOUSE_MOVE_THROTTLE)

Type declaration

    • (event: Event): void
    • Parameters

      • event: Event

      Returns void

Private overlay

overlay: HTMLCanvasElement

Private state

state: ChartState

Private targets

targets: Array<CurtainHandle | ChartCurtain> = []

Methods

addListeners

Private addOnMouseMoveListener

  • addOnMouseMoveListener(moveState: MoveState): void
  • Parameters

    Returns void

Private onMouseUp

  • onMouseUp(): void
  • Returns void

onPointerDown

  • onPointerDown(event: Event): void

removeListeners

Private removeMouseMoveListener

  • removeMouseMoveListener(): void
  • 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