Constructors
constructor
- new default(): default
-
Accessors
scaleNativeFactor
- get scaleNativeFactor(): number
-
Returns number
Methods
apply
- apply(value: number, floor?: number | "pixel"): number
-
Parameters
-
value: number
-
Optional
floor: number | "pixel"
Returns number
checkScaleFactor
- checkScaleFactor(): void
-
Returns void
get
- get(): number
-
Returns number
getClamped
- getClamped(scale?: number): number
-
Returns number
getFloor
- getFloor(floor?: number): number
-
Returns number
getMaximum
- getMaximum(): number
-
Returns number
getMinimum
- getMinimum(): number
-
Returns number
getUserSetting
- getUserSetting(): number
-
Returns number
scaleDown
- scaleDown(): boolean
-
Returns boolean
scaleUp
- scaleUp(): boolean
-
Returns boolean
setUserSetting
- setUserSetting(scale: number): void
-
Returns void
update
- update(force?: boolean): void
-
Returns void
Returns the current UI scale (after being clamped by min & max).