getViewport api - cornerstonejs/cornerstone GitHub Wiki
The getViewport api call is used to access the viewport properties for an enabled image.
function getViewport(element);
Parameters:
- element - the DOM element to get the viewport from
Returns: A viewport object