Class: Controllable

ImageDisplay.Controllable

new Controllable(object, zoomSpeed, zoomMax, zoomMin)

A controllable DOM element.
Parameters:
Name Type Description
object HTMLElement The DOM element to be made controllable.
zoomSpeed Number The speed with which the image should zoom.
zoomMax Number The maximum zoom level.
zoomMin Number The minimum zoom level.
Source:

Methods

init()

Initialize the object as a controllable.
Source:

reset()

Reset the pan and zoom.
Source:

startAnimation()

Start the controllable animations.
Source:

stopAnimation()

Stop the controllable animations.
Source: