Canvas UI scaling options used to keep controls and helpers readable when the canvas is visually shrunk.

interface AsukaUiScalingOptions {
    baseControlSize?: number;
    baseTouchControlSize?: number;
    keepControlsReadable?: boolean;
    keepHelpersReadable?: boolean;
    maxCompensationMultiplier?: number;
    minHelperStrokeWidth?: number;
}

Properties

baseControlSize?: number

Base custom control size before visual compensation.

baseTouchControlSize?: number

Base touch target size before visual compensation.

keepControlsReadable?: boolean

Keep Fabric controls readable when the canvas is visually shrunk with CSS.

keepHelpersReadable?: boolean

Keep helper lines and technical overlays readable when the canvas is visually shrunk with CSS.

maxCompensationMultiplier?: number

Maximum multiplier applied when the canvas becomes very small.

minHelperStrokeWidth?: number

Minimum helper stroke width after compensation.