Skip to content
InterfaceBrowser DX & Viewport@public

FlxBrowserScaleOptions

Configuration for the browser canvas presentation policy.

ts
export interface FlxBrowserScaleOptions

Properties

PropertyModifiersTypeDescription
alignX-numberHorizontal placement inside the host, from 0 (left) to 1 (right).
alignY-numberVertical placement inside the host, from 0 (top) to 1 (bottom).
mode-FlxBrowserScaleModeHow the logical canvas is fitted into its host. Defaults to fit.
pixelated-booleanForce nearest-neighbor browser scaling. Defaults to true for integer mode.
safePadding-FlxBrowserSafePaddingAdditional logical padding applied to the recommended HUD boundary.
useSafeAreaInsets-booleanInclude CSS environment safe-area insets. Defaults to true.

Released under the MIT License.