Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • FocusPicker

Index

Constructors

constructor

Properties

container

container: HTMLElement

focus

focus: Focus

img

img: HTMLImageElement

Private isDragging

isDragging: boolean

Private options

retina

retina: HTMLImageElement

Methods

Private calculateOffsetFromFocus

  • calculateOffsetFromFocus(): object

Private handleMove

  • handleMove(e: MouseEvent | TouchEvent): void

setFocus

  • setFocus(focus: Focus): void

Private startDragging

  • startDragging(e: MouseEvent | TouchEvent): void

Private stopDragging

  • stopDragging(): void

Private updateCoordinates

  • updateCoordinates(clientX: number, clientY: number): void

Private updateRetinaPosition

  • updateRetinaPosition(offsets: object): void
  • Parameters

    • offsets: object
      • offsetX: number
      • offsetY: number

    Returns void

Private updateRetinaPositionFromFocus

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