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 authored and jessegreenberg committed Apr 21, 2021
1 parent d71d8ab commit eb76ad2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions js/moleculesandlight/view/MoleculesAndLightScreenView.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ define( require => {
const soundManager = require( 'TAMBO/soundManager' );
const SpectrumDiagram = require( 'MOLECULES_AND_LIGHT/moleculesandlight/view/SpectrumDiagram' );
const Text = require( 'SCENERY/nodes/Text' );
const Util = require( 'DOT/Util' );
const Utils = require( 'DOT/Utils' );
const Vector2 = require( 'DOT/Vector2' );
const WavelengthConstants = require( 'MOLECULES_AND_LIGHT/photon-absorption/model/WavelengthConstants' );
const WindowFrameNode = require( 'MOLECULES_AND_LIGHT/moleculesandlight/view/WindowFrameNode' );
Expand Down Expand Up @@ -100,8 +100,8 @@ define( require => {

const modelViewTransform = ModelViewTransform2.createSinglePointScaleInvertedYMapping(
Vector2.ZERO,
new Vector2( Util.roundSymmetric( INTERMEDIATE_RENDERING_SIZE.width * 0.55 ),
Util.roundSymmetric( INTERMEDIATE_RENDERING_SIZE.height * 0.50 ) ),
new Vector2( Utils.roundSymmetric( INTERMEDIATE_RENDERING_SIZE.width * 0.55 ),
Utils.roundSymmetric( INTERMEDIATE_RENDERING_SIZE.height * 0.50 ) ),
0.10 ); // Scale factor - Smaller number zooms out, bigger number zooms in.

// @private - Create the observation window. This will hold all photons, molecules, and photonEmitters for this photon
Expand Down
6 changes: 3 additions & 3 deletions js/moleculesandlight/view/SpectrumDiagram.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ define( require => {
const RichText = require( 'SCENERY/nodes/RichText' );
const Shape = require( 'KITE/Shape' );
const Text = require( 'SCENERY/nodes/Text' );
const Util = require( 'DOT/Util' );
const Utils = require( 'DOT/Utils' );
const Vector2 = require( 'DOT/Vector2' );
const WavelengthSpectrumNode = require( 'SCENERY_PHET/WavelengthSpectrumNode' );
const MoleculesAndLightA11yStrings = require( 'MOLECULES_AND_LIGHT/common/MoleculesAndLightA11yStrings' );
Expand Down Expand Up @@ -235,7 +235,7 @@ define( require => {
addBandLabel( self, 1E19, 1E21, spectrumWindowGammaRayBandLabelString, tandem.createTandem( 'gammaRayBandLabel' ) );

// Add the visible spectrum.
const visSpectrumWidth = Util.roundSymmetric( getOffsetFromFrequency( 790E12 ) - getOffsetFromFrequency( 400E12 ) );
const visSpectrumWidth = Utils.roundSymmetric( getOffsetFromFrequency( 790E12 ) - getOffsetFromFrequency( 400E12 ) );
const wavelengthSpectrumNode = new WavelengthSpectrumNode( { size: new Dimension2( visSpectrumWidth, STRIP_HEIGHT - 2 ) } );
wavelengthSpectrumNode.rotate( Math.PI ); // Flip the visible spectrum so that it is represented correctly in the diagram.
wavelengthSpectrumNode.leftTop = new Vector2( getOffsetFromFrequency( 400E12 ), strip.top + strip.lineWidth );
Expand Down Expand Up @@ -300,7 +300,7 @@ define( require => {
*/
function createExponentialLabel( value ) {

const superscript = Util.roundSymmetric( log10( value ) );
const superscript = Utils.roundSymmetric( log10( value ) );
return new RichText( '10<sup>' + superscript + '</sup>', {
font: TICK_MARK_FONT,
supScale: 0.65,
Expand Down

0 comments on commit eb76ad2

Please sign in to comment.