Skip to content
chafey edited this page Mar 24, 2014 · 2 revisions

The setViewport api call is used to modify Viewport properties for an enabled element. Calling this method causes the image to be updated to reflect the changes.

function setViewport(element, viewport);

Parameters:

  • element - the DOM element of an enabled element to set the viewport of
  • viewport - an object with viewport properties

Returns: Nothing

TODO: Discuss how invalid viewport properties are handled