From ee547194db68c12bd97877d0981075b8b7164b34 Mon Sep 17 00:00:00 2001 From: samreid Date: Mon, 30 Dec 2019 09:18:10 -0700 Subject: [PATCH] Rename DOT/Util and SCENERY/Util to Utils, see https://github.com/phetsims/tasks/issues/966 --- js/ScoreDisplayLabeledNumber.js | 4 ++-- js/ScoreDisplayNumberAndStar.js | 4 ++-- js/demo/FiniteChallengesScreenView.js | 10 +++++----- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/js/ScoreDisplayLabeledNumber.js b/js/ScoreDisplayLabeledNumber.js index 7bc3826..9f0e57e 100644 --- a/js/ScoreDisplayLabeledNumber.js +++ b/js/ScoreDisplayLabeledNumber.js @@ -16,7 +16,7 @@ define( require => { const StatusBar = require( 'VEGAS/StatusBar' ); const StringUtils = require( 'PHETCOMMON/util/StringUtils' ); const Text = require( 'SCENERY/nodes/Text' ); - const Util = require( 'DOT/Util' ); + const Utils = require( 'DOT/Utils' ); const vegas = require( 'VEGAS/vegas' ); // strings @@ -46,7 +46,7 @@ define( require => { // Update number displayed based on score. const scorePropertyListener = function( score ) { scoreDisplayText.text = StringUtils.fillIn( patternScoreNumberString, { - score: Util.toFixed( score, options.scoreDecimalPlaces ) + score: Utils.toFixed( score, options.scoreDecimalPlaces ) } ); }; scoreProperty.link( scorePropertyListener ); diff --git a/js/ScoreDisplayNumberAndStar.js b/js/ScoreDisplayNumberAndStar.js index ef0e3d0..c331c65 100644 --- a/js/ScoreDisplayNumberAndStar.js +++ b/js/ScoreDisplayNumberAndStar.js @@ -17,7 +17,7 @@ define( require => { const StarNode = require( 'SCENERY_PHET/StarNode' ); const StatusBar = require( 'VEGAS/StatusBar' ); const Text = require( 'SCENERY/nodes/Text' ); - const Util = require( 'DOT/Util' ); + const Utils = require( 'DOT/Utils' ); const vegas = require( 'VEGAS/vegas' ); /** @@ -57,7 +57,7 @@ define( require => { children.push( new StarNode( merge( { value: 0 }, options.starNodeOptions ) ) ); } else { - children.push( new Text( Util.toFixed( score, options.scoreDecimalPlaces ), { + children.push( new Text( Utils.toFixed( score, options.scoreDecimalPlaces ), { font: options.font, fill: options.textFill } ) ); diff --git a/js/demo/FiniteChallengesScreenView.js b/js/demo/FiniteChallengesScreenView.js index 24e0ebf..2e2a1b6 100644 --- a/js/demo/FiniteChallengesScreenView.js +++ b/js/demo/FiniteChallengesScreenView.js @@ -23,7 +23,7 @@ define( require => { const RectangularPushButton = require( 'SUN/buttons/RectangularPushButton' ); const ScreenView = require( 'JOIST/ScreenView' ); const Text = require( 'SCENERY/nodes/Text' ); - const Util = require( 'DOT/Util' ); + const Utils = require( 'DOT/Utils' ); const VBox = require( 'SCENERY/nodes/VBox' ); const vegas = require( 'VEGAS/vegas' ); @@ -67,7 +67,7 @@ define( require => { new Text( 'Level: ', { font: DEFAULT_FONT } ), new HSlider( levelProperty, new Range( 1, 5 ), { constrainValue: function( value ) { - return Util.roundSymmetric( value ); + return Utils.roundSymmetric( value ); } } ) ] @@ -78,7 +78,7 @@ define( require => { new Text( 'Challenge: ', { font: DEFAULT_FONT } ), new HSlider( challengeIndexProperty, new Range( 0, NUMBER_OF_CHALLENGES - 1 ), { constrainValue: function( value ) { - return Util.roundSymmetric( value ); + return Utils.roundSymmetric( value ); } } ) ] @@ -89,7 +89,7 @@ define( require => { new Text( 'Number of challenges: ', { font: DEFAULT_FONT } ), new HSlider( numberOfChallengesProperty, new Range( 1, NUMBER_OF_CHALLENGES ), { constrainValue: function( value ) { - return Util.roundSymmetric( value ); + return Utils.roundSymmetric( value ); } } ) ] @@ -109,7 +109,7 @@ define( require => { new Text( 'Elapsed time: ', { font: DEFAULT_FONT } ), new HSlider( elapsedTimeProperty, new Range( 0, 1000 ), { constrainValue: function( value ) { - return Util.roundSymmetric( value ); + return Utils.roundSymmetric( value ); } } ) ]