Skip to content

Commit

Permalink
add missing param to derivation function, #128
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelzoom committed Mar 26, 2024
1 parent 59baa45 commit 839fdd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/common/model/FieldMeasurementTool.ts
Original file line number Diff line number Diff line change
@@ -43,7 +43,7 @@ export default class FieldMeasurementTool extends FELMovable {
// This needs to be a new Vector2 instance, so do not pass an output vector to magnet.getFieldVector.
this.fieldVectorProperty = new DerivedProperty(
[ this.positionProperty, magnet.positionProperty, magnet.rotationProperty, magnet.strengthProperty ],
( position, rotation, strength ) => magnet.getFieldVector( position ), {
( toolPosition, magnetPosition, rotation, strength ) => magnet.getFieldVector( toolPosition ), {
units: 'G',
tandem: options.tandem.createTandem( 'fieldVectorProperty' ),
phetioValueType: Vector2.Vector2IO,

0 comments on commit 839fdd5

Please sign in to comment.