Skip to content

PlateNode

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/capacitor/PlateNode.js for the most up-to-date information.

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.