Skip to content

Commit

Permalink
Uninstrument tick nodes, see phetsims/tandem#87
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Jan 23, 2021
1 parent c1764f0 commit ef1e388
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions js/molarity/view/BeakerNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ class BeakerNode extends Node {
let tickLabel;
let tickLabelNode;

const tickMarkNodeGroupTandem = tandem.createGroupTandem( 'tickMarkNode' );
const tickLabelNodeGroupTandem = tandem.createGroupTandem( 'tickLabelNode' );

for ( let i = 1; i <= numberOfTicks; i++ ) {
Expand All @@ -120,8 +119,7 @@ class BeakerNode extends Node {
tickMarkShape = new Shape().ellipticalArc( cylinderSize.width / 2, y, cylinderSize.width / 2, cylinderEndHeight / 2, 0, Utils.toRadians( 165 ), Utils.toRadians( 135 ), true );
tickMarkNode = new Path( tickMarkShape, {
stroke: TICK_COLOR,
lineWidth: 2,
tandem: tickMarkNodeGroupTandem.createNextTandem()
lineWidth: 2
} );
tickMarksParent.addChild( tickMarkNode );

Expand All @@ -146,8 +144,7 @@ class BeakerNode extends Node {
tickMarkShape = new Shape().ellipticalArc( cylinderSize.width / 2, y, cylinderSize.width / 2, cylinderEndHeight / 2, 0, Utils.toRadians( 165 ), Utils.toRadians( 150 ), true );
tickMarkNode = new Path( tickMarkShape, {
stroke: TICK_COLOR,
lineWidth: 2,
tandem: tickMarkNodeGroupTandem.createNextTandem()
lineWidth: 2
} );
tickMarksParent.addChild( tickMarkNode );
}
Expand Down

0 comments on commit ef1e388

Please sign in to comment.