Skip to content
Chris Hafey edited this page May 6, 2014 · 2 revisions

The getViewport api call is used to access the viewport properties for an enabled image.

function getViewport(element);

Parameters:

  • element - the DOM element to enable

Returns: A viewport object