Skip to main content
Defined in: packages/common/src/viewport/viewport.type.ts:17 Viewport settings a client application is created with.

Remarks

When width/height are omitted, the design resolution is 1920x1080.

Properties

background?

optional background?: string
Defined in: packages/common/src/viewport/viewport.type.ts:42 CSS background of the container, visible behind the canvas and in the letterbox bars.

Default


fit?

optional fit?: ViewportFit
Defined in: packages/common/src/viewport/viewport.type.ts:35 How the design resolution is fitted into the container.

Default


height?

optional height?: number
Defined in: packages/common/src/viewport/viewport.type.ts:29 Design (game-unit) height.

Default


width?

optional width?: number
Defined in: packages/common/src/viewport/viewport.type.ts:23 Design (game-unit) width.

Default