Class: Image

ImageDisplay.Image

new Image(galleryImage, viewerImage)

An image to be displayed by the image viewer interface.
Parameters:
Name Type Description
galleryImage HTMLElement The image displayed on the page that should display the viewerImage when clicked.
viewerImage HTMLElement The image to be displayed inside the viewer.
Source:

Members

(static) ZOOM_MAX

The maximum zoom level.
Source:

(static) ZOOM_MIN

The minimum zoom level.
Source:

(static) ZOOM_SPEED

The speed with which scrolling zooms the image.
Source:

Methods

hide()

Hide the viewerImage.
Source:

init()

Initialize the object. Adds a click event listener to the galleryImage.
Source:

show()

Show the viewerImage.
Source: