Skip to content

Commit

Permalink
rename SPACING constants
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Malley <[email protected]>
  • Loading branch information
pixelzoom committed Oct 16, 2018
1 parent 92f1c43 commit 0302f47
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions js/standardform/view/RootsNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ define( require => {
const NullableIO = require( 'ifphetio!PHET_IO/types/NullableIO' );

// constants
const X_SPACING = 15; // between root point and its coordinates display
const COORDINATES_X_SPACING = 15; // between root point and its coordinates display

class RootsNode extends Node {

Expand Down Expand Up @@ -115,9 +115,9 @@ define( require => {
}

// position coordinates to left and right of roots
leftCoordinatesNode.right = -( options.radius + X_SPACING );
leftCoordinatesNode.right = -( options.radius + COORDINATES_X_SPACING );
leftCoordinatesNode.centerY = 0;
rightCoordinatesNode.left = options.radius + X_SPACING;
rightCoordinatesNode.left = options.radius + COORDINATES_X_SPACING;
rightCoordinatesNode.centerY = 0;
}
} );
Expand Down
6 changes: 3 additions & 3 deletions js/standardform/view/VertexNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ define( require => {
const NullableIO = require( 'ifphetio!PHET_IO/types/NullableIO' );

// constants
const Y_SPACING = 5;
const COORDINATES_Y_SPACING = 5;

class VertexNode extends Node {

Expand Down Expand Up @@ -85,10 +85,10 @@ define( require => {
coordinatesProperty.link( coordinates => {
coordinatesNode.centerX = pointNode.centerX;
if ( quadraticProperty.value.a > 0 ) {
coordinatesNode.top = pointNode.bottom + Y_SPACING;
coordinatesNode.top = pointNode.bottom + COORDINATES_Y_SPACING;
}
else {
coordinatesNode.bottom = pointNode.top - Y_SPACING;
coordinatesNode.bottom = pointNode.top - COORDINATES_Y_SPACING;
}
} );

Expand Down

0 comments on commit 0302f47

Please sign in to comment.