Remarks
Whenwidth/height are omitted, the design resolution is 1920x1080.
Properties
background?
Defined in: packages/common/src/viewport/viewport.type.ts:42 CSS background of the container, visible behind the canvas and in the letterbox bars.optionalbackground?:string
Default
fit?
Defined in: packages/common/src/viewport/viewport.type.ts:35 How the design resolution is fitted into the container.optionalfit?:ViewportFit
Default
height?
Defined in: packages/common/src/viewport/viewport.type.ts:29 Design (game-unit) height.optionalheight?:number
Default
width?
Defined in: packages/common/src/viewport/viewport.type.ts:23 Design (game-unit) width.optionalwidth?:number