Skip to content
chafey edited this page Mar 23, 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 to enable
  • viewport - an object with viewport properties

Returns: Nothing

TODO: Discuss how invalid viewport properties are handled