Skip to content

Commit

Permalink
optimize and sort imports, phetsims/chipper#1462
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Nov 8, 2024
1 parent 70b6edd commit e52e7eb
Show file tree
Hide file tree
Showing 11 changed files with 31 additions and 31 deletions.
6 changes: 3 additions & 3 deletions js/accessibility/AccessibleNumberSpinner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,17 @@

import CallbackTimer, { CallbackTimerCallback } from '../../../axon/js/CallbackTimer.js';
import Emitter from '../../../axon/js/Emitter.js';
import TEmitter from '../../../axon/js/TEmitter.js';
import validate from '../../../axon/js/validate.js';
import assertHasProperties from '../../../phet-core/js/assertHasProperties.js';
import Constructor from '../../../phet-core/js/types/Constructor.js';
import IntentionalAny from '../../../phet-core/js/types/IntentionalAny.js';
import { combineOptions } from '../../../phet-core/js/optionize.js';
import Orientation from '../../../phet-core/js/Orientation.js';
import Constructor from '../../../phet-core/js/types/Constructor.js';
import IntentionalAny from '../../../phet-core/js/types/IntentionalAny.js';
import { DelayedMutate, KeyboardUtils, Node, SceneryEvent, TInputListener } from '../../../scenery/js/imports.js';
import sun from '../sun.js';
import SunStrings from '../SunStrings.js';
import AccessibleValueHandler, { AccessibleValueHandlerOptions, TAccessibleValueHandler } from './AccessibleValueHandler.js';
import TEmitter from '../../../axon/js/TEmitter.js';

