Skip to main content

Enumeration: RenderMode

viewer.RenderMode

Enumeration for render mode

readonly

description Modes for specifying how rendering is done in the viewer. All modes preserves the original aspect ratio of the images.

Enumeration members#

Fill#

• Fill = 1

Fills the viewer by cropping content.

description Cropping is done either in horizontal or vertical direction depending on the aspect ratio relation between the image and the viewer.

Defined in#

render/RenderMode.ts:31


Letterbox#

• Letterbox = 0

Displays all content within the viewer.

description Black bars shown on both sides of the content. Bars are shown either below and above or to the left and right of the content depending on the aspect ratio relation between the image and the viewer.

Defined in#

render/RenderMode.ts:21