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. |
Members
(static) ZOOM_MAX
The maximum zoom level.
(static) ZOOM_MIN
The minimum zoom level.
(static) ZOOM_SPEED
The speed with which scrolling zooms the image.
Methods
hide()
Hide the viewerImage.
init()
Initialize the object. Adds a click event listener to the
galleryImage.
show()
Show the viewerImage.