Skip to content

Commit

Permalink
var -> const using eslint auto fix, phetsims/tasks#1012
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Sep 19, 2019
1 parent a89cca0 commit 2d800f0
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions js/common/view/LevelSupportColumnNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,17 @@ define( require => {
*/
function LevelSupportColumnNode( modelViewTransform, levelSupportColumn, columnState ) {
Node.call( this );
var self = this;
const self = this;

// Create and add the main body of the column.
var transformedColumnShape = modelViewTransform.modelToViewShape( levelSupportColumn.shape );
var mainBodyGradient = new LinearGradient( transformedColumnShape.bounds.minX, 0, transformedColumnShape.bounds.maxX, 0 ).
const transformedColumnShape = modelViewTransform.modelToViewShape( levelSupportColumn.shape );
const mainBodyGradient = new LinearGradient( transformedColumnShape.bounds.minX, 0, transformedColumnShape.bounds.maxX, 0 ).
addColorStop( 0, 'rgb( 150, 150, 150 )' ).
addColorStop( 0.25, 'rgb( 230, 230, 230 )' ).
addColorStop( 0.65, 'rgb( 150, 150, 150 )' ).
addColorStop( 1, 'rgb( 200, 200, 200 )' );

var columnNode = new Path( transformedColumnShape,
const columnNode = new Path( transformedColumnShape,
{
fill: mainBodyGradient,
stroke: 'black',
Expand All @@ -43,14 +43,14 @@ define( require => {
self.addChild( columnNode );

// Create and add the column support.
var supportWidth = transformedColumnShape.bounds.width * 1.3; // Empirically determined.
var supportHeight = transformedColumnShape.bounds.height * 0.15; // Empirically determined.
var supportGradient = new LinearGradient( transformedColumnShape.bounds.centerX - supportWidth / 2, 0, transformedColumnShape.bounds.centerX + supportWidth / 2, 0 ).
const supportWidth = transformedColumnShape.bounds.width * 1.3; // Empirically determined.
const supportHeight = transformedColumnShape.bounds.height * 0.15; // Empirically determined.
const supportGradient = new LinearGradient( transformedColumnShape.bounds.centerX - supportWidth / 2, 0, transformedColumnShape.bounds.centerX + supportWidth / 2, 0 ).
addColorStop( 0, 'rgb( 150, 150, 150 )' ).
addColorStop( 0.25, 'rgb( 210, 210, 210 )' ).
addColorStop( 0.65, 'rgb( 150, 150, 150 )' ).
addColorStop( 1, 'rgb( 170, 170, 170 )' );
var columnSupportNode = new Rectangle(
const columnSupportNode = new Rectangle(
transformedColumnShape.bounds.centerX - supportWidth / 2,
transformedColumnShape.bounds.maxY - supportHeight,
supportWidth,
Expand Down

0 comments on commit 2d800f0

Please sign in to comment.