Skip to content

Focus

Overview

A scenery-internal type for tracking what currently has focus in Display. If a focused Node is shared between two Displays, it is possible that only one Node may have focus between the two displays. This is especially true for DOM focus since only one element can have DOM focus at a time.

@author Jesse Greenberg

Class Focus

import { Focus } from 'scenerystack/scenery';

Constructor

new Focus( display : Display, trail : Trail )

Instance Methods

Instance Properties

trail : Trail

(readonly)

The trail to the focused Node.

display : Display

(readonly)

The Display containing the Trail to the focused Node.

Static Properties

FocusIO : IOType

(readonly)

Source Code

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