ConductivityTesterNode¶
Overview¶
Conductivity tester. Light bulb connected to a battery, with draggable probes. When the probes are both immersed in solution, the circuit is completed, and the bulb glows.
@author Andrey Zelenkov (Mlearner) @author Chris Malley (PixelZoom, Inc.)
Class ConductivityTesterNode¶
Constructor¶
new ConductivityTesterNode( brightnessProperty : TReadOnlyProperty<number>, positionProperty : TProperty<Vector2>, positiveProbePositionProperty : TProperty<Vector2>, negativeProbePositionProperty : TProperty<Vector2>, providedOptions? : ConductivityTesterNodeOptions )¶
Instance Methods¶
Type ConductivityTesterNodeOptions¶
- modelViewTransform?: ModelViewTransform2
- bulbImageScale?: number
- batteryDCell_pngScale?: number
- probeSize?: Dimension2
common to both probes - probeLineWidth?: number
- probeDragYRange?: Range | null
- probeCursor?: string
- positiveProbeFill?: TColor
positive probe - positiveProbeStroke?: TColor
- positiveLabelFill?: TColor
- negativeProbeFill?: TColor
negative probe - negativeProbeStroke?: TColor
- negativeLabelFill?: TColor
- wireStroke?: TColor
wires - wireLineWidth?: number
- bulbToBatteryWireLength?: number
- shortCircuitFont?: Font
short-circuit indicator - shortCircuitFill?: TColor
- keyboardDragListenerOptions?: StrictOmit<KeyboardDragListenerOptions, "tandem">
- & StrictOmit<NodeOptions, "children"> & PickRequired<NodeOptions, "tandem">
Source Code¶
See the source for ConductivityTesterNode.ts in the scenery-phet repository.