Skip to content

Commit

Permalink
Rename DOT/Util and SCENERY/Util to Utils, see phetsims/tasks#966
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Dec 30, 2019
1 parent c1ea45e commit 4fb4ed9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions js/common/view/NumberNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ define( require => {
const merge = require( 'PHET_CORE/merge' );
const reactantsProductsAndLeftovers = require( 'REACTANTS_PRODUCTS_AND_LEFTOVERS/reactantsProductsAndLeftovers' );
const Text = require( 'SCENERY/nodes/Text' );
const Util = require( 'DOT/Util' );
const Utils = require( 'DOT/Utils' );

/**
* @param {Property.<number>} numberProperty
Expand All @@ -32,7 +32,7 @@ define( require => {

// @private update the displayed number
this.numberPropertyObserver = function( value ) {
self.text = Util.toFixed( value, options.decimalPlaces );
self.text = Utils.toFixed( value, options.decimalPlaces );
};
this.numberProperty = numberProperty; // @private
this.numberProperty.link( this.numberPropertyObserver ); // must be unlinked in dispose
Expand Down
4 changes: 2 additions & 2 deletions js/game/view/RandomBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ define( require => {
const Rectangle = require( 'SCENERY/nodes/Rectangle' );
const RPALColors = require( 'REACTANTS_PRODUCTS_AND_LEFTOVERS/common/RPALColors' );
const SubstanceIcon = require( 'REACTANTS_PRODUCTS_AND_LEFTOVERS/common/view/SubstanceIcon' );
const Util = require( 'DOT/Util' );
const Utils = require( 'DOT/Utils' );
const Vector2 = require( 'DOT/Vector2' );

/**
Expand Down Expand Up @@ -53,7 +53,7 @@ define( require => {
* Compute the size of the grid needed to accommodate the maximum number of nodes.
* Assume that the box is square-ish, so can have the same number of rows and columns.
*/
const rows = Util.roundSymmetric( Math.sqrt( substances.length * options.maxQuantity ) );
const rows = Utils.roundSymmetric( Math.sqrt( substances.length * options.maxQuantity ) );
const columns = rows;

// Compute positions in the grid, this is our 'pool' of positions.
Expand Down

0 comments on commit 4fb4ed9

Please sign in to comment.