diff --git a/Gruntfile.js b/Gruntfile.js index 3959b6d..44ebece 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -1,10 +1,10 @@ // Copyright 2013-2016, University of Colorado Boulder -var pegjs = require( 'pegjs' ); -var fs = require( 'fs' ); +const pegjs = require( 'pegjs' ); +const fs = require( 'fs' ); // use chipper's gruntfile -var Gruntfile = require( '../chipper/js/grunt/Gruntfile.js' ); // eslint-disable-line require-statement-match +const Gruntfile = require( '../chipper/js/grunt/Gruntfile.js' ); // eslint-disable-line require-statement-match // Add repo-specific grunt tasks module.exports = function( grunt ) { @@ -22,8 +22,8 @@ module.exports = function( grunt ) { ' * See svgPath.pegjs for more documentation, or run \'grunt generate-svgPath-parser\' to regenerate.\n' + ' *' + '/\n' + '\n' + - 'define( function( require ) {\n' + - ' var kite = require( \'KITE/kite\' );\n'; + 'define( require => {\n' + + ' const kite = require( \'KITE/kite\' );\n'; var suffix = ' kite.register( \'svgPath\', result );\n' + ' return kite.svgPath;\n' + '} );\n'; diff --git a/js/Shape.js b/js/Shape.js index 21dd5b0..413ce0b 100644 --- a/js/Shape.js +++ b/js/Shape.js @@ -18,25 +18,25 @@ * @author Jonathan Olson */ -define( function( require ) { +define( require => { 'use strict'; - var Arc = require( 'KITE/segments/Arc' ); - var Bounds2 = require( 'DOT/Bounds2' ); - var Cubic = require( 'KITE/segments/Cubic' ); - var EllipticalArc = require( 'KITE/segments/EllipticalArc' ); - var Graph = require( 'KITE/ops/Graph' ); - var inherit = require( 'PHET_CORE/inherit' ); - var kite = require( 'KITE/kite' ); - var Line = require( 'KITE/segments/Line' ); - var LineStyles = require( 'KITE/util/LineStyles' ); - var Quadratic = require( 'KITE/segments/Quadratic' ); - var Ray2 = require( 'DOT/Ray2' ); - var Subpath = require( 'KITE/util/Subpath' ); - var svgPath = require( 'KITE/parser/svgPath' ); - var TinyEmitter = require( 'AXON/TinyEmitter' ); - var Util = require( 'DOT/Util' ); - var Vector2 = require( 'DOT/Vector2' ); + const Arc = require( 'KITE/segments/Arc' ); + const Bounds2 = require( 'DOT/Bounds2' ); + const Cubic = require( 'KITE/segments/Cubic' ); + const EllipticalArc = require( 'KITE/segments/EllipticalArc' ); + const Graph = require( 'KITE/ops/Graph' ); + const inherit = require( 'PHET_CORE/inherit' ); + const kite = require( 'KITE/kite' ); + const Line = require( 'KITE/segments/Line' ); + const LineStyles = require( 'KITE/util/LineStyles' ); + const Quadratic = require( 'KITE/segments/Quadratic' ); + const Ray2 = require( 'DOT/Ray2' ); + const Subpath = require( 'KITE/util/Subpath' ); + const svgPath = require( 'KITE/parser/svgPath' ); + const TinyEmitter = require( 'AXON/TinyEmitter' ); + const Util = require( 'DOT/Util' ); + const Vector2 = require( 'DOT/Vector2' ); const randomSource = Math.random; // eslint-disable-line bad-sim-text (We can't get joist's random reference here) diff --git a/js/ShapeTests.js b/js/ShapeTests.js index 25cc59c..8f91687 100644 --- a/js/ShapeTests.js +++ b/js/ShapeTests.js @@ -6,19 +6,19 @@ * @author Jonathan Olson (PhET Interactive Simulations) * @author Sam Reid (PhET Interactive Simulations) */ -define( function( require ) { +define( require => { 'use strict'; // modules - var Arc = require( 'KITE/segments/Arc' ); - var Bounds2 = require( 'DOT/Bounds2' ); - var Cubic = require( 'KITE/segments/Cubic' ); - var Line = require( 'KITE/segments/Line' ); - var Matrix3 = require( 'DOT/Matrix3' ); - var Quadratic = require( 'KITE/segments/Quadratic' ); - var Ray2 = require( 'DOT/Ray2' ); - var Shape = require( 'KITE/Shape' ); - var Vector2 = require( 'DOT/Vector2' ); + const Arc = require( 'KITE/segments/Arc' ); + const Bounds2 = require( 'DOT/Bounds2' ); + const Cubic = require( 'KITE/segments/Cubic' ); + const Line = require( 'KITE/segments/Line' ); + const Matrix3 = require( 'DOT/Matrix3' ); + const Quadratic = require( 'KITE/segments/Quadratic' ); + const Ray2 = require( 'DOT/Ray2' ); + const Shape = require( 'KITE/Shape' ); + const Vector2 = require( 'DOT/Vector2' ); QUnit.module( 'Shape' ); diff --git a/js/kite-main.js b/js/kite-main.js index 1fd78d5..98f1262 100644 --- a/js/kite-main.js +++ b/js/kite-main.js @@ -4,7 +4,7 @@ if ( !window.hasOwnProperty( '_' ) ) { throw new Error( 'Underscore/Lodash not found: _' ); } - define( function( require ) { + define( require => { window.axon = require( 'AXON/main' ); window.dot = require( 'DOT/main' ); diff --git a/js/kite-tests.js b/js/kite-tests.js index a638bf8..11be596 100644 --- a/js/kite-tests.js +++ b/js/kite-tests.js @@ -5,7 +5,7 @@ * * @author Sam Reid (PhET Interactive Simulations) */ -define( function( require ) { +define( require => { 'use strict'; // modules diff --git a/js/kite.js b/js/kite.js index 8ce2c7e..3e131ab 100644 --- a/js/kite.js +++ b/js/kite.js @@ -10,10 +10,10 @@ * @author Jonathan Olson */ -define( function( require ) { +define( require => { 'use strict'; - var Namespace = require( 'PHET_CORE/Namespace' ); + const Namespace = require( 'PHET_CORE/Namespace' ); var kite = new Namespace( 'kite' ); diff --git a/js/ops/Boundary.js b/js/ops/Boundary.js index e0bdd9e..b47ddaf 100644 --- a/js/ops/Boundary.js +++ b/js/ops/Boundary.js @@ -7,17 +7,17 @@ * @author Jonathan Olson */ -define( function( require ) { +define( require => { 'use strict'; - var Bounds2 = require( 'DOT/Bounds2' ); - var cleanArray = require( 'PHET_CORE/cleanArray' ); - var inherit = require( 'PHET_CORE/inherit' ); - var kite = require( 'KITE/kite' ); - var Poolable = require( 'PHET_CORE/Poolable' ); - var Ray2 = require( 'DOT/Ray2' ); - var Subpath = require( 'KITE/util/Subpath' ); - var Vector2 = require( 'DOT/Vector2' ); + const Bounds2 = require( 'DOT/Bounds2' ); + const cleanArray = require( 'PHET_CORE/cleanArray' ); + const inherit = require( 'PHET_CORE/inherit' ); + const kite = require( 'KITE/kite' ); + const Poolable = require( 'PHET_CORE/Poolable' ); + const Ray2 = require( 'DOT/Ray2' ); + const Subpath = require( 'KITE/util/Subpath' ); + const Vector2 = require( 'DOT/Vector2' ); var globaId = 0; diff --git a/js/ops/BoundsIntersection.js b/js/ops/BoundsIntersection.js index 22af98e..3258870 100644 --- a/js/ops/BoundsIntersection.js +++ b/js/ops/BoundsIntersection.js @@ -9,14 +9,14 @@ * @author Jonathan Olson */ -define( function( require ) { +define( require => { 'use strict'; - var inherit = require( 'PHET_CORE/inherit' ); - var kite = require( 'KITE/kite' ); - var Poolable = require( 'PHET_CORE/Poolable' ); - var SegmentIntersection = require( 'KITE/util/SegmentIntersection' ); - var Vector2 = require( 'DOT/Vector2' ); + const inherit = require( 'PHET_CORE/inherit' ); + const kite = require( 'KITE/kite' ); + const Poolable = require( 'PHET_CORE/Poolable' ); + const SegmentIntersection = require( 'KITE/util/SegmentIntersection' ); + const Vector2 = require( 'DOT/Vector2' ); /** * @public (kite-internal) diff --git a/js/ops/Edge.js b/js/ops/Edge.js index ada5bd5..3cfec62 100644 --- a/js/ops/Edge.js +++ b/js/ops/Edge.js @@ -6,16 +6,16 @@ * @author Jonathan Olson */ -define( function( require ) { +define( require => { 'use strict'; - var HalfEdge = require( 'KITE/ops/HalfEdge' ); - var inherit = require( 'PHET_CORE/inherit' ); - var kite = require( 'KITE/kite' ); - var Line = require( 'KITE/segments/Line' ); - var Poolable = require( 'PHET_CORE/Poolable' ); - var Segment = require( 'KITE/segments/Segment' ); - var Vertex = require( 'KITE/ops/Vertex' ); + const HalfEdge = require( 'KITE/ops/HalfEdge' ); + const inherit = require( 'PHET_CORE/inherit' ); + const kite = require( 'KITE/kite' ); + const Line = require( 'KITE/segments/Line' ); + const Poolable = require( 'PHET_CORE/Poolable' ); + const Segment = require( 'KITE/segments/Segment' ); + const Vertex = require( 'KITE/ops/Vertex' ); var globaId = 0; diff --git a/js/ops/Face.js b/js/ops/Face.js index 96c19c8..3e3a689 100644 --- a/js/ops/Face.js +++ b/js/ops/Face.js @@ -11,13 +11,13 @@ * @author Jonathan Olson */ -define( function( require ) { +define( require => { 'use strict'; - var cleanArray = require( 'PHET_CORE/cleanArray' ); - var inherit = require( 'PHET_CORE/inherit' ); - var kite = require( 'KITE/kite' ); - var Poolable = require( 'PHET_CORE/Poolable' ); + const cleanArray = require( 'PHET_CORE/cleanArray' ); + const inherit = require( 'PHET_CORE/inherit' ); + const kite = require( 'KITE/kite' ); + const Poolable = require( 'PHET_CORE/Poolable' ); var globaId = 0; diff --git a/js/ops/Graph.js b/js/ops/Graph.js index 7f5c3b4..ec0d412 100644 --- a/js/ops/Graph.js +++ b/js/ops/Graph.js @@ -23,28 +23,28 @@ * @author Jonathan Olson */ -define( function( require ) { +define( require => { 'use strict'; - var Arc = require( 'KITE/segments/Arc' ); - var arrayRemove = require( 'PHET_CORE/arrayRemove' ); - var Boundary = require( 'KITE/ops/Boundary' ); - var cleanArray = require( 'PHET_CORE/cleanArray' ); - var Cubic = require( 'KITE/segments/Cubic' ); - var Edge = require( 'KITE/ops/Edge' ); - var EllipticalArc = require( 'KITE/segments/EllipticalArc' ); - var Face = require( 'KITE/ops/Face' ); - var inherit = require( 'PHET_CORE/inherit' ); - var kite = require( 'KITE/kite' ); - var Line = require( 'KITE/segments/Line' ); - var Loop = require( 'KITE/ops/Loop' ); - var Matrix3 = require( 'DOT/Matrix3' ); - var Quadratic = require( 'KITE/segments/Quadratic' ); - var Segment = require( 'KITE/segments/Segment' ); - var Subpath = require( 'KITE/util/Subpath' ); - var Transform3 = require( 'DOT/Transform3' ); - var Util = require( 'DOT/Util' ); - var Vertex = require( 'KITE/ops/Vertex' ); + const Arc = require( 'KITE/segments/Arc' ); + const arrayRemove = require( 'PHET_CORE/arrayRemove' ); + const Boundary = require( 'KITE/ops/Boundary' ); + const cleanArray = require( 'PHET_CORE/cleanArray' ); + const Cubic = require( 'KITE/segments/Cubic' ); + const Edge = require( 'KITE/ops/Edge' ); + const EllipticalArc = require( 'KITE/segments/EllipticalArc' ); + const Face = require( 'KITE/ops/Face' ); + const inherit = require( 'PHET_CORE/inherit' ); + const kite = require( 'KITE/kite' ); + const Line = require( 'KITE/segments/Line' ); + const Loop = require( 'KITE/ops/Loop' ); + const Matrix3 = require( 'DOT/Matrix3' ); + const Quadratic = require( 'KITE/segments/Quadratic' ); + const Segment = require( 'KITE/segments/Segment' ); + const Subpath = require( 'KITE/util/Subpath' ); + const Transform3 = require( 'DOT/Transform3' ); + const Util = require( 'DOT/Util' ); + const Vertex = require( 'KITE/ops/Vertex' ); var bridgeId = 0; diff --git a/js/ops/HalfEdge.js b/js/ops/HalfEdge.js index aa0503a..0abff5f 100644 --- a/js/ops/HalfEdge.js +++ b/js/ops/HalfEdge.js @@ -7,13 +7,13 @@ * @author Jonathan Olson */ -define( function( require ) { +define( require => { 'use strict'; - var inherit = require( 'PHET_CORE/inherit' ); - var kite = require( 'KITE/kite' ); - var Poolable = require( 'PHET_CORE/Poolable' ); - var Vector2 = require( 'DOT/Vector2' ); + const inherit = require( 'PHET_CORE/inherit' ); + const kite = require( 'KITE/kite' ); + const Poolable = require( 'PHET_CORE/Poolable' ); + const Vector2 = require( 'DOT/Vector2' ); /** * @public (kite-internal) diff --git a/js/ops/Loop.js b/js/ops/Loop.js index ae30acc..36453fd 100644 --- a/js/ops/Loop.js +++ b/js/ops/Loop.js @@ -14,14 +14,14 @@ * @author Jonathan Olson */ -define( function( require ) { +define( require => { 'use strict'; - var cleanArray = require( 'PHET_CORE/cleanArray' ); - var inherit = require( 'PHET_CORE/inherit' ); - var kite = require( 'KITE/kite' ); - var Poolable = require( 'PHET_CORE/Poolable' ); - var Subpath = require( 'KITE/util/Subpath' ); + const cleanArray = require( 'PHET_CORE/cleanArray' ); + const inherit = require( 'PHET_CORE/inherit' ); + const kite = require( 'KITE/kite' ); + const Poolable = require( 'PHET_CORE/Poolable' ); + const Subpath = require( 'KITE/util/Subpath' ); var globaId = 0; diff --git a/js/ops/Vertex.js b/js/ops/Vertex.js index 347b28e..9020320 100644 --- a/js/ops/Vertex.js +++ b/js/ops/Vertex.js @@ -8,15 +8,15 @@ * @author Jonathan Olson */ -define( function( require ) { +define( require => { 'use strict'; - var cleanArray = require( 'PHET_CORE/cleanArray' ); - var inherit = require( 'PHET_CORE/inherit' ); - var kite = require( 'KITE/kite' ); - var Line = require( 'KITE/segments/Line' ); - var Poolable = require( 'PHET_CORE/Poolable' ); - var Vector2 = require( 'DOT/Vector2' ); + const cleanArray = require( 'PHET_CORE/cleanArray' ); + const inherit = require( 'PHET_CORE/inherit' ); + const kite = require( 'KITE/kite' ); + const Line = require( 'KITE/segments/Line' ); + const Poolable = require( 'PHET_CORE/Poolable' ); + const Vector2 = require( 'DOT/Vector2' ); var globaId = 0; diff --git a/js/parser/svgPath.js b/js/parser/svgPath.js index 4977fa4..dce7359 100644 --- a/js/parser/svgPath.js +++ b/js/parser/svgPath.js @@ -3,8 +3,8 @@ * See svgPath.pegjs for more documentation, or run 'grunt generate-svgPath-parser' to regenerate. */ -define( function( require ) { - var kite = require( 'KITE/kite' ); +define( require => { + const kite = require( 'KITE/kite' ); /* * Generated by PEG.js 0.7.0. diff --git a/js/segments/Arc.js b/js/segments/Arc.js index a9d2caf..206607c 100644 --- a/js/segments/Arc.js +++ b/js/segments/Arc.js @@ -6,19 +6,19 @@ * @author Jonathan Olson */ -define( function( require ) { +define( require => { 'use strict'; - var Bounds2 = require( 'DOT/Bounds2' ); - var inherit = require( 'PHET_CORE/inherit' ); - var kite = require( 'KITE/kite' ); - var Line = require( 'KITE/segments/Line' ); - var Overlap = require( 'KITE/util/Overlap' ); - var RayIntersection = require( 'KITE/util/RayIntersection' ); - var Segment = require( 'KITE/segments/Segment' ); - var SegmentIntersection = require( 'KITE/util/SegmentIntersection' ); - var Util = require( 'DOT/Util' ); - var Vector2 = require( 'DOT/Vector2' ); + const Bounds2 = require( 'DOT/Bounds2' ); + const inherit = require( 'PHET_CORE/inherit' ); + const kite = require( 'KITE/kite' ); + const Line = require( 'KITE/segments/Line' ); + const Overlap = require( 'KITE/util/Overlap' ); + const RayIntersection = require( 'KITE/util/RayIntersection' ); + const Segment = require( 'KITE/segments/Segment' ); + const SegmentIntersection = require( 'KITE/util/SegmentIntersection' ); + const Util = require( 'DOT/Util' ); + const Vector2 = require( 'DOT/Vector2' ); // TODO: See if we should use this more var TWO_PI = Math.PI * 2; diff --git a/js/segments/Cubic.js b/js/segments/Cubic.js index 273cfdc..46a1d53 100644 --- a/js/segments/Cubic.js +++ b/js/segments/Cubic.js @@ -10,21 +10,21 @@ * @author Jonathan Olson */ -define( function( require ) { +define( require => { 'use strict'; - var Bounds2 = require( 'DOT/Bounds2' ); - var BoundsIntersection = require( 'KITE/ops/BoundsIntersection' ); - var inherit = require( 'PHET_CORE/inherit' ); - var kite = require( 'KITE/kite' ); - var Matrix3 = require( 'DOT/Matrix3' ); - var Overlap = require( 'KITE/util/Overlap' ); - var Quadratic = require( 'KITE/segments/Quadratic' ); - var RayIntersection = require( 'KITE/util/RayIntersection' ); - var Segment = require( 'KITE/segments/Segment' ); - var SegmentIntersection = require( 'KITE/util/SegmentIntersection' ); - var Util = require( 'DOT/Util' ); - var Vector2 = require( 'DOT/Vector2' ); + const Bounds2 = require( 'DOT/Bounds2' ); + const BoundsIntersection = require( 'KITE/ops/BoundsIntersection' ); + const inherit = require( 'PHET_CORE/inherit' ); + const kite = require( 'KITE/kite' ); + const Matrix3 = require( 'DOT/Matrix3' ); + const Overlap = require( 'KITE/util/Overlap' ); + const Quadratic = require( 'KITE/segments/Quadratic' ); + const RayIntersection = require( 'KITE/util/RayIntersection' ); + const Segment = require( 'KITE/segments/Segment' ); + const SegmentIntersection = require( 'KITE/util/SegmentIntersection' ); + const Util = require( 'DOT/Util' ); + const Vector2 = require( 'DOT/Vector2' ); var solveQuadraticRootsReal = Util.solveQuadraticRootsReal; // function that returns an array of number var solveCubicRootsReal = Util.solveCubicRootsReal; // function that returns an array of number diff --git a/js/segments/EllipticalArc.js b/js/segments/EllipticalArc.js index 42ec82b..1b1ec55 100644 --- a/js/segments/EllipticalArc.js +++ b/js/segments/EllipticalArc.js @@ -11,19 +11,19 @@ * @author Jonathan Olson */ -define( function( require ) { +define( require => { 'use strict'; - var Arc = require( 'KITE/segments/Arc' ); - var Bounds2 = require( 'DOT/Bounds2' ); - var inherit = require( 'PHET_CORE/inherit' ); - var kite = require( 'KITE/kite' ); - var Matrix3 = require( 'DOT/Matrix3' ); - var RayIntersection = require( 'KITE/util/RayIntersection' ); - var Segment = require( 'KITE/segments/Segment' ); - var Transform3 = require( 'DOT/Transform3' ); - var Util = require( 'DOT/Util' ); - var Vector2 = require( 'DOT/Vector2' ); + const Arc = require( 'KITE/segments/Arc' ); + const Bounds2 = require( 'DOT/Bounds2' ); + const inherit = require( 'PHET_CORE/inherit' ); + const kite = require( 'KITE/kite' ); + const Matrix3 = require( 'DOT/Matrix3' ); + const RayIntersection = require( 'KITE/util/RayIntersection' ); + const Segment = require( 'KITE/segments/Segment' ); + const Transform3 = require( 'DOT/Transform3' ); + const Util = require( 'DOT/Util' ); + const Vector2 = require( 'DOT/Vector2' ); // constants var toDegrees = Util.toDegrees; diff --git a/js/segments/Line.js b/js/segments/Line.js index 9562ae3..e30cc4f 100644 --- a/js/segments/Line.js +++ b/js/segments/Line.js @@ -6,19 +6,19 @@ * @author Jonathan Olson */ -define( function( require ) { +define( require => { 'use strict'; - var Bounds2 = require( 'DOT/Bounds2' ); - var inherit = require( 'PHET_CORE/inherit' ); - var kite = require( 'KITE/kite' ); - var Overlap = require( 'KITE/util/Overlap' ); - var Ray2 = require( 'DOT/Ray2' ); - var RayIntersection = require( 'KITE/util/RayIntersection' ); - var Segment = require( 'KITE/segments/Segment' ); - var SegmentIntersection = require( 'KITE/util/SegmentIntersection' ); - var Util = require( 'DOT/Util' ); - var Vector2 = require( 'DOT/Vector2' ); + const Bounds2 = require( 'DOT/Bounds2' ); + const inherit = require( 'PHET_CORE/inherit' ); + const kite = require( 'KITE/kite' ); + const Overlap = require( 'KITE/util/Overlap' ); + const Ray2 = require( 'DOT/Ray2' ); + const RayIntersection = require( 'KITE/util/RayIntersection' ); + const Segment = require( 'KITE/segments/Segment' ); + const SegmentIntersection = require( 'KITE/util/SegmentIntersection' ); + const Util = require( 'DOT/Util' ); + const Vector2 = require( 'DOT/Vector2' ); var scratchVector2 = new Vector2( 0, 0 ); diff --git a/js/segments/Quadratic.js b/js/segments/Quadratic.js index d571705..4b5c84f 100644 --- a/js/segments/Quadratic.js +++ b/js/segments/Quadratic.js @@ -8,18 +8,18 @@ * @author Jonathan Olson */ -define( function( require ) { +define( require => { 'use strict'; - var Bounds2 = require( 'DOT/Bounds2' ); - var inherit = require( 'PHET_CORE/inherit' ); - var kite = require( 'KITE/kite' ); - var Matrix3 = require( 'DOT/Matrix3' ); - var Overlap = require( 'KITE/util/Overlap' ); - var RayIntersection = require( 'KITE/util/RayIntersection' ); - var Segment = require( 'KITE/segments/Segment' ); - var Util = require( 'DOT/Util' ); - var Vector2 = require( 'DOT/Vector2' ); + const Bounds2 = require( 'DOT/Bounds2' ); + const inherit = require( 'PHET_CORE/inherit' ); + const kite = require( 'KITE/kite' ); + const Matrix3 = require( 'DOT/Matrix3' ); + const Overlap = require( 'KITE/util/Overlap' ); + const RayIntersection = require( 'KITE/util/RayIntersection' ); + const Segment = require( 'KITE/segments/Segment' ); + const Util = require( 'DOT/Util' ); + const Vector2 = require( 'DOT/Vector2' ); // constants var solveQuadraticRootsReal = Util.solveQuadraticRootsReal; diff --git a/js/segments/Segment.js b/js/segments/Segment.js index eb77b50..5d56c95 100644 --- a/js/segments/Segment.js +++ b/js/segments/Segment.js @@ -9,15 +9,15 @@ * @author Jonathan Olson */ -define( function( require ) { +define( require => { 'use strict'; - var Bounds2 = require( 'DOT/Bounds2' ); - var BoundsIntersection = require( 'KITE/ops/BoundsIntersection' ); - var inherit = require( 'PHET_CORE/inherit' ); - var kite = require( 'KITE/kite' ); - var TinyEmitter = require( 'AXON/TinyEmitter' ); - var Util = require( 'DOT/Util' ); + const Bounds2 = require( 'DOT/Bounds2' ); + const BoundsIntersection = require( 'KITE/ops/BoundsIntersection' ); + const inherit = require( 'PHET_CORE/inherit' ); + const kite = require( 'KITE/kite' ); + const TinyEmitter = require( 'AXON/TinyEmitter' ); + const Util = require( 'DOT/Util' ); /** * @constructor diff --git a/js/util/LineStyles.js b/js/util/LineStyles.js index 9530a39..709e655 100644 --- a/js/util/LineStyles.js +++ b/js/util/LineStyles.js @@ -8,14 +8,14 @@ * @author Jonathan Olson */ -define( function( require ) { +define( require => { 'use strict'; - var Arc = require( 'KITE/segments/Arc' ); - var inherit = require( 'PHET_CORE/inherit' ); - var kite = require( 'KITE/kite' ); - var Line = require( 'KITE/segments/Line' ); - var Util = require( 'DOT/Util' ); + const Arc = require( 'KITE/segments/Arc' ); + const inherit = require( 'PHET_CORE/inherit' ); + const kite = require( 'KITE/kite' ); + const Line = require( 'KITE/segments/Line' ); + const Util = require( 'DOT/Util' ); // constants var lineLineIntersection = Util.lineLineIntersection; diff --git a/js/util/Overlap.js b/js/util/Overlap.js index bccfc69..4e67945 100644 --- a/js/util/Overlap.js +++ b/js/util/Overlap.js @@ -6,11 +6,11 @@ * @author Jonathan Olson */ -define( function( require ) { +define( require => { 'use strict'; - var inherit = require( 'PHET_CORE/inherit' ); - var kite = require( 'KITE/kite' ); + const inherit = require( 'PHET_CORE/inherit' ); + const kite = require( 'KITE/kite' ); /** * @public diff --git a/js/util/RayIntersection.js b/js/util/RayIntersection.js index 6e84b28..e397944 100644 --- a/js/util/RayIntersection.js +++ b/js/util/RayIntersection.js @@ -6,13 +6,13 @@ * @author Jonathan Olson */ -define( function( require ) { +define( require => { 'use strict'; - var inherit = require( 'PHET_CORE/inherit' ); - var kite = require( 'KITE/kite' ); - var Util = require( 'DOT/Util' ); - var Vector2 = require( 'DOT/Vector2' ); + const inherit = require( 'PHET_CORE/inherit' ); + const kite = require( 'KITE/kite' ); + const Util = require( 'DOT/Util' ); + const Vector2 = require( 'DOT/Vector2' ); /** * @public diff --git a/js/util/SegmentIntersection.js b/js/util/SegmentIntersection.js index 038a414..ba5766a 100644 --- a/js/util/SegmentIntersection.js +++ b/js/util/SegmentIntersection.js @@ -6,13 +6,13 @@ * @author Jonathan Olson */ -define( function( require ) { +define( require => { 'use strict'; - var inherit = require( 'PHET_CORE/inherit' ); - var kite = require( 'KITE/kite' ); - var Util = require( 'DOT/Util' ); - var Vector2 = require( 'DOT/Vector2' ); + const inherit = require( 'PHET_CORE/inherit' ); + const kite = require( 'KITE/kite' ); + const Util = require( 'DOT/Util' ); + const Vector2 = require( 'DOT/Vector2' ); /** * @public diff --git a/js/util/Subpath.js b/js/util/Subpath.js index d1429e2..e07c9fa 100644 --- a/js/util/Subpath.js +++ b/js/util/Subpath.js @@ -9,18 +9,18 @@ * @author Jonathan Olson */ -define( function( require ) { +define( require => { 'use strict'; - var Arc = require( 'KITE/segments/Arc' ); - var Bounds2 = require( 'DOT/Bounds2' ); - var inherit = require( 'PHET_CORE/inherit' ); - var kite = require( 'KITE/kite' ); - var Line = require( 'KITE/segments/Line' ); - var LineStyles = require( 'KITE/util/LineStyles' ); - var Segment = require( 'KITE/segments/Segment' ); - var TinyEmitter = require( 'AXON/TinyEmitter' ); - var Vector2 = require( 'DOT/Vector2' ); + const Arc = require( 'KITE/segments/Arc' ); + const Bounds2 = require( 'DOT/Bounds2' ); + const inherit = require( 'PHET_CORE/inherit' ); + const kite = require( 'KITE/kite' ); + const Line = require( 'KITE/segments/Line' ); + const LineStyles = require( 'KITE/util/LineStyles' ); + const Segment = require( 'KITE/segments/Segment' ); + const TinyEmitter = require( 'AXON/TinyEmitter' ); + const Vector2 = require( 'DOT/Vector2' ); /** * @public