Skip to content

BackgroundNode

Under Construction

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

Overview

BackgroundNode puts a Node on a rectangular background, dynamically sized to fit the Node.

@author Chris Malley (PixelZoom, Inc.) @author Michael Kauzmann (PhET Interactive Simulations)

Class BackgroundNode

import { BackgroundNode } from 'scenerystack/scenery-phet';

Constructor

new BackgroundNode( node : Node, providedOptions? : BackgroundNodeOptions )

Instance Methods

Instance Properties

background : Rectangle

(readonly)

Type BackgroundNodeOptions

import type { BackgroundNodeOptions } from 'scenerystack/scenery-phet';

Source Code

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