-
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
58 changed files
with
185 additions
and
185 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 |
---|---|---|
|
@@ -28,13 +28,13 @@ | |
* @author Sharfudeen Ashraf | ||
* @author Jonathan Olson <[email protected]> | ||
*/ | ||
define( function( require ) { | ||
define( require => { | ||
'use strict'; | ||
|
||
// modules | ||
var Bounds2 = require( 'DOT/Bounds2' ); | ||
var dot = require( 'DOT/dot' ); | ||
var inherit = require( 'PHET_CORE/inherit' ); | ||
const Bounds2 = require( 'DOT/Bounds2' ); | ||
const dot = require( 'DOT/dot' ); | ||
const inherit = require( 'PHET_CORE/inherit' ); | ||
|
||
/** | ||
* Creates a BinPacker with the specified containing bounds. | ||
|
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 |
---|---|---|
|
@@ -13,13 +13,13 @@ | |
* @author Jonathan Olson <[email protected]> | ||
*/ | ||
|
||
define( function( require ) { | ||
define( require => { | ||
'use strict'; | ||
|
||
var dot = require( 'DOT/dot' ); | ||
var inherit = require( 'PHET_CORE/inherit' ); | ||
var Poolable = require( 'PHET_CORE/Poolable' ); | ||
var Vector2 = require( 'DOT/Vector2' ); | ||
const dot = require( 'DOT/dot' ); | ||
const inherit = require( 'PHET_CORE/inherit' ); | ||
const Poolable = require( 'PHET_CORE/Poolable' ); | ||
const Vector2 = require( 'DOT/Vector2' ); | ||
|
||
// Temporary instances to be used in the transform method. | ||
var scratchVector2 = new dot.Vector2( 0, 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
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 |
---|---|---|
|
@@ -13,12 +13,12 @@ | |
* @author Jonathan Olson <[email protected]> | ||
*/ | ||
|
||
define( function( require ) { | ||
define( require => { | ||
'use strict'; | ||
|
||
var dot = require( 'DOT/dot' ); | ||
var inherit = require( 'PHET_CORE/inherit' ); | ||
var Poolable = require( 'PHET_CORE/Poolable' ); | ||
const dot = require( 'DOT/dot' ); | ||
const inherit = require( 'PHET_CORE/inherit' ); | ||
const Poolable = require( 'PHET_CORE/Poolable' ); | ||
|
||
require( 'DOT/Vector3' ); | ||
|
||
|
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 |
---|---|---|
|
@@ -34,10 +34,10 @@ | |
* @author Jonathan Olson <[email protected]> | ||
*/ | ||
|
||
define( function( require ) { | ||
define( require => { | ||
'use strict'; | ||
|
||
var dot = require( 'DOT/dot' ); | ||
const dot = require( 'DOT/dot' ); | ||
|
||
/** | ||
* counter-clockwise turn if > 0, clockwise turn if < 0, collinear if === 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,11 +8,11 @@ | |
* @author Jonathan Olson <[email protected]> | ||
*/ | ||
|
||
define( function( require ) { | ||
define( require => { | ||
'use strict'; | ||
|
||
var dot = require( 'DOT/dot' ); | ||
var inherit = require( 'PHET_CORE/inherit' ); | ||
const dot = require( 'DOT/dot' ); | ||
const inherit = require( 'PHET_CORE/inherit' ); | ||
|
||
/** | ||
* For solving ax'' + bx' + cx = 0 with initial conditions x(0) and x'(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 |
---|---|---|
|
@@ -12,16 +12,16 @@ | |
* | ||
* @author Jonathan Olson <[email protected]> | ||
*/ | ||
define( function( require ) { | ||
define( require => { | ||
'use strict'; | ||
|
||
// modules | ||
var arrayRemove = require( 'PHET_CORE/arrayRemove' ); | ||
var Bounds2 = require( 'DOT/Bounds2' ); | ||
var dot = require( 'DOT/dot' ); | ||
var inherit = require( 'PHET_CORE/inherit' ); | ||
var Util = require( 'DOT/Util' ); | ||
var Vector2 = require( 'DOT/Vector2' ); | ||
const arrayRemove = require( 'PHET_CORE/arrayRemove' ); | ||
const Bounds2 = require( 'DOT/Bounds2' ); | ||
const dot = require( 'DOT/dot' ); | ||
const inherit = require( 'PHET_CORE/inherit' ); | ||
const Util = require( 'DOT/Util' ); | ||
const Vector2 = require( 'DOT/Vector2' ); | ||
|
||
/** | ||
* @public | ||
|
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,11 +6,11 @@ | |
* @author Jonathan Olson <[email protected]> | ||
*/ | ||
|
||
define( function( require ) { | ||
define( require => { | ||
'use strict'; | ||
|
||
var dot = require( 'DOT/dot' ); | ||
var inherit = require( 'PHET_CORE/inherit' ); | ||
const dot = require( 'DOT/dot' ); | ||
const inherit = require( 'PHET_CORE/inherit' ); | ||
require( 'DOT/Bounds2' ); | ||
|
||
/** | ||
|
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 |
---|---|---|
|
@@ -21,10 +21,10 @@ | |
* @author Jonathan Olson <[email protected]> | ||
*/ | ||
|
||
define( function( require ) { | ||
define( require => { | ||
'use strict'; | ||
|
||
var dot = require( 'DOT/dot' ); | ||
const dot = require( 'DOT/dot' ); | ||
|
||
var ArrayType = window.Float64Array || Array; | ||
|
||
|
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,10 +6,10 @@ | |
* @author Jonathan Olson <[email protected]> | ||
*/ | ||
|
||
define( function( require ) { | ||
define( require => { | ||
'use strict'; | ||
|
||
var dot = require( 'DOT/dot' ); | ||
const dot = require( 'DOT/dot' ); | ||
|
||
var ArrayType = window.Float64Array || Array; | ||
|
||
|
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 |
---|---|---|
|
@@ -6,14 +6,14 @@ | |
* @author Jonathan Olson <[email protected]> | ||
*/ | ||
|
||
define( function( require ) { | ||
define( require => { | ||
'use strict'; | ||
|
||
var dot = require( 'DOT/dot' ); | ||
const dot = require( 'DOT/dot' ); | ||
|
||
var ArrayType = window.Float64Array || Array; | ||
|
||
var isArray = require( 'PHET_CORE/isArray' ); | ||
const isArray = require( 'PHET_CORE/isArray' ); | ||
|
||
require( 'DOT/SingularValueDecomposition' ); | ||
require( 'DOT/LUDecomposition' ); | ||
|
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,11 +6,11 @@ | |
* @author Jonathan Olson <[email protected]> | ||
*/ | ||
|
||
define( function( require ) { | ||
define( require => { | ||
'use strict'; | ||
|
||
var dot = require( 'DOT/dot' ); | ||
var Poolable = require( 'PHET_CORE/Poolable' ); | ||
const dot = require( 'DOT/dot' ); | ||
const Poolable = require( 'PHET_CORE/Poolable' ); | ||
|
||
require( 'DOT/Vector2' ); | ||
require( 'DOT/Vector3' ); | ||
|
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 |
---|---|---|
|
@@ -9,10 +9,10 @@ | |
* @author Jonathan Olson <[email protected]> | ||
*/ | ||
|
||
define( function( require ) { | ||
define( require => { | ||
'use strict'; | ||
|
||
var dot = require( 'DOT/dot' ); | ||
const dot = require( 'DOT/dot' ); | ||
|
||
require( 'DOT/Vector3' ); | ||
require( 'DOT/Vector4' ); | ||
|
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,10 +7,10 @@ | |
* @author Jonathan Olson <[email protected]> | ||
*/ | ||
|
||
define( function( require ) { | ||
define( require => { | ||
'use strict'; | ||
|
||
var dot = require( 'DOT/dot' ); | ||
const dot = require( 'DOT/dot' ); | ||
|
||
/* | ||
* Matrices are stored as flat typed arrays with row-major indices. For example, for a 3x3: | ||
|
Oops, something went wrong.