Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelzoom committed Aug 10, 2017
2 parents 5524131 + 3444c5a commit ccc99ab
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion js/common/view/TrajectoryNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ define( function( require ) {
this.addChild( dotsLayer );
this.addChild( projectileNodesLayer );

var apexDot = null;

var viewLastPosition = null;

// add view nodes based on new dataPoints added
Expand Down Expand Up @@ -103,7 +105,7 @@ define( function( require ) {

// draw green dot if apex
if ( addedPoint.apex ) {
var apexDot = new Circle( DOT_RADIUS, { x: viewAddedPosition.x, y: viewAddedPosition.y, fill: DOT_GREEN, stroke: DOT_GREEN } );
apexDot = new Circle( DOT_RADIUS + 0.3, { x: viewAddedPosition.x, y: viewAddedPosition.y, fill: DOT_GREEN, stroke: 'black', lineWidth: 0.3 } );
dotsLayer.addChild( apexDot );
}
}
Expand Down Expand Up @@ -147,6 +149,9 @@ define( function( require ) {

dotsShape = new Shape();
dotsPath.shape = dotsShape;
if ( apexDot ) {
apexDot.dispose();
}

viewLastPosition = null;

Expand Down
1 change: 1 addition & 0 deletions js/intro/view/IntroProjectilePanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ define( function( require ) {
*/
function createParameterControlBox( labelString, unitsString, valueProperty ) {
var parameterLabel = new Text( '', parameterLabelOptions );
parameterLabel.setBoundsMethod( 'accurate' );

valueProperty.link( function( value ) {
var valueReadout = unitsString ? StringUtils.fillIn( pattern0Value1UnitsWithSpaceString, {
Expand Down

0 comments on commit ccc99ab

Please sign in to comment.