Skip to main content

ScreenOptions

Index

Properties

optionalantialiasing

antialiasing?: boolean

Optionally set antialiasing, defaults to true. If set to true, images will be smoothed

browser

browser: BrowserEvents

Browser abstraction

canvas

canvas: HTMLCanvasElement

Canvas element to build a screen on

optionalcanvasImageRendering

canvasImageRendering?: auto | pixelated

Optionally set the image rendering CSS hint on the canvas element, default is auto

context

Graphics context for the screen

optionaldisplayMode

displayMode?: DisplayMode

Set the display mode of the screen, by default DisplayMode.Fixed.

optionalpixelRatio

pixelRatio?: number

Optionally override the pixel ratio to use for the screen, otherwise calculated automatically from the browser

optionalresolution

resolution?: Resolution

Optionally specify the actual pixel resolution in width/height pixels (also known as logical resolution), by default the resolution will be the same as the viewport. Resolution will be overridden by DisplayMode.FillContainer and DisplayMode.FillScreen.

viewport

Visual viewport size in css pixel, if resolution is not specified it will be the same as the viewport