diff --git a/js/moleculesandlight/view/MoleculesAndLightScreenView.js b/js/moleculesandlight/view/MoleculesAndLightScreenView.js index d119ea52..850d7a16 100644 --- a/js/moleculesandlight/view/MoleculesAndLightScreenView.js +++ b/js/moleculesandlight/view/MoleculesAndLightScreenView.js @@ -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' ); @@ -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 diff --git a/js/moleculesandlight/view/SpectrumDiagram.js b/js/moleculesandlight/view/SpectrumDiagram.js index a32b141c..303e4af1 100644 --- a/js/moleculesandlight/view/SpectrumDiagram.js +++ b/js/moleculesandlight/view/SpectrumDiagram.js @@ -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' ); @@ -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 ); @@ -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' + superscript + '', { font: TICK_MARK_FONT, supScale: 0.65,