-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
var -> const in require statements, use arrow function in define requ…
…ire call, phetsims/tasks#1010
- Loading branch information
Showing
26 changed files
with
196 additions
and
196 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,25 +18,25 @@ | |
* @author Jonathan Olson <[email protected]> | ||
*/ | ||
|
||
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) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,10 +10,10 @@ | |
* @author Jonathan Olson <[email protected]> | ||
*/ | ||
|
||
define( function( require ) { | ||
define( require => { | ||
'use strict'; | ||
|
||
var Namespace = require( 'PHET_CORE/Namespace' ); | ||
const Namespace = require( 'PHET_CORE/Namespace' ); | ||
|
||
var kite = new Namespace( 'kite' ); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,17 +7,17 @@ | |
* @author Jonathan Olson <[email protected]> | ||
*/ | ||
|
||
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; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,14 +9,14 @@ | |
* @author Jonathan Olson <[email protected]> | ||
*/ | ||
|
||
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) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,16 +6,16 @@ | |
* @author Jonathan Olson <[email protected]> | ||
*/ | ||
|
||
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; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,13 +11,13 @@ | |
* @author Jonathan Olson <[email protected]> | ||
*/ | ||
|
||
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; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,28 +23,28 @@ | |
* @author Jonathan Olson <[email protected]> | ||
*/ | ||
|
||
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; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,13 +7,13 @@ | |
* @author Jonathan Olson <[email protected]> | ||
*/ | ||
|
||
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) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,14 +14,14 @@ | |
* @author Jonathan Olson <[email protected]> | ||
*/ | ||
|
||
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; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,15 +8,15 @@ | |
* @author Jonathan Olson <[email protected]> | ||
*/ | ||
|
||
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; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,19 +6,19 @@ | |
* @author Jonathan Olson <[email protected]> | ||
*/ | ||
|
||
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; | ||
|
Oops, something went wrong.