DOM#DOM
  • References/Game Development/Phaser/System/DOM

new DOM() DOM utility class. Provides a useful Window and Element functions as well as cross-browser compatibility buffer.

2025-01-10 15:47:30
Device#linux
  • References/Game Development/Phaser/System/Device

linux : boolean Is running on linux? Source code:

2025-01-10 15:47:30
Device#littleEndian
  • References/Game Development/Phaser/System/Device

littleEndian : boolean Is the device big or little endian? (only detected if the browser supports TypedArrays)

2025-01-10 15:47:30
Device#ejecta
  • References/Game Development/Phaser/System/Device

ejecta : boolean Is the game running under Ejecta? Source code:

2025-01-10 15:47:30
DOM.inLayoutViewport()
  • References/Game Development/Phaser/System/DOM

<static> inLayoutViewport(element, cushion) → {boolean}

2025-01-10 15:47:30
Device#arora
  • References/Game Development/Phaser/System/Device

arora : boolean Set to true if running in Arora. Source code:

2025-01-10 15:47:30
Device#canvas
  • References/Game Development/Phaser/System/Device

canvas : boolean Is canvas available? Source code:

2025-01-10 15:47:30
DOM.getBounds()
  • References/Game Development/Phaser/System/DOM

<static> getBounds(element, cushion) → {Object | boolean}

2025-01-10 15:47:30
Device#mobileSafari
  • References/Game Development/Phaser/System/Device

mobileSafari : boolean Set to true if running in Mobile Safari. Source code:

2025-01-10 15:47:30
DOM.layoutBounds
  • References/Game Development/Phaser/System/DOM

<static, readonly> layoutBounds : Phaser.Rectangle

2025-01-10 15:47:30