Skip to content

PlateNode

Overview

Visual representation of a capacitor plate.

@author Chris Malley (PixelZoom, Inc.) @author Jesse Greenberg (PhET Interactive Simulations) @author Andrew Adare (PhET Interactive Simulations)

Class PlateNode

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

Constructor

new PlateNode( capacitor, modelViewTransform, polarity, maxPlateCharge, orientation, includeChargeNode )

Instance Methods

setChargeVisible( visible )

Make the charges on this plate visible. @public

@param {boolean} visible

getMaxBoxNodeBounds()

Get bounds for a plate with maximum width. Useful for layout and bounds calculations. @private

@returns {Bounds3}

Source Code

See the source for PlateNode.js in the scenery-phet repository.