Skip to content

BarrierRectangle

Overview

Semi-transparent black barrier used to block input events when a dialog (or other popup) is present, and fade out the background.

@author Michael Kauzmann (PhET Interactive Simulations)

Class BarrierRectangle

import { BarrierRectangle } from 'scenerystack/sim';

Constructor

new BarrierRectangle( modalNodeStack : ObservableArray<PopupableNode>, providedOptions? : BarrierRectangleOptions )

Instance Methods

dispose()

Type BarrierRectangleOptions

import type { BarrierRectangleOptions } from 'scenerystack/sim';

PlaneOptions

Source Code

See the source for BarrierRectangle.ts in the scenery-phet repository.