Schema:MultimediaViewerDimensions

Revision 10014238
description"Holds information about the relevant dimensions (screen size, viewport size, image size...) for a given image request."
properties
screenWidth
description"Width of the screen, in pixels. Depending on the browser, this might be device pixels or CSS pixels, and might or might not be affected by the zoom. Fun!"
requiredtrue
type"integer"
screenHeight
description"Height of the screen, in pixels"
requiredtrue
type"integer"
viewportWidth
description"Width of the viewport (drawable area of the browser window), in CSS pixels"
requiredtrue
type"integer"
viewportHeight
description"Height of the viewport, in pixels"
requiredtrue
type"integer"
canvasWidth
description"Width of the are used by MediaViewer to display the image"
requiredtrue
type"integer"
canvasHeight
description"Height of the are used by MediaViewer to display the image"
requiredtrue
type"integer"
devicePixelRatio
description"Number of device pixels per CSS pixel"
requiredtrue
type"number"
imgWidth
description"Width of the image that's required, in CSS pixels"
requiredtrue
type"integer"
thumbWidth
description"Width of the thumbnail that's requested, (i.e. the bucket size), in image pixels"
requiredtrue
type"integer"
imageAspectRatio
description"Image aspect ratio (width / height)"
requiredtrue
type"number"
context
description"Reason for requesting the image"
requiredtrue
type"string"
enum
"show"
"resize"
"preload"
samplingFactor
type"integer"
requiredtrue
description"Sampling factor"