ScreenScalingData
此内容尚不支持你的语言。
Defined in: camera/ScreenScaling.ts:26
Properties
Section titled “Properties”designHeight
Section titled “designHeight”designHeight:
number
Defined in: camera/ScreenScaling.ts:30
Design (reference) resolution height in px.
designWidth
Section titled “designWidth”designWidth:
number
Defined in: camera/ScreenScaling.ts:28
Design (reference) resolution width in px — the horizontal reference the fit uses.
matchWidthOrHeight
Section titled “matchWidthOrHeight”matchWidthOrHeight:
number
Defined in: camera/ScreenScaling.ts:34
Match-mode blend 0..1 (0 = fit width, 1 = fit height); ignored for other modes.
scaleMode
Section titled “scaleMode”scaleMode:
number
Defined in: camera/ScreenScaling.ts:32
A CanvasScaleMode (FixedWidth=0 … Match=4), or SCREEN_FIT_OFF (-1).