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¶
Constructor¶
new BackgroundNode( node : Node, providedOptions? : BackgroundNodeOptions )¶
Instance Methods¶
Instance Properties¶
background : Rectangle¶
(readonly)
Type BackgroundNodeOptions¶
- xMargin?: number
- yMargin?: number
- rectangleOptions?: RectangleOptions
- & StrictOmit<NodeOptions, "children">
Source Code¶
See the source for BackgroundNode.ts in the scenery-phet repository.