Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • FocusedImage

Index

Constructors

constructor

Properties

container

container: HTMLElement

debounceApplyShift

debounceApplyShift: function

Type declaration

    • (): void
    • Returns void

focus

focus: Focus

Private imageNode

imageNode: HTMLImageElement

img

img: HTMLImageElement

listening

listening: boolean = false

options

resizeListenerObject

resizeListenerObject: HTMLObjectElement

Methods

applyShift

  • applyShift(): boolean

Private calcShift

  • calcShift(conToImageRatio: number, containerSize: number, imageSize: number, focusSize: number, toMinus?: boolean): number
  • Parameters

    • conToImageRatio: number
    • containerSize: number
    • imageSize: number
    • focusSize: number
    • Optional toMinus: boolean

    Returns number

setFocus

  • setFocus(focus: Focus): void

startListening

  • startListening(): void

stopListening

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