BackgroundNode¶
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.