Skip to content

WireNode

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/WireNode.ts for the most up-to-date information.

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.