const ACCESSIBLE_NUMBER_SPINNER_OPTIONS = [
'pdomTimerDelay',
Expand Down
22 changes: 11 additions & 11 deletions js/accessibility/AccessibleValueHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,23 @@
* @author Jesse Greenberg (PhET Interactive Simulations)
*/

import Utils from '../../../dot/js/Utils.js';
import DynamicProperty from '../../../axon/js/DynamicProperty.js';
import Multilink, { UnknownMultilink } from '../../../axon/js/Multilink.js';
import Property from '../../../axon/js/Property.js';
import TProperty from '../../../axon/js/TProperty.js';
import TReadOnlyProperty from '../../../axon/js/TReadOnlyProperty.js';
import Range from '../../../dot/js/Range.js';
import Utils from '../../../dot/js/Utils.js';
import assertHasProperties from '../../../phet-core/js/assertHasProperties.js';
import optionize, { combineOptions } from '../../../phet-core/js/optionize.js';
import Orientation from '../../../phet-core/js/Orientation.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 { animatedPanZoomSingleton, DelayedMutate, eventCodeToEnglishString, HotkeyData, KeyboardUtils, Node, NodeOptions, PDOMPointer, PDOMUtils, PDOMValueType, SceneryEvent, SceneryListenerFunction, TInputListener, TVoicing, Voicing, VoicingOptions } from '../../../scenery/js/imports.js';
import Utterance from '../../../utterance-queue/js/Utterance.js';
import sun from '../sun.js';
import optionize, { combineOptions } from '../../../phet-core/js/optionize.js';
import Multilink, { UnknownMultilink } from '../../../axon/js/Multilink.js';
import UtteranceQueue from '../../../utterance-queue/js/UtteranceQueue.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 TReadOnlyProperty from '../../../axon/js/TReadOnlyProperty.js';
import DynamicProperty from '../../../axon/js/DynamicProperty.js';
import Property from '../../../axon/js/Property.js';
import platform from '../../../phet-core/js/platform.js';
import sun from '../sun.js';
import AccessibleValueHandlerHotkeyDataCollection from './AccessibleValueHandlerHotkeyDataCollection.js';

// constants
Expand Down
8 changes: 4 additions & 4 deletions js/buttons/BooleanRectangularToggleButton.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
* @author John Blanco (PhET Interactive Simulations)
*/

import Property from '../../../axon/js/Property.js';
import optionize, { EmptySelfOptions } from '../../../phet-core/js/optionize.js';
import StrictOmit from '../../../phet-core/js/types/StrictOmit.js';
import { Node } from '../../../scenery/js/imports.js';
import Tandem from '../../../tandem/js/Tandem.js';
import BooleanToggleNode from '../BooleanToggleNode.js';
import sun from '../sun.js';
import RectangularToggleButton, { RectangularToggleButtonOptions } from './RectangularToggleButton.js';
import { Node } from '../../../scenery/js/imports.js';
import optionize, { EmptySelfOptions } from '../../../phet-core/js/optionize.js';
import StrictOmit from '../../../phet-core/js/types/StrictOmit.js';
import Property from '../../../axon/js/Property.js';

type SelfOptions = EmptySelfOptions;

Expand Down
8 changes: 4 additions & 4 deletions js/buttons/BooleanRoundToggleButton.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
* @author Sam Reid
*/

import Property from '../../../axon/js/Property.js';
import optionize, { EmptySelfOptions } from '../../../phet-core/js/optionize.js';
import StrictOmit from '../../../phet-core/js/types/StrictOmit.js';
import { Node } from '../../../scenery/js/imports.js';
import Tandem from '../../../tandem/js/Tandem.js';
import BooleanToggleNode from '../BooleanToggleNode.js';
import sun from '../sun.js';
import RoundToggleButton, { RoundToggleButtonOptions } from './RoundToggleButton.js';
import { Node } from '../../../scenery/js/imports.js';
import optionize, { EmptySelfOptions } from '../../../phet-core/js/optionize.js';
import StrictOmit from '../../../phet-core/js/types/StrictOmit.js';
import Property from '../../../axon/js/Property.js';

type SelfOptions = EmptySelfOptions;

Expand Down
4 changes: 2 additions & 2 deletions js/buttons/RadioButtonInteractionStateProperty.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
*/

import { DerivedProperty5 } from '../../../axon/js/DerivedProperty.js';
import sun from '../sun.js';
import RadioButtonInteractionState from './RadioButtonInteractionState.js';
import TProperty from '../../../axon/js/TProperty.js';
import sun from '../sun.js';
import ButtonModel from './ButtonModel.js';
import RadioButtonInteractionState from './RadioButtonInteractionState.js';

export default class RadioButtonInteractionStateProperty<T> extends DerivedProperty5<RadioButtonInteractionState, boolean, boolean, boolean, boolean, T> {

Expand Down
2 changes: 1 addition & 1 deletion js/buttons/RectangularButton.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
*/

import DerivedProperty from '../../../axon/js/DerivedProperty.js';
import TinyProperty from '../../../axon/js/TinyProperty.js';
import TReadOnlyProperty from '../../../axon/js/TReadOnlyProperty.js';
import Dimension2 from '../../../dot/js/Dimension2.js';
import { Shape } from '../../../kite/js/imports.js';
Expand All @@ -20,7 +21,6 @@ import ButtonModel from './ButtonModel.js';
import ButtonNode, { ButtonNodeOptions } from './ButtonNode.js';
import RadioButtonInteractionState from './RadioButtonInteractionState.js';
import TButtonAppearanceStrategy, { TButtonAppearanceStrategyOptions } from './TButtonAppearanceStrategy.js';
import TinyProperty from '../../../axon/js/TinyProperty.js';

// constants
const VERTICAL_HIGHLIGHT_GRADIENT_LENGTH = 7; // In screen coords, which are roughly pixels.
Expand Down
2 changes: 1 addition & 1 deletion js/buttons/RectangularPushButton.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@

import InstanceRegistry from '../../../phet-core/js/documentation/InstanceRegistry.js';
import optionize from '../../../phet-core/js/optionize.js';
import sharedSoundPlayers from '../../../tambo/js/sharedSoundPlayers.js';
import TSoundPlayer from '../../../tambo/js/TSoundPlayer.js';
import Tandem from '../../../tandem/js/Tandem.js';
import sun from '../sun.js';
import PushButtonInteractionStateProperty from './PushButtonInteractionStateProperty.js';
import PushButtonModel, { PushButtonListener, PushButtonModelOptions } from './PushButtonModel.js';
import RectangularButton, { RectangularButtonOptions } from './RectangularButton.js';
import sharedSoundPlayers from '../../../tambo/js/sharedSoundPlayers.js';

type SelfOptions = {
soundPlayer?: TSoundPlayer;
Expand Down
4 changes: 2 additions & 2 deletions js/buttons/RectangularToggleButton.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@
* @author Sam Reid (PhET Interactive Simulations)
*/

import Property from '../../../axon/js/Property.js';
import optionize from '../../../phet-core/js/optionize.js';
import sharedSoundPlayers from '../../../tambo/js/sharedSoundPlayers.js';
import TSoundPlayer from '../../../tambo/js/TSoundPlayer.js';
import Tandem from '../../../tandem/js/Tandem.js';
import sun from '../sun.js';
import RectangularButton, { RectangularButtonOptions } from './RectangularButton.js';
import ToggleButtonInteractionStateProperty from './ToggleButtonInteractionStateProperty.js';
import ToggleButtonModel from './ToggleButtonModel.js';
import Property from '../../../axon/js/Property.js';
import sharedSoundPlayers from '../../../tambo/js/sharedSoundPlayers.js';

type SelfOptions = {

Expand Down
2 changes: 1 addition & 1 deletion js/buttons/RoundStickyToggleButton.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@

import TProperty from '../../../axon/js/TProperty.js';
import optionize from '../../../phet-core/js/optionize.js';
import sharedSoundPlayers from '../../../tambo/js/sharedSoundPlayers.js';
import TSoundPlayer from '../../../tambo/js/TSoundPlayer.js';
import Tandem from '../../../tandem/js/Tandem.js';
import sun from '../sun.js';
import RoundButton, { RoundButtonOptions } from './RoundButton.js';
import StickyToggleButtonInteractionStateProperty from './StickyToggleButtonInteractionStateProperty.js';
import StickyToggleButtonModel from './StickyToggleButtonModel.js';
import sharedSoundPlayers from '../../../tambo/js/sharedSoundPlayers.js';

type SelfOptions = {
soundPlayer?: TSoundPlayer;
Expand Down
2 changes: 1 addition & 1 deletion js/buttons/RoundToggleButton.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@

import Property from '../../../axon/js/Property.js';
import optionize from '../../../phet-core/js/optionize.js';
import sharedSoundPlayers from '../../../tambo/js/sharedSoundPlayers.js';
import TSoundPlayer from '../../../tambo/js/TSoundPlayer.js';
import Tandem from '../../../tandem/js/Tandem.js';
import sun from '../sun.js';
import RoundButton, { RoundButtonOptions } from './RoundButton.js';
import ToggleButtonInteractionStateProperty from './ToggleButtonInteractionStateProperty.js';
import ToggleButtonModel from './ToggleButtonModel.js';
import sharedSoundPlayers from '../../../tambo/js/sharedSoundPlayers.js';

type SelfOptions = {

Expand Down
2 changes: 1 addition & 1 deletion js/buttons/TButtonAppearanceStrategy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
* @author Michael Kauzmann (PhET Interactive Simulations)
*/

import { Color, TPaint, Path } from '../../../scenery/js/imports.js';
import TReadOnlyProperty from '../../../axon/js/TReadOnlyProperty.js';
import { Color, Path, TPaint } from '../../../scenery/js/imports.js';
import ButtonInteractionState from './ButtonInteractionState.js';
import RadioButtonInteractionState from './RadioButtonInteractionState.js';

Expand Down

0 comments on commit e52e7eb

Please sign in to comment.