diff --git a/js/resistance-in-a-wire-main.js b/js/resistance-in-a-wire-main.js index 7c67632..8c5310d 100644 --- a/js/resistance-in-a-wire-main.js +++ b/js/resistance-in-a-wire-main.js @@ -5,21 +5,21 @@ * @author Vasily Shakhov (Mlearner) * @author Anton Ulyanov (Mlearner) */ -define( function( require ) { +define( require => { 'use strict'; // modules - var ResistanceInAWireScreen = require( 'RESISTANCE_IN_A_WIRE/resistance-in-a-wire/ResistanceInAWireScreen' ); - var Sim = require( 'JOIST/Sim' ); - var SimLauncher = require( 'JOIST/SimLauncher' ); - var SliderAndGeneralKeyboardHelpContent = require( 'SCENERY_PHET/keyboard/help/SliderAndGeneralKeyboardHelpContent' ); - var Tandem = require( 'TANDEM/Tandem' ); + const ResistanceInAWireScreen = require( 'RESISTANCE_IN_A_WIRE/resistance-in-a-wire/ResistanceInAWireScreen' ); + const Sim = require( 'JOIST/Sim' ); + const SimLauncher = require( 'JOIST/SimLauncher' ); + const SliderAndGeneralKeyboardHelpContent = require( 'SCENERY_PHET/keyboard/help/SliderAndGeneralKeyboardHelpContent' ); + const Tandem = require( 'TANDEM/Tandem' ); // constants var tandem = Tandem.rootTandem; // strings - var resistanceInAWireTitleString = require( 'string!RESISTANCE_IN_A_WIRE/resistance-in-a-wire.title' ); + const resistanceInAWireTitleString = require( 'string!RESISTANCE_IN_A_WIRE/resistance-in-a-wire.title' ); // help content to describe keyboard interactions var keyboardHelpContent = new SliderAndGeneralKeyboardHelpContent(); diff --git a/js/resistance-in-a-wire/ResistanceInAWireA11yStrings.js b/js/resistance-in-a-wire/ResistanceInAWireA11yStrings.js index 9cd1a2f..458e107 100644 --- a/js/resistance-in-a-wire/ResistanceInAWireA11yStrings.js +++ b/js/resistance-in-a-wire/ResistanceInAWireA11yStrings.js @@ -7,11 +7,11 @@ * * @author Jesse Greenberg */ -define( function( require ) { +define( require => { 'use strict'; // modules - var resistanceInAWire = require( 'RESISTANCE_IN_A_WIRE/resistanceInAWire' ); + const resistanceInAWire = require( 'RESISTANCE_IN_A_WIRE/resistanceInAWire' ); var ResistanceInAWireA11yStrings = { summarySimString: { diff --git a/js/resistance-in-a-wire/ResistanceInAWireConstants.js b/js/resistance-in-a-wire/ResistanceInAWireConstants.js index ee9d08b..9a3bfa1 100644 --- a/js/resistance-in-a-wire/ResistanceInAWireConstants.js +++ b/js/resistance-in-a-wire/ResistanceInAWireConstants.js @@ -5,16 +5,16 @@ * * @author Martin Veillette (Berea College) */ -define( function( require ) { +define( require => { 'use strict'; // modules - var PhetFont = require( 'SCENERY_PHET/PhetFont' ); - var Range = require( 'DOT/Range' ); - var RangeWithValue = require( 'DOT/RangeWithValue' ); - var resistanceInAWire = require( 'RESISTANCE_IN_A_WIRE/resistanceInAWire' ); - var ResistanceInAWireA11yStrings = require( 'RESISTANCE_IN_A_WIRE/resistance-in-a-wire/ResistanceInAWireA11yStrings' ); - var Util = require( 'DOT/Util' ); + const PhetFont = require( 'SCENERY_PHET/PhetFont' ); + const Range = require( 'DOT/Range' ); + const RangeWithValue = require( 'DOT/RangeWithValue' ); + const resistanceInAWire = require( 'RESISTANCE_IN_A_WIRE/resistanceInAWire' ); + const ResistanceInAWireA11yStrings = require( 'RESISTANCE_IN_A_WIRE/resistance-in-a-wire/ResistanceInAWireA11yStrings' ); + const Util = require( 'DOT/Util' ); // a11y strings var muchMuchSmallerThanString = ResistanceInAWireA11yStrings.muchMuchSmallerThanString.value; diff --git a/js/resistance-in-a-wire/ResistanceInAWireScreen.js b/js/resistance-in-a-wire/ResistanceInAWireScreen.js index be3f8d7..5282cbe 100644 --- a/js/resistance-in-a-wire/ResistanceInAWireScreen.js +++ b/js/resistance-in-a-wire/ResistanceInAWireScreen.js @@ -6,16 +6,16 @@ * * @author John Blanco (PhET Interactive Simulations) */ -define( function( require ) { +define( require => { 'use strict'; // modules - var inherit = require( 'PHET_CORE/inherit' ); - var Property = require( 'AXON/Property' ); - var resistanceInAWire = require( 'RESISTANCE_IN_A_WIRE/resistanceInAWire' ); - var ResistanceInAWireModel = require( 'RESISTANCE_IN_A_WIRE/resistance-in-a-wire/model/ResistanceInAWireModel' ); - var ResistanceInAWireScreenView = require( 'RESISTANCE_IN_A_WIRE/resistance-in-a-wire/view/ResistanceInAWireScreenView' ); - var Screen = require( 'JOIST/Screen' ); + const inherit = require( 'PHET_CORE/inherit' ); + const Property = require( 'AXON/Property' ); + const resistanceInAWire = require( 'RESISTANCE_IN_A_WIRE/resistanceInAWire' ); + const ResistanceInAWireModel = require( 'RESISTANCE_IN_A_WIRE/resistance-in-a-wire/model/ResistanceInAWireModel' ); + const ResistanceInAWireScreenView = require( 'RESISTANCE_IN_A_WIRE/resistance-in-a-wire/view/ResistanceInAWireScreenView' ); + const Screen = require( 'JOIST/Screen' ); /** * @param {Tandem} tandem diff --git a/js/resistance-in-a-wire/model/ResistanceInAWireModel.js b/js/resistance-in-a-wire/model/ResistanceInAWireModel.js index 3dc3f6d..9bfd012 100644 --- a/js/resistance-in-a-wire/model/ResistanceInAWireModel.js +++ b/js/resistance-in-a-wire/model/ResistanceInAWireModel.js @@ -6,19 +6,19 @@ * @author Vasily Shakhov (Mlearner) * @author John Blanco (PhET Interactive Simulations) */ -define( function( require ) { +define( require => { 'use strict'; // modules - var BooleanProperty = require( 'AXON/BooleanProperty' ); - var DerivedProperty = require( 'AXON/DerivedProperty' ); - var DerivedPropertyIO = require( 'AXON/DerivedPropertyIO' ); - var inherit = require( 'PHET_CORE/inherit' ); - var NumberIO = require( 'TANDEM/types/NumberIO' ); - var NumberProperty = require( 'AXON/NumberProperty' ); - var Range = require( 'DOT/Range' ); - var resistanceInAWire = require( 'RESISTANCE_IN_A_WIRE/resistanceInAWire' ); - var ResistanceInAWireConstants = require( 'RESISTANCE_IN_A_WIRE/resistance-in-a-wire/ResistanceInAWireConstants' ); + const BooleanProperty = require( 'AXON/BooleanProperty' ); + const DerivedProperty = require( 'AXON/DerivedProperty' ); + const DerivedPropertyIO = require( 'AXON/DerivedPropertyIO' ); + const inherit = require( 'PHET_CORE/inherit' ); + const NumberIO = require( 'TANDEM/types/NumberIO' ); + const NumberProperty = require( 'AXON/NumberProperty' ); + const Range = require( 'DOT/Range' ); + const resistanceInAWire = require( 'RESISTANCE_IN_A_WIRE/resistanceInAWire' ); + const ResistanceInAWireConstants = require( 'RESISTANCE_IN_A_WIRE/resistance-in-a-wire/ResistanceInAWireConstants' ); /** * @param {Tandem} tandem diff --git a/js/resistance-in-a-wire/view/AccessibleSummaryNode.js b/js/resistance-in-a-wire/view/AccessibleSummaryNode.js index 937f4a1..dd50d60 100644 --- a/js/resistance-in-a-wire/view/AccessibleSummaryNode.js +++ b/js/resistance-in-a-wire/view/AccessibleSummaryNode.js @@ -8,18 +8,18 @@ * @author Jesse Greenberg (PhET Interactive Simulations) */ -define( function( require ) { +define( require => { 'use strict'; // modules - var AccessibleSectionNode = require( 'SCENERY_PHET/accessibility/AccessibleSectionNode' ); - var inherit = require( 'PHET_CORE/inherit' ); - var Node = require( 'SCENERY/nodes/Node' ); - var resistanceInAWire = require( 'RESISTANCE_IN_A_WIRE/resistanceInAWire' ); - var ResistanceInAWireA11yStrings = require( 'RESISTANCE_IN_A_WIRE/resistance-in-a-wire/ResistanceInAWireA11yStrings' ); - var ResistanceInAWireConstants = require( 'RESISTANCE_IN_A_WIRE/resistance-in-a-wire/ResistanceInAWireConstants' ); - var StringUtils = require( 'PHETCOMMON/util/StringUtils' ); - var Util = require( 'DOT/Util' ); + const AccessibleSectionNode = require( 'SCENERY_PHET/accessibility/AccessibleSectionNode' ); + const inherit = require( 'PHET_CORE/inherit' ); + const Node = require( 'SCENERY/nodes/Node' ); + const resistanceInAWire = require( 'RESISTANCE_IN_A_WIRE/resistanceInAWire' ); + const ResistanceInAWireA11yStrings = require( 'RESISTANCE_IN_A_WIRE/resistance-in-a-wire/ResistanceInAWireA11yStrings' ); + const ResistanceInAWireConstants = require( 'RESISTANCE_IN_A_WIRE/resistance-in-a-wire/ResistanceInAWireConstants' ); + const StringUtils = require( 'PHETCOMMON/util/StringUtils' ); + const Util = require( 'DOT/Util' ); // a11y strings var summarySimString = ResistanceInAWireA11yStrings.summarySimString.value; diff --git a/js/resistance-in-a-wire/view/ControlPanel.js b/js/resistance-in-a-wire/view/ControlPanel.js index 5efc999..b86d84d 100644 --- a/js/resistance-in-a-wire/view/ControlPanel.js +++ b/js/resistance-in-a-wire/view/ControlPanel.js @@ -6,39 +6,39 @@ * @author Anton Ulyanov (Mlearner) * @author John Blanco (PhET Interactive Simulations) */ -define( function( require ) { +define( require => { 'use strict'; // modules - var inherit = require( 'PHET_CORE/inherit' ); - var Node = require( 'SCENERY/nodes/Node' ); - var Panel = require( 'SUN/Panel' ); - var resistanceInAWire = require( 'RESISTANCE_IN_A_WIRE/resistanceInAWire' ); - var ResistanceInAWireA11yStrings = require( 'RESISTANCE_IN_A_WIRE/resistance-in-a-wire/ResistanceInAWireA11yStrings' ); - var ResistanceInAWireConstants = require( 'RESISTANCE_IN_A_WIRE/resistance-in-a-wire/ResistanceInAWireConstants' ); - var ResistanceInAWireModel = require( 'RESISTANCE_IN_A_WIRE/resistance-in-a-wire/model/ResistanceInAWireModel' ); - var ResistanceSoundGenerator = require( 'RESISTANCE_IN_A_WIRE/resistance-in-a-wire/view/ResistanceSoundGenerator' ); - var SliderUnit = require( 'RESISTANCE_IN_A_WIRE/resistance-in-a-wire/view/SliderUnit' ); - var soundManager = require( 'TAMBO/soundManager' ); - var StringUtils = require( 'PHETCOMMON/util/StringUtils' ); - var Text = require( 'SCENERY/nodes/Text' ); - var Util = require( 'DOT/Util' ); - var Utterance = require( 'SCENERY_PHET/accessibility/Utterance' ); - var utteranceQueue = require( 'SCENERY_PHET/accessibility/utteranceQueue' ); + const inherit = require( 'PHET_CORE/inherit' ); + const Node = require( 'SCENERY/nodes/Node' ); + const Panel = require( 'SUN/Panel' ); + const resistanceInAWire = require( 'RESISTANCE_IN_A_WIRE/resistanceInAWire' ); + const ResistanceInAWireA11yStrings = require( 'RESISTANCE_IN_A_WIRE/resistance-in-a-wire/ResistanceInAWireA11yStrings' ); + const ResistanceInAWireConstants = require( 'RESISTANCE_IN_A_WIRE/resistance-in-a-wire/ResistanceInAWireConstants' ); + const ResistanceInAWireModel = require( 'RESISTANCE_IN_A_WIRE/resistance-in-a-wire/model/ResistanceInAWireModel' ); + const ResistanceSoundGenerator = require( 'RESISTANCE_IN_A_WIRE/resistance-in-a-wire/view/ResistanceSoundGenerator' ); + const SliderUnit = require( 'RESISTANCE_IN_A_WIRE/resistance-in-a-wire/view/SliderUnit' ); + const soundManager = require( 'TAMBO/soundManager' ); + const StringUtils = require( 'PHETCOMMON/util/StringUtils' ); + const Text = require( 'SCENERY/nodes/Text' ); + const Util = require( 'DOT/Util' ); + const Utterance = require( 'SCENERY_PHET/accessibility/Utterance' ); + const utteranceQueue = require( 'SCENERY_PHET/accessibility/utteranceQueue' ); // strings - var areaString = require( 'string!RESISTANCE_IN_A_WIRE/area' ); - var areaSymbolString = require( 'string!RESISTANCE_IN_A_WIRE/areaSymbol' ); - var cmString = require( 'string!RESISTANCE_IN_A_WIRE/cm' ); - var lengthString = require( 'string!RESISTANCE_IN_A_WIRE/length' ); - var lengthSymbolString = require( 'string!RESISTANCE_IN_A_WIRE/lengthSymbol' ); - var symbolOhmsString = require( 'string!SCENERY_PHET/symbol.ohms' ); - var ohmString = require( 'string!RESISTANCE_IN_A_WIRE/ohm' ); - var pattern0Label1Value2UnitsString = require( 'string!RESISTANCE_IN_A_WIRE/pattern.0label.1value.2units' ); - var pattern0ResistanceUnits1LengthUnitsString = require( 'string!RESISTANCE_IN_A_WIRE/pattern.0resistanceUnits.1lengthUnits' ); - var resistanceString = require( 'string!RESISTANCE_IN_A_WIRE/resistance' ); - var resistivityString = require( 'string!RESISTANCE_IN_A_WIRE/resistivity' ); - var symbolResistivityString = require( 'string!SCENERY_PHET/symbol.resistivity' ); + const areaString = require( 'string!RESISTANCE_IN_A_WIRE/area' ); + const areaSymbolString = require( 'string!RESISTANCE_IN_A_WIRE/areaSymbol' ); + const cmString = require( 'string!RESISTANCE_IN_A_WIRE/cm' ); + const lengthString = require( 'string!RESISTANCE_IN_A_WIRE/length' ); + const lengthSymbolString = require( 'string!RESISTANCE_IN_A_WIRE/lengthSymbol' ); + const symbolOhmsString = require( 'string!SCENERY_PHET/symbol.ohms' ); + const ohmString = require( 'string!RESISTANCE_IN_A_WIRE/ohm' ); + const pattern0Label1Value2UnitsString = require( 'string!RESISTANCE_IN_A_WIRE/pattern.0label.1value.2units' ); + const pattern0ResistanceUnits1LengthUnitsString = require( 'string!RESISTANCE_IN_A_WIRE/pattern.0resistanceUnits.1lengthUnits' ); + const resistanceString = require( 'string!RESISTANCE_IN_A_WIRE/resistance' ); + const resistivityString = require( 'string!RESISTANCE_IN_A_WIRE/resistivity' ); + const symbolResistivityString = require( 'string!SCENERY_PHET/symbol.resistivity' ); // a11y strings (not ready for i18n) var resistivityUnitsPatternString = ResistanceInAWireA11yStrings.resistivityUnitsPatternString.value; diff --git a/js/resistance-in-a-wire/view/DotsCanvasNode.js b/js/resistance-in-a-wire/view/DotsCanvasNode.js index f078afa..f70d2da 100644 --- a/js/resistance-in-a-wire/view/DotsCanvasNode.js +++ b/js/resistance-in-a-wire/view/DotsCanvasNode.js @@ -7,18 +7,18 @@ * * @author Jesse Greenberg */ -define( function( require ) { +define( require => { 'use strict'; // modules - var Bounds2 = require( 'DOT/Bounds2' ); - var CanvasNode = require( 'SCENERY/nodes/CanvasNode' ); - var inherit = require( 'PHET_CORE/inherit' ); - var LinearFunction = require( 'DOT/LinearFunction' ); - var resistanceInAWire = require( 'RESISTANCE_IN_A_WIRE/resistanceInAWire' ); - var ResistanceInAWireConstants = require( 'RESISTANCE_IN_A_WIRE/resistance-in-a-wire/ResistanceInAWireConstants' ); - var Vector2 = require( 'DOT/Vector2' ); - var WireShapeConstants = require( 'RESISTANCE_IN_A_WIRE/resistance-in-a-wire/view/WireShapeConstants' ); + const Bounds2 = require( 'DOT/Bounds2' ); + const CanvasNode = require( 'SCENERY/nodes/CanvasNode' ); + const inherit = require( 'PHET_CORE/inherit' ); + const LinearFunction = require( 'DOT/LinearFunction' ); + const resistanceInAWire = require( 'RESISTANCE_IN_A_WIRE/resistanceInAWire' ); + const ResistanceInAWireConstants = require( 'RESISTANCE_IN_A_WIRE/resistance-in-a-wire/ResistanceInAWireConstants' ); + const Vector2 = require( 'DOT/Vector2' ); + const WireShapeConstants = require( 'RESISTANCE_IN_A_WIRE/resistance-in-a-wire/view/WireShapeConstants' ); // constants // to calculate the number of dots diff --git a/js/resistance-in-a-wire/view/FormulaNode.js b/js/resistance-in-a-wire/view/FormulaNode.js index 3309a71..cb5e175 100644 --- a/js/resistance-in-a-wire/view/FormulaNode.js +++ b/js/resistance-in-a-wire/view/FormulaNode.js @@ -9,29 +9,29 @@ * @author John Blanco (PhET Interactive Simulations) * @author Michael Kauzmann (PhET Interactive Simulations) */ -define( function( require ) { +define( require => { 'use strict'; // modules - var inherit = require( 'PHET_CORE/inherit' ); - var Node = require( 'SCENERY/nodes/Node' ); - var Path = require( 'SCENERY/nodes/Path' ); - var PhetFont = require( 'SCENERY_PHET/PhetFont' ); - var platform = require( 'PHET_CORE/platform' ); - var Rectangle = require( 'SCENERY/nodes/Rectangle' ); - var resistanceInAWire = require( 'RESISTANCE_IN_A_WIRE/resistanceInAWire' ); - var ResistanceInAWireA11yStrings = require( 'RESISTANCE_IN_A_WIRE/resistance-in-a-wire/ResistanceInAWireA11yStrings' ); - var ResistanceInAWireConstants = require( 'RESISTANCE_IN_A_WIRE/resistance-in-a-wire/ResistanceInAWireConstants' ); - var Shape = require( 'KITE/Shape' ); - var StringUtils = require( 'PHETCOMMON/util/StringUtils' ); - var Text = require( 'SCENERY/nodes/Text' ); - var Vector2 = require( 'DOT/Vector2' ); + const inherit = require( 'PHET_CORE/inherit' ); + const Node = require( 'SCENERY/nodes/Node' ); + const Path = require( 'SCENERY/nodes/Path' ); + const PhetFont = require( 'SCENERY_PHET/PhetFont' ); + const platform = require( 'PHET_CORE/platform' ); + const Rectangle = require( 'SCENERY/nodes/Rectangle' ); + const resistanceInAWire = require( 'RESISTANCE_IN_A_WIRE/resistanceInAWire' ); + const ResistanceInAWireA11yStrings = require( 'RESISTANCE_IN_A_WIRE/resistance-in-a-wire/ResistanceInAWireA11yStrings' ); + const ResistanceInAWireConstants = require( 'RESISTANCE_IN_A_WIRE/resistance-in-a-wire/ResistanceInAWireConstants' ); + const Shape = require( 'KITE/Shape' ); + const StringUtils = require( 'PHETCOMMON/util/StringUtils' ); + const Text = require( 'SCENERY/nodes/Text' ); + const Vector2 = require( 'DOT/Vector2' ); // strings - var areaSymbolString = require( 'string!RESISTANCE_IN_A_WIRE/areaSymbol' ); - var lengthSymbolString = require( 'string!RESISTANCE_IN_A_WIRE/lengthSymbol' ); - var resistanceSymbolString = require( 'string!RESISTANCE_IN_A_WIRE/resistanceSymbol' ); - var symbolResistivityString = require( 'string!SCENERY_PHET/symbol.resistivity' ); + const areaSymbolString = require( 'string!RESISTANCE_IN_A_WIRE/areaSymbol' ); + const lengthSymbolString = require( 'string!RESISTANCE_IN_A_WIRE/lengthSymbol' ); + const resistanceSymbolString = require( 'string!RESISTANCE_IN_A_WIRE/resistanceSymbol' ); + const symbolResistivityString = require( 'string!SCENERY_PHET/symbol.resistivity' ); // a11y strings var resistanceEquationString = ResistanceInAWireA11yStrings.resistanceEquationString.value; diff --git a/js/resistance-in-a-wire/view/ResistanceInAWireScreenView.js b/js/resistance-in-a-wire/view/ResistanceInAWireScreenView.js index e822f2e..4aa25dc 100644 --- a/js/resistance-in-a-wire/view/ResistanceInAWireScreenView.js +++ b/js/resistance-in-a-wire/view/ResistanceInAWireScreenView.js @@ -6,24 +6,24 @@ * @author Anton Ulyanov (Mlearner) * @author John Blanco (PhET Interactive Simulations) */ -define( function( require ) { +define( require => { 'use strict'; // modules - var AccessibleSummaryNode = require( 'RESISTANCE_IN_A_WIRE/resistance-in-a-wire/view/AccessibleSummaryNode' ); - var ArrowNode = require( 'SCENERY_PHET/ArrowNode' ); - var ControlPanel = require( 'RESISTANCE_IN_A_WIRE/resistance-in-a-wire/view/ControlPanel' ); - var FocusHighlightPath = require( 'SCENERY/accessibility/FocusHighlightPath' ); - var FormulaNode = require( 'RESISTANCE_IN_A_WIRE/resistance-in-a-wire/view/FormulaNode' ); - var inherit = require( 'PHET_CORE/inherit' ); - var ResetAllButton = require( 'SCENERY_PHET/buttons/ResetAllButton' ); - var ResetAllSoundGenerator = require( 'TAMBO/sound-generators/ResetAllSoundGenerator' ); - var resistanceInAWire = require( 'RESISTANCE_IN_A_WIRE/resistanceInAWire' ); - var ResistanceInAWireConstants = require( 'RESISTANCE_IN_A_WIRE/resistance-in-a-wire/ResistanceInAWireConstants' ); - var ScreenView = require( 'JOIST/ScreenView' ); - var Shape = require( 'KITE/Shape' ); - var soundManager = require( 'TAMBO/soundManager' ); - var WireNode = require( 'RESISTANCE_IN_A_WIRE/resistance-in-a-wire/view/WireNode' ); + const AccessibleSummaryNode = require( 'RESISTANCE_IN_A_WIRE/resistance-in-a-wire/view/AccessibleSummaryNode' ); + const ArrowNode = require( 'SCENERY_PHET/ArrowNode' ); + const ControlPanel = require( 'RESISTANCE_IN_A_WIRE/resistance-in-a-wire/view/ControlPanel' ); + const FocusHighlightPath = require( 'SCENERY/accessibility/FocusHighlightPath' ); + const FormulaNode = require( 'RESISTANCE_IN_A_WIRE/resistance-in-a-wire/view/FormulaNode' ); + const inherit = require( 'PHET_CORE/inherit' ); + const ResetAllButton = require( 'SCENERY_PHET/buttons/ResetAllButton' ); + const ResetAllSoundGenerator = require( 'TAMBO/sound-generators/ResetAllSoundGenerator' ); + const resistanceInAWire = require( 'RESISTANCE_IN_A_WIRE/resistanceInAWire' ); + const ResistanceInAWireConstants = require( 'RESISTANCE_IN_A_WIRE/resistance-in-a-wire/ResistanceInAWireConstants' ); + const ScreenView = require( 'JOIST/ScreenView' ); + const Shape = require( 'KITE/Shape' ); + const soundManager = require( 'TAMBO/soundManager' ); + const WireNode = require( 'RESISTANCE_IN_A_WIRE/resistance-in-a-wire/view/WireNode' ); /** * @param {ResistanceInAWireModel} model diff --git a/js/resistance-in-a-wire/view/SliderUnit.js b/js/resistance-in-a-wire/view/SliderUnit.js index 9e2f124..e4eb395 100644 --- a/js/resistance-in-a-wire/view/SliderUnit.js +++ b/js/resistance-in-a-wire/view/SliderUnit.js @@ -5,19 +5,19 @@ * based on the center of the slider. * @author Martin Veillette (Berea College) */ -define( function( require ) { +define( require => { 'use strict'; // modules - var Dimension2 = require( 'DOT/Dimension2' ); - var inherit = require( 'PHET_CORE/inherit' ); - var Node = require( 'SCENERY/nodes/Node' ); - var resistanceInAWire = require( 'RESISTANCE_IN_A_WIRE/resistanceInAWire' ); - var ResistanceInAWireConstants = require( 'RESISTANCE_IN_A_WIRE/resistance-in-a-wire/ResistanceInAWireConstants' ); - var RichText = require( 'SCENERY/nodes/RichText' ); - var Text = require( 'SCENERY/nodes/Text' ); - var Util = require( 'DOT/Util' ); - var VSlider = require( 'SUN/VSlider' ); + const Dimension2 = require( 'DOT/Dimension2' ); + const inherit = require( 'PHET_CORE/inherit' ); + const Node = require( 'SCENERY/nodes/Node' ); + const resistanceInAWire = require( 'RESISTANCE_IN_A_WIRE/resistanceInAWire' ); + const ResistanceInAWireConstants = require( 'RESISTANCE_IN_A_WIRE/resistance-in-a-wire/ResistanceInAWireConstants' ); + const RichText = require( 'SCENERY/nodes/RichText' ); + const Text = require( 'SCENERY/nodes/Text' ); + const Util = require( 'DOT/Util' ); + const VSlider = require( 'SUN/VSlider' ); /** * @param {Property.} property diff --git a/js/resistance-in-a-wire/view/WireNode.js b/js/resistance-in-a-wire/view/WireNode.js index 7ab1f11..03d45b6 100644 --- a/js/resistance-in-a-wire/view/WireNode.js +++ b/js/resistance-in-a-wire/view/WireNode.js @@ -7,24 +7,24 @@ * @author Anton Ulyanov (Mlearner) * @author John Blanco (PhET Interactive Simulations) */ -define( function( require ) { +define( require => { 'use strict'; // modules - var DotsCanvasNode = require( 'RESISTANCE_IN_A_WIRE/resistance-in-a-wire/view/DotsCanvasNode' ); - var inherit = require( 'PHET_CORE/inherit' ); - var LinearGradient = require( 'SCENERY/util/LinearGradient' ); - var Node = require( 'SCENERY/nodes/Node' ); - var Path = require( 'SCENERY/nodes/Path' ); - var platform = require( 'PHET_CORE/platform' ); - var Property = require( 'AXON/Property' ); - var resistanceInAWire = require( 'RESISTANCE_IN_A_WIRE/resistanceInAWire' ); - var ResistanceInAWireA11yStrings = require( 'RESISTANCE_IN_A_WIRE/resistance-in-a-wire/ResistanceInAWireA11yStrings' ); - var ResistanceInAWireConstants = require( 'RESISTANCE_IN_A_WIRE/resistance-in-a-wire/ResistanceInAWireConstants' ); - var Shape = require( 'KITE/Shape' ); - var StringUtils = require( 'PHETCOMMON/util/StringUtils' ); - var Util = require( 'DOT/Util' ); - var WireShapeConstants = require( 'RESISTANCE_IN_A_WIRE/resistance-in-a-wire/view/WireShapeConstants' ); + const DotsCanvasNode = require( 'RESISTANCE_IN_A_WIRE/resistance-in-a-wire/view/DotsCanvasNode' ); + const inherit = require( 'PHET_CORE/inherit' ); + const LinearGradient = require( 'SCENERY/util/LinearGradient' ); + const Node = require( 'SCENERY/nodes/Node' ); + const Path = require( 'SCENERY/nodes/Path' ); + const platform = require( 'PHET_CORE/platform' ); + const Property = require( 'AXON/Property' ); + const resistanceInAWire = require( 'RESISTANCE_IN_A_WIRE/resistanceInAWire' ); + const ResistanceInAWireA11yStrings = require( 'RESISTANCE_IN_A_WIRE/resistance-in-a-wire/ResistanceInAWireA11yStrings' ); + const ResistanceInAWireConstants = require( 'RESISTANCE_IN_A_WIRE/resistance-in-a-wire/ResistanceInAWireConstants' ); + const Shape = require( 'KITE/Shape' ); + const StringUtils = require( 'PHETCOMMON/util/StringUtils' ); + const Util = require( 'DOT/Util' ); + const WireShapeConstants = require( 'RESISTANCE_IN_A_WIRE/resistance-in-a-wire/view/WireShapeConstants' ); // a11y strings var wireDescriptionPatternString = ResistanceInAWireA11yStrings.wireDescriptionPatternString.value; diff --git a/js/resistance-in-a-wire/view/WireShapeConstants.js b/js/resistance-in-a-wire/view/WireShapeConstants.js index 14026c1..a639d28 100644 --- a/js/resistance-in-a-wire/view/WireShapeConstants.js +++ b/js/resistance-in-a-wire/view/WireShapeConstants.js @@ -6,14 +6,14 @@ * @author Jesse Greenberg */ -define( function( require ) { +define( require => { 'use strict'; // modules - var LinearFunction = require( 'DOT/LinearFunction' ); - var Range = require( 'DOT/Range' ); - var resistanceInAWire = require( 'RESISTANCE_IN_A_WIRE/resistanceInAWire' ); - var ResistanceInAWireConstants = require( 'RESISTANCE_IN_A_WIRE/resistance-in-a-wire/ResistanceInAWireConstants' ); + const LinearFunction = require( 'DOT/LinearFunction' ); + const Range = require( 'DOT/Range' ); + const resistanceInAWire = require( 'RESISTANCE_IN_A_WIRE/resistanceInAWire' ); + const ResistanceInAWireConstants = require( 'RESISTANCE_IN_A_WIRE/resistance-in-a-wire/ResistanceInAWireConstants' ); // constants var WIRE_VIEW_WIDTH_RANGE = new Range( 15, 500 ); // in screen coordinates diff --git a/js/resistanceInAWire.js b/js/resistanceInAWire.js index 6b707c6..255414c 100644 --- a/js/resistanceInAWire.js +++ b/js/resistanceInAWire.js @@ -5,11 +5,11 @@ * * @author Chris Malley (PixelZoom, Inc.) */ -define( function( require ) { +define( require => { 'use strict'; // modules - var Namespace = require( 'PHET_CORE/Namespace' ); + const Namespace = require( 'PHET_CORE/Namespace' ); return new Namespace( 'resistanceInAWire' ); } ); \ No newline at end of file