Skip to content

FocusDisplayedController

Overview

Responsible for setting the provided focusProperty to null when the Focused node either becomes invisible on the Display or is removed from the scene graph. It uses a TrailVisibilityTracker to determine if any Node in the Trail has become invisible.

Meant to be scenery-internal and used by FocusManager.

@author Jesse Greenberg

Class FocusDisplayedController

import { FocusDisplayedController } from 'scenerystack/scenery';

Constructor

new FocusDisplayedController( focusProperty : TProperty<Focus | null> )

Instance Methods

dispose()

Source Code

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