We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
The getDefaultViewport api call is an internal API that returns a viewport object with reasonable defaults given a canvas and image object
function getDefaultViewport(canvas, image);
Parameters:
Returns: viewport object with the image centered and scaled to fit all pixels