Skip to content

ScreenScalingData

Defined in: camera/ScreenScaling.ts:30

designHeight: number

Defined in: camera/ScreenScaling.ts:34

Design (reference) resolution height in px.


designWidth: number

Defined in: camera/ScreenScaling.ts:32

Design (reference) resolution width in px — the horizontal reference the fit uses.


matchWidthOrHeight: number

Defined in: camera/ScreenScaling.ts:38

Match-mode blend 0..1 (0 = fit width, 1 = fit height); ignored for other modes.


optional renderPolicy?: RenderResolution

Defined in: camera/ScreenScaling.ts:45

Whether the scene renders at its own resolution and is then scaled to the surface, or straight to the surface. See RenderResolution. Optional because a project file written before it existed must still read; absent means Surface, which is the behaviour every project already had.


scaleMode: number

Defined in: camera/ScreenScaling.ts:36

A CanvasScaleMode (FixedWidth=0 … Match=4), or SCREEN_FIT_OFF (-1).