Skip to content

DisplayGlobals

Under Construction

This documentation is auto-generated, and is a work in progress. Please see the source code at https://github.com/phetsims/scenery/blob/main/js/display/DisplayGlobals.ts for the most up-to-date information.

Overview

Isolated globals for Display, to avoid circular dependencies.

@author Jonathan Olson <jonathan.olson@colorado.edu>

Class DisplayGlobals

import { DisplayGlobals } from 'scenerystack/scenery';

Static Properties

userGestureEmitter : TEmitter

Fires when we detect an input event that would be considered a "user gesture" by Chrome, so that we can trigger browser actions that are only allowed as a result. See https://github.com/phetsims/scenery/issues/802 and https://github.com/phetsims/vibe/issues/32 for more information.

inputListeners : TInputListener[]

Listeners that will be called for every event on ANY Display, see https://github.com/phetsims/scenery/issues/1149. Do not directly modify this!

Source Code

See the source for DisplayGlobals.ts in the scenery repository.