Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ScaleManager

Hierarchy

  • ScaleManager

Index

Methods

get

  • get(): number
  • Returns the current UI scale (after being clamped by min & max).

    Returns number

getFloor

  • getFloor(floor?: number): number
  • Parameters

    • Default value floor: number = 1

    Returns number

getMaximum

  • getMaximum(): number
  • Returns the maximum scale the screen size will allow.

    Returns number

getMinimum

  • getMinimum(): number
  • Returns the minimum scale we allow, 0.5.

    Returns number

getUserSetting

  • getUserSetting(): any
  • Returns the currently "requested" UI scale.

    Returns any

setUserSetting

  • setUserSetting(scale: number): void
  • Requests a new UI scale, a multiplier of the default size.

    Parameters

    • scale: number

    Returns void

update

  • update(): void
  • Updates the UI scale based on the current viewport.

    Returns void

Generated using TypeDoc