Skip to content

Commit

Permalink
sync marker line stroke with baseColorProperty, see phetsims/coulombs…
Browse files Browse the repository at this point in the history
  • Loading branch information
mbarlow12 committed Nov 29, 2018
1 parent 7011617 commit 32c8e92
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions js/view/ISLCObjectNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,12 +216,13 @@ define( function( require ) {
y: 0.5,
tandem: tandem.createTandem( 'markerLineShadow' )
} ) );
this.addChild( new Path( markerLineShape, {
var markerLineShapeTop = new Path( markerLineShape, {
stroke: options.arrowColor,
lineDash: [ 4, 4 ],
lineWidth: 2,
tandem: tandem.createTandem( 'markerLine' )
} ) );
} );
this.addChild( markerLineShapeTop );

var clickOffset;

Expand Down Expand Up @@ -269,6 +270,9 @@ define( function( require ) {

object.baseColorProperty.link( function( baseColor ) {
self.updateGradient( baseColor );
if ( options.attractNegative ) {
markerLineShapeTop.stroke = baseColor;
}
} );

this.redrawForce();
Expand Down

0 comments on commit 32c8e92

Please sign in to comment.