From 2d800f09ff557628218c11e1398369a9641ffa3e Mon Sep 17 00:00:00 2001 From: zepumph Date: Thu, 19 Sep 2019 14:25:36 -0800 Subject: [PATCH] var -> const using eslint auto fix, https://github.com/phetsims/tasks/issues/1012 --- js/common/view/LevelSupportColumnNode.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/js/common/view/LevelSupportColumnNode.js b/js/common/view/LevelSupportColumnNode.js index 8d492f0a..41ddc1d1 100644 --- a/js/common/view/LevelSupportColumnNode.js +++ b/js/common/view/LevelSupportColumnNode.js @@ -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', @@ -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,