Skip to content

WireNode

Overview

View that typically connects a sensor (like a ProbeNode) to its body (where the readout value or chart appears).

@author Sam Reid (PhET Interactive Simulations)

Class WireNode

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

Constructor

new WireNode( position1Property : TReadOnlyProperty<Vector2>, normal1Property : TReadOnlyProperty<Vector2>, position2Property : TReadOnlyProperty<Vector2>, normal2Property : TReadOnlyProperty<Vector2>, options? : WireNodeOptions )

Instance Methods

dispose()

Type WireNodeOptions

import type { WireNodeOptions } from 'scenerystack/scenery-phet';

PathOptions

Source Code

See the source for WireNode.ts in the scenery-phet repository.