-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
auto organize imports, phetsims/chipper#1462
- Loading branch information
Showing
41 changed files
with
116 additions
and
113 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
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 |
---|---|---|
|
@@ -32,14 +32,14 @@ | |
* @author Jonathan Olson <[email protected]> | ||
*/ | ||
|
||
import { AllowedKeysString, EnglishStringToCodeMap, hotkeyManager, KeyDescriptor, OneKeyStroke, scenery } from '../imports.js'; | ||
import optionize from '../../../phet-core/js/optionize.js'; | ||
import EnabledComponent, { EnabledComponentOptions } from '../../../axon/js/EnabledComponent.js'; | ||
import TProperty from '../../../axon/js/TProperty.js'; | ||
import BooleanProperty from '../../../axon/js/BooleanProperty.js'; | ||
import CallbackTimer from '../../../axon/js/CallbackTimer.js'; | ||
import DerivedProperty from '../../../axon/js/DerivedProperty.js'; | ||
import EnabledComponent, { EnabledComponentOptions } from '../../../axon/js/EnabledComponent.js'; | ||
import TProperty from '../../../axon/js/TProperty.js'; | ||
import TReadOnlyProperty from '../../../axon/js/TReadOnlyProperty.js'; | ||
import optionize from '../../../phet-core/js/optionize.js'; | ||
import { AllowedKeysString, EnglishStringToCodeMap, hotkeyManager, KeyDescriptor, OneKeyStroke, scenery } from '../imports.js'; | ||
|
||
export type HotkeyFireOnHoldTiming = 'browser' | 'custom'; | ||
|
||
|
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 |
---|---|---|
|
@@ -7,9 +7,9 @@ | |
* @author Jonathan Olson <[email protected]> | ||
*/ | ||
|
||
import { Hotkey, scenery } from '../imports.js'; | ||
import TinyProperty from '../../../axon/js/TinyProperty.js'; | ||
import TProperty from '../../../axon/js/TProperty.js'; | ||
import { Hotkey, scenery } from '../imports.js'; | ||
|
||
class GlobalHotkeyRegistry { | ||
|
||
|
@@ -28,6 +28,7 @@ class GlobalHotkeyRegistry { | |
this.hotkeysProperty.value = new Set( [ ...this.hotkeysProperty.value ].filter( value => value !== hotkey ) ); | ||
} | ||
} | ||
|
||
scenery.register( 'GlobalHotkeyRegistry', GlobalHotkeyRegistry ); | ||
|
||
const globalHotkeyRegistry = new GlobalHotkeyRegistry(); | ||
|
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]> | ||
*/ | ||
|
||
import TReadOnlyProperty from '../../../axon/js/TReadOnlyProperty.js'; | ||
import Bounds2 from '../../../dot/js/Bounds2.js'; | ||
import StrictOmit from '../../../phet-core/js/types/StrictOmit.js'; | ||
import Matrix3 from '../../../dot/js/Matrix3.js'; | ||
import Vector2 from '../../../dot/js/Vector2.js'; | ||
import { Shape } from '../../../kite/js/imports.js'; | ||
import extendDefined from '../../../phet-core/js/extendDefined.js'; | ||
import StrictOmit from '../../../phet-core/js/types/StrictOmit.js'; | ||
import { CanvasContextWrapper, CanvasSelfDrawable, CircleCanvasDrawable, CircleDOMDrawable, CircleSVGDrawable, DOMSelfDrawable, Features, Instance, Path, PathOptions, Renderer, scenery, SVGSelfDrawable, TCircleDrawable, VoicingOptions } from '../imports.js'; | ||
import TReadOnlyProperty from '../../../axon/js/TReadOnlyProperty.js'; | ||
|
||
const CIRCLE_OPTION_KEYS = [ | ||
'radius' // {number} - see setRadius() for more documentation | ||
|
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,16 +7,16 @@ | |
* @author Jonathan Olson <[email protected]> | ||
*/ | ||
|
||
import TReadOnlyProperty, { isTReadOnlyProperty } from '../../../axon/js/TReadOnlyProperty.js'; | ||
import Bounds2 from '../../../dot/js/Bounds2.js'; | ||
import IOType from '../../../tandem/js/types/IOType.js'; | ||
import StringIO from '../../../tandem/js/types/StringIO.js'; | ||
import VoidIO from '../../../tandem/js/types/VoidIO.js'; | ||
import Matrix3 from '../../../dot/js/Matrix3.js'; | ||
import Vector2 from '../../../dot/js/Vector2.js'; | ||
import { Shape } from '../../../kite/js/imports.js'; | ||
import { CanvasContextWrapper, CanvasSelfDrawable, DOMSelfDrawable, Imageable, ImageableImage, ImageableOptions, ImageCanvasDrawable, ImageDOMDrawable, ImageSVGDrawable, ImageWebGLDrawable, Instance, Node, NodeOptions, Renderer, scenery, SpriteSheet, SVGSelfDrawable, TImageDrawable, WebGLSelfDrawable } from '../imports.js'; | ||
import optionize, { combineOptions, EmptySelfOptions } from '../../../phet-core/js/optionize.js'; | ||
import TReadOnlyProperty, { isTReadOnlyProperty } from '../../../axon/js/TReadOnlyProperty.js'; | ||
import IOType from '../../../tandem/js/types/IOType.js'; | ||
import StringIO from '../../../tandem/js/types/StringIO.js'; | ||
import VoidIO from '../../../tandem/js/types/VoidIO.js'; | ||
import { CanvasContextWrapper, CanvasSelfDrawable, DOMSelfDrawable, Imageable, ImageableImage, ImageableOptions, ImageCanvasDrawable, ImageDOMDrawable, ImageSVGDrawable, ImageWebGLDrawable, Instance, Node, NodeOptions, Renderer, scenery, SpriteSheet, SVGSelfDrawable, TImageDrawable, WebGLSelfDrawable } from '../imports.js'; | ||
|
||
|
||
// Image-specific options that can be passed in the constructor or mutate() call. | ||
|
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]> | ||
*/ | ||
|
||
import TEmitter from '../../../axon/js/TEmitter.js'; | ||
import TinyEmitter from '../../../axon/js/TinyEmitter.js'; | ||
import TinyForwardingProperty from '../../../axon/js/TinyForwardingProperty.js'; | ||
import TProperty from '../../../axon/js/TProperty.js'; | ||
import TReadOnlyProperty from '../../../axon/js/TReadOnlyProperty.js'; | ||
import Matrix3 from '../../../dot/js/Matrix3.js'; | ||
import Utils from '../../../dot/js/Utils.js'; | ||
import Vector2 from '../../../dot/js/Vector2.js'; | ||
import { Shape } from '../../../kite/js/imports.js'; | ||
import cleanArray from '../../../phet-core/js/cleanArray.js'; | ||
import Matrix3 from '../../../dot/js/Matrix3.js'; | ||
import Vector2 from '../../../dot/js/Vector2.js'; | ||
import { scenery, svgns, xlinkns } from '../imports.js'; | ||
import IntentionalAny from '../../../phet-core/js/types/IntentionalAny.js'; | ||
import TEmitter from '../../../axon/js/TEmitter.js'; | ||
import TinyForwardingProperty from '../../../axon/js/TinyForwardingProperty.js'; | ||
import TReadOnlyProperty from '../../../axon/js/TReadOnlyProperty.js'; | ||
import TProperty from '../../../axon/js/TProperty.js'; | ||
import Constructor from '../../../phet-core/js/types/Constructor.js'; | ||
import IntentionalAny from '../../../phet-core/js/types/IntentionalAny.js'; | ||
import { scenery, svgns, xlinkns } from '../imports.js'; | ||
|
||
// Need to poly-fill on some browsers | ||
const log2 = Math.log2 || function( x: number ) { return Math.log( x ) / Math.LN2; }; | ||
|
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,10 +6,10 @@ | |
* @author Jonathan Olson <[email protected]> | ||
*/ | ||
|
||
import { Node, scenery } from '../imports.js'; | ||
import memoize from '../../../phet-core/js/memoize.js'; | ||
import IntentionalAny from '../../../phet-core/js/types/IntentionalAny.js'; | ||
import Constructor from '../../../phet-core/js/types/Constructor.js'; | ||
import IntentionalAny from '../../../phet-core/js/types/IntentionalAny.js'; | ||
import { Node, scenery } from '../imports.js'; | ||
|
||
const Leaf = memoize( <SuperType extends Constructor<Node>>( type: SuperType ): SuperType => { | ||
|
||
|
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]> | ||
*/ | ||
|
||
import TReadOnlyProperty from '../../../axon/js/TReadOnlyProperty.js'; | ||
import Bounds2 from '../../../dot/js/Bounds2.js'; | ||
import StrictOmit from '../../../phet-core/js/types/StrictOmit.js'; | ||
import Matrix3 from '../../../dot/js/Matrix3.js'; | ||
import Vector2 from '../../../dot/js/Vector2.js'; | ||
import { Shape } from '../../../kite/js/imports.js'; | ||
import extendDefined from '../../../phet-core/js/extendDefined.js'; | ||
import StrictOmit from '../../../phet-core/js/types/StrictOmit.js'; | ||
import { CanvasContextWrapper, CanvasSelfDrawable, Instance, LineCanvasDrawable, LineSVGDrawable, Path, PathOptions, Renderer, scenery, SVGSelfDrawable, TLineDrawable } from '../imports.js'; | ||
import TReadOnlyProperty from '../../../axon/js/TReadOnlyProperty.js'; | ||
|
||
const LINE_OPTION_KEYS = [ | ||
'p1', // {Vector2} - Start position | ||
|
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,17 +6,17 @@ | |
* @author Jonathan Olson <[email protected]> | ||
*/ | ||
|
||
import { isTReadOnlyProperty } from '../../../axon/js/TReadOnlyProperty.js'; | ||
import Vector2 from '../../../dot/js/Vector2.js'; | ||
import { LINE_STYLE_DEFAULT_OPTIONS, LineCap, LineJoin, LineStyles } from '../../../kite/js/imports.js'; | ||
import arrayRemove from '../../../phet-core/js/arrayRemove.js'; | ||
import assertHasProperties from '../../../phet-core/js/assertHasProperties.js'; | ||
import inheritance from '../../../phet-core/js/inheritance.js'; | ||
import platform from '../../../phet-core/js/platform.js'; | ||
import memoize from '../../../phet-core/js/memoize.js'; | ||
import { CanvasContextWrapper, Color, Gradient, LinearGradient, Node, Paint, PaintDef, Path, Pattern, RadialGradient, Renderer, scenery, Text, TPaint, TPaintableDrawable } from '../imports.js'; | ||
import platform from '../../../phet-core/js/platform.js'; | ||
import Constructor from '../../../phet-core/js/types/Constructor.js'; | ||
import IntentionalAny from '../../../phet-core/js/types/IntentionalAny.js'; | ||
import Vector2 from '../../../dot/js/Vector2.js'; | ||
import { isTReadOnlyProperty } from '../../../axon/js/TReadOnlyProperty.js'; | ||
import { CanvasContextWrapper, Color, Gradient, LinearGradient, Node, Paint, PaintDef, Path, Pattern, RadialGradient, Renderer, scenery, Text, TPaint, TPaintableDrawable } from '../imports.js'; | ||
|
||
const isSafari5 = platform.safari5; | ||
|
||
|
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,17 +6,17 @@ | |
* @author Jonathan Olson <[email protected]> | ||
*/ | ||
|
||
import TinyForwardingProperty from '../../../axon/js/TinyForwardingProperty.js'; | ||
import TProperty from '../../../axon/js/TProperty.js'; | ||
import TReadOnlyProperty, { isTReadOnlyProperty } from '../../../axon/js/TReadOnlyProperty.js'; | ||
import Bounds2 from '../../../dot/js/Bounds2.js'; | ||
import { Shape } from '../../../kite/js/imports.js'; | ||
import Matrix3 from '../../../dot/js/Matrix3.js'; | ||
import Vector2 from '../../../dot/js/Vector2.js'; | ||
import { CanvasContextWrapper, CanvasSelfDrawable, Instance, Node, NodeOptions, Paint, Paintable, PAINTABLE_DRAWABLE_MARK_FLAGS, PAINTABLE_OPTION_KEYS, PaintableOptions, PathCanvasDrawable, PathSVGDrawable, Renderer, scenery, SVGSelfDrawable, TPathDrawable } from '../imports.js'; | ||
import { Shape } from '../../../kite/js/imports.js'; | ||
import optionize, { combineOptions } from '../../../phet-core/js/optionize.js'; | ||
import TReadOnlyProperty, { isTReadOnlyProperty } from '../../../axon/js/TReadOnlyProperty.js'; | ||
import WithRequired from '../../../phet-core/js/types/WithRequired.js'; | ||
import StrictOmit from '../../../phet-core/js/types/StrictOmit.js'; | ||
import TinyForwardingProperty from '../../../axon/js/TinyForwardingProperty.js'; | ||
import TProperty from '../../../axon/js/TProperty.js'; | ||
import WithRequired from '../../../phet-core/js/types/WithRequired.js'; | ||
import { CanvasContextWrapper, CanvasSelfDrawable, Instance, Node, NodeOptions, Paint, Paintable, PAINTABLE_DRAWABLE_MARK_FLAGS, PAINTABLE_OPTION_KEYS, PaintableOptions, PathCanvasDrawable, PathSVGDrawable, Renderer, scenery, SVGSelfDrawable, TPathDrawable } from '../imports.js'; | ||
|
||
const PATH_OPTION_KEYS = [ | ||
'boundsMethod', | ||
|
Oops, something went wrong.