From 7a012e768b3ffd480af1651536119b4650cbb14b Mon Sep 17 00:00:00 2001 From: Sam Reid Date: Thu, 2 Mar 2023 08:47:58 -0700 Subject: [PATCH] Use export default, see https://github.com/phetsims/quadrilateral/issues/398 --- js/quadrilateral/QuadrilateralScreen.ts | 5 ++--- js/quadrilateral/model/NamedQuadrilateral.ts | 3 +-- js/quadrilateral/model/ParallelSideChecker.ts | 3 +-- js/quadrilateral/model/QuadrilateralModel.ts | 3 +-- js/quadrilateral/model/QuadrilateralMovable.ts | 3 +-- js/quadrilateral/model/QuadrilateralOptionsModel.ts | 3 +-- js/quadrilateral/model/QuadrilateralShapeDetector.ts | 3 +-- js/quadrilateral/model/QuadrilateralShapeModel.ts | 3 +-- js/quadrilateral/model/QuadrilateralSide.ts | 3 +-- js/quadrilateral/model/QuadrilateralSoundOptionsModel.ts | 3 +-- js/quadrilateral/model/QuadrilateralTangibleOptionsModel.ts | 3 +-- js/quadrilateral/model/QuadrilateralUtils.ts | 3 +-- js/quadrilateral/model/QuadrilateralVertex.ts | 3 +-- js/quadrilateral/model/QuadrilateralVisibilityModel.ts | 3 +-- js/quadrilateral/model/ShapeSnapshot.ts | 3 +-- js/quadrilateral/model/SideLabel.ts | 3 +-- js/quadrilateral/model/SidePair.ts | 3 +-- js/quadrilateral/model/VertexLabel.ts | 3 +-- js/quadrilateral/model/VertexPair.ts | 3 +-- js/quadrilateral/model/prototype/MarkerDetectionModel.ts | 3 +-- js/quadrilateral/model/prototype/TangibleConnectionModel.ts | 3 +-- js/quadrilateral/view/CornerGuideNode.ts | 3 +-- js/quadrilateral/view/MoveShapeHelpSection.ts | 3 +-- js/quadrilateral/view/QuadrilateralAlerter.ts | 3 +-- js/quadrilateral/view/QuadrilateralDebuggingPanel.ts | 3 +-- js/quadrilateral/view/QuadrilateralDescriber.ts | 3 +-- js/quadrilateral/view/QuadrilateralDiagonalGuidesNode.ts | 3 +-- js/quadrilateral/view/QuadrilateralGridNode.ts | 3 +-- js/quadrilateral/view/QuadrilateralInteractionCueNode.ts | 3 +-- js/quadrilateral/view/QuadrilateralKeyboardHelpContent.ts | 3 +-- js/quadrilateral/view/QuadrilateralModelViewTransform.ts | 3 +-- js/quadrilateral/view/QuadrilateralMovableNode.ts | 3 +-- js/quadrilateral/view/QuadrilateralNode.ts | 3 +-- js/quadrilateral/view/QuadrilateralScreenView.ts | 5 ++--- js/quadrilateral/view/QuadrilateralShapeNameDisplay.ts | 3 +-- js/quadrilateral/view/QuadrilateralVertexNode.ts | 5 ++--- js/quadrilateral/view/QuadrilateralVisibilityControls.ts | 3 +-- js/quadrilateral/view/ResetShapeButton.ts | 3 +-- js/quadrilateral/view/RightAngleIndicatorNode.ts | 4 +--- js/quadrilateral/view/ShapeShortcutsHelpSection.ts | 3 +-- js/quadrilateral/view/ShapeSoundsCheckbox.ts | 3 +-- js/quadrilateral/view/SideDescriber.ts | 3 +-- js/quadrilateral/view/SideTicksNode.ts | 3 +-- js/quadrilateral/view/SmallStepsLockToggleButton.ts | 3 +-- js/quadrilateral/view/VertexDescriber.ts | 3 +-- js/quadrilateral/view/prototype/CalibrationContentNode.ts | 3 +-- .../view/prototype/QuadrilateralBluetoothConnectionButton.ts | 3 +-- .../view/prototype/QuadrilateralInputPreferencesNode.ts | 3 +-- js/quadrilateral/view/prototype/QuadrilateralMediaPipe.ts | 3 +-- .../view/prototype/QuadrilateralSerialConnectionButton.ts | 3 +-- .../view/prototype/QuadrilateralSerialMessageSender.ts | 3 +-- .../view/prototype/QuadrilateralTangibleController.ts | 3 +-- .../view/prototype/QuadrilateralTangibleControls.ts | 3 +-- js/quadrilateral/view/sound/EmphasisTracksSoundView.ts | 3 +-- js/quadrilateral/view/sound/LayersTracksSoundView.ts | 5 ++--- js/quadrilateral/view/sound/QuadrilateralSoundOptionsNode.ts | 3 +-- js/quadrilateral/view/sound/QuadrilateralSoundView.ts | 3 +-- js/quadrilateral/view/sound/TracksSoundView.ts | 5 ++--- 58 files changed, 63 insertions(+), 122 deletions(-) diff --git a/js/quadrilateral/QuadrilateralScreen.ts b/js/quadrilateral/QuadrilateralScreen.ts index 2e0c9630..09bf0adf 100644 --- a/js/quadrilateral/QuadrilateralScreen.ts +++ b/js/quadrilateral/QuadrilateralScreen.ts @@ -14,7 +14,7 @@ import QuadrilateralOptionsModel from './model/QuadrilateralOptionsModel.js'; import optionize, { EmptySelfOptions } from '../../../phet-core/js/optionize.js'; import QuadrilateralKeyboardHelpContent from './view/QuadrilateralKeyboardHelpContent.js'; -class QuadrilateralScreen extends Screen { +export default class QuadrilateralScreen extends Screen { public constructor( optionsModel: QuadrilateralOptionsModel, providedOptions: ScreenOptions ) { const options = optionize()( { @@ -30,5 +30,4 @@ class QuadrilateralScreen extends Screen; @@ -34,4 +34,3 @@ class QuadrilateralMovable { } quadrilateral.register( 'QuadrilateralMovable', QuadrilateralMovable ); -export default QuadrilateralMovable; diff --git a/js/quadrilateral/model/QuadrilateralOptionsModel.ts b/js/quadrilateral/model/QuadrilateralOptionsModel.ts index 494e0c5c..aaf08e0b 100644 --- a/js/quadrilateral/model/QuadrilateralOptionsModel.ts +++ b/js/quadrilateral/model/QuadrilateralOptionsModel.ts @@ -11,10 +11,9 @@ import quadrilateral from '../../quadrilateral.js'; import QuadrilateralSoundOptionsModel from './QuadrilateralSoundOptionsModel.js'; import QuadrilateralTangibleOptionsModel from './QuadrilateralTangibleOptionsModel.js'; -class QuadrilateralOptionsModel { +export default class QuadrilateralOptionsModel { public readonly soundOptionsModel = new QuadrilateralSoundOptionsModel(); public readonly tangibleOptionsModel = new QuadrilateralTangibleOptionsModel(); } quadrilateral.register( 'QuadrilateralOptionsModel', QuadrilateralOptionsModel ); -export default QuadrilateralOptionsModel; diff --git a/js/quadrilateral/model/QuadrilateralShapeDetector.ts b/js/quadrilateral/model/QuadrilateralShapeDetector.ts index 274a5f19..5c233a00 100644 --- a/js/quadrilateral/model/QuadrilateralShapeDetector.ts +++ b/js/quadrilateral/model/QuadrilateralShapeDetector.ts @@ -93,7 +93,7 @@ const SQUARE_MASK = ONE_PARALLEL_PAIR | TWO_EQUAL_OPPOSITE_SIDE_PAIR | ALL_EQUAL_SIDE; -class QuadrilateralShapeDetector { +export default class QuadrilateralShapeDetector { private readonly quadrilateralShapeModel: QuadrilateralShapeModel; public constructor( quadrilateralShapeModel: QuadrilateralShapeModel ) { @@ -220,4 +220,3 @@ class QuadrilateralShapeDetector { } quadrilateral.register( 'QuadrilateralShapeDetector', QuadrilateralShapeDetector ); -export default QuadrilateralShapeDetector; diff --git a/js/quadrilateral/model/QuadrilateralShapeModel.ts b/js/quadrilateral/model/QuadrilateralShapeModel.ts index e298f9f7..0cbcef04 100644 --- a/js/quadrilateral/model/QuadrilateralShapeModel.ts +++ b/js/quadrilateral/model/QuadrilateralShapeModel.ts @@ -51,7 +51,7 @@ type QuadrilateralShapeModelOptions = { tandem: Tandem; }; -class QuadrilateralShapeModel { +export default class QuadrilateralShapeModel { // Vertices of the quadrilateral. public readonly vertexA: QuadrilateralVertex; @@ -712,4 +712,3 @@ class QuadrilateralShapeModel { } quadrilateral.register( 'QuadrilateralShapeModel', QuadrilateralShapeModel ); -export default QuadrilateralShapeModel; diff --git a/js/quadrilateral/model/QuadrilateralSide.ts b/js/quadrilateral/model/QuadrilateralSide.ts index 098f6f44..b2948528 100644 --- a/js/quadrilateral/model/QuadrilateralSide.ts +++ b/js/quadrilateral/model/QuadrilateralSide.ts @@ -18,7 +18,7 @@ import QuadrilateralMovable from './QuadrilateralMovable.js'; import Property from '../../../../axon/js/Property.js'; import TProperty from '../../../../axon/js/TProperty.js'; -class QuadrilateralSide extends QuadrilateralMovable { +export default class QuadrilateralSide extends QuadrilateralMovable { // Reference to the vertices that compose this QuadrilateralSide. public readonly vertex1: QuadrilateralVertex; @@ -129,4 +129,3 @@ class QuadrilateralSide extends QuadrilateralMovable { } quadrilateral.register( 'QuadrilateralSide', QuadrilateralSide ); -export default QuadrilateralSide; diff --git a/js/quadrilateral/model/QuadrilateralSoundOptionsModel.ts b/js/quadrilateral/model/QuadrilateralSoundOptionsModel.ts index b1815a47..63ed083e 100644 --- a/js/quadrilateral/model/QuadrilateralSoundOptionsModel.ts +++ b/js/quadrilateral/model/QuadrilateralSoundOptionsModel.ts @@ -22,7 +22,7 @@ class SoundDesign extends EnumerationValue { public static readonly enumeration = new Enumeration( SoundDesign ); } -class QuadrilateralSoundOptionsModel { +export default class QuadrilateralSoundOptionsModel { // The selected sound design public soundDesignProperty = new EnumerationProperty( SoundDesign.enumeration.getValue( QuadrilateralQueryParameters.soundDesign! ) ); @@ -33,4 +33,3 @@ class QuadrilateralSoundOptionsModel { quadrilateral.register( 'QuadrilateralSoundOptionsModel', QuadrilateralSoundOptionsModel ); export { SoundDesign }; -export default QuadrilateralSoundOptionsModel; diff --git a/js/quadrilateral/model/QuadrilateralTangibleOptionsModel.ts b/js/quadrilateral/model/QuadrilateralTangibleOptionsModel.ts index c1cd2bee..fba98a96 100644 --- a/js/quadrilateral/model/QuadrilateralTangibleOptionsModel.ts +++ b/js/quadrilateral/model/QuadrilateralTangibleOptionsModel.ts @@ -12,7 +12,7 @@ import quadrilateral from '../../quadrilateral.js'; import Range from '../../../../dot/js/Range.js'; import QuadrilateralQueryParameters from '../QuadrilateralQueryParameters.js'; -class QuadrilateralTangibleOptionsModel { +export default class QuadrilateralTangibleOptionsModel { // How many values to save and use in the average for calculating new vertex positions. Higher value will reduce // noise but the sim will respond slower. @@ -33,4 +33,3 @@ class QuadrilateralTangibleOptionsModel { } quadrilateral.register( 'QuadrilateralTangibleOptionsModel', QuadrilateralTangibleOptionsModel ); -export default QuadrilateralTangibleOptionsModel; diff --git a/js/quadrilateral/model/QuadrilateralUtils.ts b/js/quadrilateral/model/QuadrilateralUtils.ts index adf15dca..176b2211 100644 --- a/js/quadrilateral/model/QuadrilateralUtils.ts +++ b/js/quadrilateral/model/QuadrilateralUtils.ts @@ -24,7 +24,7 @@ export type LineIntersectionPair = { intersectionPoint: Vector2; }; -class QuadrilateralUtils { +export default class QuadrilateralUtils { /** * A workaround for https://github.com/phetsims/kite/issues/94. Shape.containsPoint implementation does not work @@ -316,4 +316,3 @@ class QuadrilateralUtils { } quadrilateral.register( 'QuadrilateralUtils', QuadrilateralUtils ); -export default QuadrilateralUtils; diff --git a/js/quadrilateral/model/QuadrilateralVertex.ts b/js/quadrilateral/model/QuadrilateralVertex.ts index 73168662..05b9850c 100644 --- a/js/quadrilateral/model/QuadrilateralVertex.ts +++ b/js/quadrilateral/model/QuadrilateralVertex.ts @@ -25,7 +25,7 @@ const VERTEX_BOUNDS = new Bounds2( 0, 0, 0.1, 0.1 ); const HALF_WIDTH = VERTEX_BOUNDS.width / 2; const HALF_HEIGHT = VERTEX_BOUNDS.height / 2; -class QuadrilateralVertex extends QuadrilateralMovable { +export default class QuadrilateralVertex extends QuadrilateralMovable { // The position of the vertex in model coordinates. public readonly positionProperty: Property; @@ -210,4 +210,3 @@ class QuadrilateralVertex extends QuadrilateralMovable { } quadrilateral.register( 'QuadrilateralVertex', QuadrilateralVertex ); -export default QuadrilateralVertex; \ No newline at end of file diff --git a/js/quadrilateral/model/QuadrilateralVisibilityModel.ts b/js/quadrilateral/model/QuadrilateralVisibilityModel.ts index 9e3ad824..44712c4e 100644 --- a/js/quadrilateral/model/QuadrilateralVisibilityModel.ts +++ b/js/quadrilateral/model/QuadrilateralVisibilityModel.ts @@ -11,7 +11,7 @@ import Tandem from '../../../../tandem/js/Tandem.js'; import quadrilateral from '../../quadrilateral.js'; import QuadrilateralQueryParameters from '../QuadrilateralQueryParameters.js'; -class QuadrilateralVisibilityModel { +export default class QuadrilateralVisibilityModel { // Whether markers are visible in this sim - including ticks along the sides, interior, and exerior angle indicators. public readonly markersVisibleProperty: BooleanProperty; @@ -67,4 +67,3 @@ class QuadrilateralVisibilityModel { } quadrilateral.register( 'QuadrilateralVisibilityModel', QuadrilateralVisibilityModel ); -export default QuadrilateralVisibilityModel; diff --git a/js/quadrilateral/model/ShapeSnapshot.ts b/js/quadrilateral/model/ShapeSnapshot.ts index b3a30e5c..5a0623f2 100644 --- a/js/quadrilateral/model/ShapeSnapshot.ts +++ b/js/quadrilateral/model/ShapeSnapshot.ts @@ -14,7 +14,7 @@ import SideLabel from './SideLabel.js'; import VertexLabel from './VertexLabel.js'; import NamedQuadrilateral from './NamedQuadrilateral.js'; -class ShapeSnapshot { +export default class ShapeSnapshot { public readonly isParallelogram: boolean; public readonly sideABsideCDParallel: boolean; public readonly sideBCsideDAParallel: boolean; @@ -173,4 +173,3 @@ class ShapeSnapshot { } quadrilateral.register( 'ShapeSnapshot', ShapeSnapshot ); -export default ShapeSnapshot; diff --git a/js/quadrilateral/model/SideLabel.ts b/js/quadrilateral/model/SideLabel.ts index e916ba8f..77032a9f 100644 --- a/js/quadrilateral/model/SideLabel.ts +++ b/js/quadrilateral/model/SideLabel.ts @@ -10,7 +10,7 @@ import Enumeration from '../../../../phet-core/js/Enumeration.js'; import EnumerationValue from '../../../../phet-core/js/EnumerationValue.js'; import quadrilateral from '../../quadrilateral.js'; -class SideLabel extends EnumerationValue { +export default class SideLabel extends EnumerationValue { public static readonly SIDE_AB = new SideLabel(); public static readonly SIDE_BC = new SideLabel(); public static readonly SIDE_CD = new SideLabel(); @@ -20,4 +20,3 @@ class SideLabel extends EnumerationValue { } quadrilateral.register( 'SideLabel', SideLabel ); -export default SideLabel; diff --git a/js/quadrilateral/model/SidePair.ts b/js/quadrilateral/model/SidePair.ts index e8a31b23..155c2619 100644 --- a/js/quadrilateral/model/SidePair.ts +++ b/js/quadrilateral/model/SidePair.ts @@ -10,7 +10,7 @@ import quadrilateral from '../../quadrilateral.js'; import QuadrilateralSide from './QuadrilateralSide.js'; -class SidePair { +export default class SidePair { public readonly side1: QuadrilateralSide; public readonly side2: QuadrilateralSide; @@ -36,4 +36,3 @@ class SidePair { } quadrilateral.register( 'SidePair', SidePair ); -export default SidePair; diff --git a/js/quadrilateral/model/VertexLabel.ts b/js/quadrilateral/model/VertexLabel.ts index 93e4d68e..d2d9863e 100644 --- a/js/quadrilateral/model/VertexLabel.ts +++ b/js/quadrilateral/model/VertexLabel.ts @@ -10,7 +10,7 @@ import Enumeration from '../../../../phet-core/js/Enumeration.js'; import EnumerationValue from '../../../../phet-core/js/EnumerationValue.js'; import quadrilateral from '../../quadrilateral.js'; -class VertexLabel extends EnumerationValue { +export default class VertexLabel extends EnumerationValue { public static readonly VERTEX_A = new VertexLabel(); public static readonly VERTEX_B = new VertexLabel(); public static readonly VERTEX_C = new VertexLabel(); @@ -20,4 +20,3 @@ class VertexLabel extends EnumerationValue { } quadrilateral.register( 'VertexLabel', VertexLabel ); -export default VertexLabel; diff --git a/js/quadrilateral/model/VertexPair.ts b/js/quadrilateral/model/VertexPair.ts index 0129840a..0fd5e9a0 100644 --- a/js/quadrilateral/model/VertexPair.ts +++ b/js/quadrilateral/model/VertexPair.ts @@ -10,7 +10,7 @@ import quadrilateral from '../../quadrilateral.js'; import QuadrilateralVertex from './QuadrilateralVertex.js'; -class VertexPair { +export default class VertexPair { public readonly vertex1: QuadrilateralVertex; public readonly vertex2: QuadrilateralVertex; @@ -36,4 +36,3 @@ class VertexPair { } quadrilateral.register( 'VertexPair', VertexPair ); -export default VertexPair; diff --git a/js/quadrilateral/model/prototype/MarkerDetectionModel.ts b/js/quadrilateral/model/prototype/MarkerDetectionModel.ts index 8f11c02d..3edda931 100644 --- a/js/quadrilateral/model/prototype/MarkerDetectionModel.ts +++ b/js/quadrilateral/model/prototype/MarkerDetectionModel.ts @@ -17,7 +17,7 @@ import TReadOnlyProperty from '../../../../../axon/js/TReadOnlyProperty.js'; import Tandem from '../../../../../tandem/js/Tandem.js'; import quadrilateral from '../../../quadrilateral.js'; -class MarkerDetectionModel { +export default class MarkerDetectionModel { // A Property that indicates that all markers are observed by the camera to control this simulation. Part of // a prototype for using OpenCV as an input method for the simulation @@ -58,4 +58,3 @@ class MarkerDetectionModel { } quadrilateral.register( 'MarkerDetectionModel', MarkerDetectionModel ); -export default MarkerDetectionModel; diff --git a/js/quadrilateral/model/prototype/TangibleConnectionModel.ts b/js/quadrilateral/model/prototype/TangibleConnectionModel.ts index aaca0924..f273be55 100644 --- a/js/quadrilateral/model/prototype/TangibleConnectionModel.ts +++ b/js/quadrilateral/model/prototype/TangibleConnectionModel.ts @@ -30,7 +30,7 @@ import QuadrilateralShapeModel, { VertexWithProposedPosition } from '../Quadrila import QuadrilateralTangibleOptionsModel from '../QuadrilateralTangibleOptionsModel.js'; import MarkerDetectionModel from './MarkerDetectionModel.js'; -class TangibleConnectionModel { +export default class TangibleConnectionModel { // True when we are connected to a device in some way, either bluetooth, serial, or OpenCV. // REVIEW: Some boolean attribute start with "is" but some do not @@ -189,4 +189,3 @@ class TangibleConnectionModel { } quadrilateral.register( 'TangibleConnectionModel', TangibleConnectionModel ); -export default TangibleConnectionModel; diff --git a/js/quadrilateral/view/CornerGuideNode.ts b/js/quadrilateral/view/CornerGuideNode.ts index 4f6266bd..ab384abc 100644 --- a/js/quadrilateral/view/CornerGuideNode.ts +++ b/js/quadrilateral/view/CornerGuideNode.ts @@ -39,7 +39,7 @@ const OUTER_RADIUS = QuadrilateralVertex.VERTEX_WIDTH / 2 + WEDGE_RADIAL_LENGTH; const EXTERNAL_ANGLE_GUIDE_LENGTH = WEDGE_RADIAL_LENGTH * 8; -class CornerGuideNode extends Node { +export default class CornerGuideNode extends Node { public static readonly WEDGE_SIZE_RADIANS = WEDGE_SIZE_RADIANS; /** @@ -175,4 +175,3 @@ class CornerGuideNode extends Node { } quadrilateral.register( 'CornerGuideNode', CornerGuideNode ); -export default CornerGuideNode; diff --git a/js/quadrilateral/view/MoveShapeHelpSection.ts b/js/quadrilateral/view/MoveShapeHelpSection.ts index ffe2b8c2..39170de0 100644 --- a/js/quadrilateral/view/MoveShapeHelpSection.ts +++ b/js/quadrilateral/view/MoveShapeHelpSection.ts @@ -18,7 +18,7 @@ import QuadrilateralKeyboardHelpContent from './QuadrilateralKeyboardHelpContent const moveShapeDescriptionString = QuadrilateralStrings.a11y.keyboardHelpDialog.moveShapeDescription; const smallerStepsDescriptionString = QuadrilateralStrings.a11y.keyboardHelpDialog.smallerStepsDescription; -class MoveShapeHelpSection extends KeyboardHelpSection { +export default class MoveShapeHelpSection extends KeyboardHelpSection { public constructor() { // basic movement @@ -53,4 +53,3 @@ class MoveShapeHelpSection extends KeyboardHelpSection { } quadrilateral.register( 'MoveShapeHelpSection', MoveShapeHelpSection ); -export default MoveShapeHelpSection; diff --git a/js/quadrilateral/view/QuadrilateralAlerter.ts b/js/quadrilateral/view/QuadrilateralAlerter.ts index 4866c0e1..7fcc09f7 100644 --- a/js/quadrilateral/view/QuadrilateralAlerter.ts +++ b/js/quadrilateral/view/QuadrilateralAlerter.ts @@ -104,7 +104,7 @@ const ANGLE_RESPONSE_THRESHOLD = Math.PI / 12; // changed sufficiently to describe changes in angles over other information. const ANGLE_DIFFERENCES_LARGE_THRESHOLD = Math.PI / 24; -class QuadrilateralAlerter extends Alerter { +export default class QuadrilateralAlerter extends Alerter { private readonly model: QuadrilateralModel; private readonly quadrilateralShapeModel: QuadrilateralShapeModel; private readonly modelViewTransform: ModelViewTransform2; @@ -941,4 +941,3 @@ class QuadrilateralAlerter extends Alerter { } quadrilateral.register( 'QuadrilateralAlerter', QuadrilateralAlerter ); -export default QuadrilateralAlerter; diff --git a/js/quadrilateral/view/QuadrilateralDebuggingPanel.ts b/js/quadrilateral/view/QuadrilateralDebuggingPanel.ts index 83f10a3b..5ef037cc 100644 --- a/js/quadrilateral/view/QuadrilateralDebuggingPanel.ts +++ b/js/quadrilateral/view/QuadrilateralDebuggingPanel.ts @@ -32,7 +32,7 @@ const VALUE_WITH_DEGREES_PATTERN_STRING = '{{label}}: {{value}} ({{degrees}} deg const CONTENT_PADDING = 10; const VBOX_OPTIONS: VBoxOptions = { align: 'left' }; -class QuadrilateralDebuggingPanel extends Node { +export default class QuadrilateralDebuggingPanel extends Node { public constructor( model: QuadrilateralModel, providedOptions?: NodeOptions ) { // Length readouts @@ -218,4 +218,3 @@ class QuadrilateralDebuggingPanel extends Node { } quadrilateral.register( 'QuadrilateralDebuggingPanel', QuadrilateralDebuggingPanel ); -export default QuadrilateralDebuggingPanel; diff --git a/js/quadrilateral/view/QuadrilateralDescriber.ts b/js/quadrilateral/view/QuadrilateralDescriber.ts index bf1e3ab0..f549988a 100644 --- a/js/quadrilateral/view/QuadrilateralDescriber.ts +++ b/js/quadrilateral/view/QuadrilateralDescriber.ts @@ -132,7 +132,7 @@ const VERY_SMALL_THRESHOLD = GRID_CELL_AREA * 12; const SMALL_THRESHOLD = GRID_CELL_AREA * 24; const MEDIUM_SIZED_THRESHOLD = GRID_CELL_AREA * 48; -class QuadrilateralDescriber { +export default class QuadrilateralDescriber { private readonly shapeModel: QuadrilateralShapeModel; private readonly shapeNameVisibleProperty: TReadOnlyProperty; private readonly markersVisibleProperty: TReadOnlyProperty; @@ -819,4 +819,3 @@ class QuadrilateralDescriber { } quadrilateral.register( 'QuadrilateralDescriber', QuadrilateralDescriber ); -export default QuadrilateralDescriber; diff --git a/js/quadrilateral/view/QuadrilateralDiagonalGuidesNode.ts b/js/quadrilateral/view/QuadrilateralDiagonalGuidesNode.ts index 9eaceb18..77d8d644 100644 --- a/js/quadrilateral/view/QuadrilateralDiagonalGuidesNode.ts +++ b/js/quadrilateral/view/QuadrilateralDiagonalGuidesNode.ts @@ -27,7 +27,7 @@ const LINE_NODE_OPTIONS = { stroke: QuadrilateralColors.diagonalGuidesStrokeColorProperty }; -class QuadrilateralDiagonalGuidesNode extends Node { +export default class QuadrilateralDiagonalGuidesNode extends Node { public constructor( quadrilateralShapeModel: QuadrilateralShapeModel, bounds: Bounds2, @@ -107,4 +107,3 @@ class QuadrilateralDiagonalGuidesNode extends Node { } quadrilateral.register( 'QuadrilateralDiagonalGuidesNode', QuadrilateralDiagonalGuidesNode ); -export default QuadrilateralDiagonalGuidesNode; diff --git a/js/quadrilateral/view/QuadrilateralGridNode.ts b/js/quadrilateral/view/QuadrilateralGridNode.ts index 90582900..71d02478 100644 --- a/js/quadrilateral/view/QuadrilateralGridNode.ts +++ b/js/quadrilateral/view/QuadrilateralGridNode.ts @@ -28,7 +28,7 @@ const MINOR_GRID_LINE_OPTIONS = { const BORDER_RECTANGLE_LINE_WIDTH = 2; -class QuadrilateralGridNode extends Node { +export default class QuadrilateralGridNode extends Node { public constructor( modelBounds: Bounds2, visibleProperty: TReadOnlyProperty, modelViewTransform: ModelViewTransform2 ) { super(); @@ -106,4 +106,3 @@ class QuadrilateralGridNode extends Node { } quadrilateral.register( 'QuadrilateralGridNode', QuadrilateralGridNode ); -export default QuadrilateralGridNode; diff --git a/js/quadrilateral/view/QuadrilateralInteractionCueNode.ts b/js/quadrilateral/view/QuadrilateralInteractionCueNode.ts index 33828612..1362cee6 100644 --- a/js/quadrilateral/view/QuadrilateralInteractionCueNode.ts +++ b/js/quadrilateral/view/QuadrilateralInteractionCueNode.ts @@ -24,7 +24,7 @@ const PATH_OPTIONS = { lineWidth: 2 }; -class QuadrilateralInteractionCueNode extends Path { +export default class QuadrilateralInteractionCueNode extends Path { public constructor( quadrilateralShapeModel: QuadrilateralShapeModel, connectedToDeviceProperty: TReadOnlyProperty, resetEmitter: Emitter, modelViewTransform: ModelViewTransform2 ) { const nodeShape = new Shape(); @@ -80,4 +80,3 @@ class QuadrilateralInteractionCueNode extends Path { } quadrilateral.register( 'QuadrilateralInteractionCueNode', QuadrilateralInteractionCueNode ); -export default QuadrilateralInteractionCueNode; diff --git a/js/quadrilateral/view/QuadrilateralKeyboardHelpContent.ts b/js/quadrilateral/view/QuadrilateralKeyboardHelpContent.ts index fa2e8564..992a53c3 100644 --- a/js/quadrilateral/view/QuadrilateralKeyboardHelpContent.ts +++ b/js/quadrilateral/view/QuadrilateralKeyboardHelpContent.ts @@ -13,7 +13,7 @@ import KeyboardHelpSection from '../../../../scenery-phet/js/keyboard/help/Keybo import MoveShapeHelpSection from './MoveShapeHelpSection.js'; import ShapeShortcutsHelpSection from './ShapeShortcutsHelpSection.js'; -class QuadrilateralKeyboardHelpContent extends TwoColumnKeyboardHelpContent { +export default class QuadrilateralKeyboardHelpContent extends TwoColumnKeyboardHelpContent { // consistent line wrap for long text in sections of this content public static readonly LABEL_LINE_WRAP = 175; @@ -33,4 +33,3 @@ class QuadrilateralKeyboardHelpContent extends TwoColumnKeyboardHelpContent { } quadrilateral.register( 'QuadrilateralKeyboardHelpContent', QuadrilateralKeyboardHelpContent ); -export default QuadrilateralKeyboardHelpContent; diff --git a/js/quadrilateral/view/QuadrilateralModelViewTransform.ts b/js/quadrilateral/view/QuadrilateralModelViewTransform.ts index cdfea2cc..0d01b952 100644 --- a/js/quadrilateral/view/QuadrilateralModelViewTransform.ts +++ b/js/quadrilateral/view/QuadrilateralModelViewTransform.ts @@ -17,7 +17,7 @@ import Bounds2 from '../../../../dot/js/Bounds2.js'; // dimensions of the view space, relative to ScreenView layoutBounds const VIEW_DIMENSION = new Dimension2( 790, 530 ); -class QuadrilateralModelViewTransform2 extends ModelViewTransform2 { +export default class QuadrilateralModelViewTransform2 extends ModelViewTransform2 { public constructor( modelBounds: Bounds2, layoutBounds: Bounds2 ) { super(); @@ -53,4 +53,3 @@ class QuadrilateralModelViewTransform2 extends ModelViewTransform2 { } quadrilateral.register( 'QuadrilateralModelViewTransform2', QuadrilateralModelViewTransform2 ); -export default QuadrilateralModelViewTransform2; diff --git a/js/quadrilateral/view/QuadrilateralMovableNode.ts b/js/quadrilateral/view/QuadrilateralMovableNode.ts index 912c778d..af9e7d0a 100644 --- a/js/quadrilateral/view/QuadrilateralMovableNode.ts +++ b/js/quadrilateral/view/QuadrilateralMovableNode.ts @@ -40,7 +40,7 @@ type ParentOptions = VoicingOptions & NodeOptions; // QuadrilateralVertexNode sets these properties explicitly from the nameResponse option export type QuadrilateralMovableNodeOptions = SelfOptions & StrictOmit & PickRequired; -class QuadrilateralMovableNode extends Voicing( Node ) { +export default class QuadrilateralMovableNode extends Voicing( Node ) { private readonly model: QuadrilateralMovable; // Deltas used by movables for keyboard input - amount of motion per key press in view coordinates. @@ -134,4 +134,3 @@ class QuadrilateralMovableNode extends Voicing( Node ) { } quadrilateral.register( 'QuadrilateralMovableNode', QuadrilateralMovableNode ); -export default QuadrilateralMovableNode; diff --git a/js/quadrilateral/view/QuadrilateralNode.ts b/js/quadrilateral/view/QuadrilateralNode.ts index 93218133..ba57120f 100644 --- a/js/quadrilateral/view/QuadrilateralNode.ts +++ b/js/quadrilateral/view/QuadrilateralNode.ts @@ -45,7 +45,7 @@ type SelfOptions = EmptySelfOptions; type ParentOptions = NodeOptions & VoicingOptions; type QuadrilateralNodeOptions = SelfOptions & StrictOmit & PickRequired; -class QuadrilateralNode extends Voicing( Node ) { +export default class QuadrilateralNode extends Voicing( Node ) { private readonly model: QuadrilateralModel; private readonly quadrilateralShapeModel: QuadrilateralShapeModel; private readonly scratchShapeModel: QuadrilateralShapeModel; @@ -280,4 +280,3 @@ class QuadrilateralNode extends Voicing( Node ) { } quadrilateral.register( 'QuadrilateralNode', QuadrilateralNode ); -export default QuadrilateralNode; diff --git a/js/quadrilateral/view/QuadrilateralScreenView.ts b/js/quadrilateral/view/QuadrilateralScreenView.ts index 5f1da985..69d2246c 100644 --- a/js/quadrilateral/view/QuadrilateralScreenView.ts +++ b/js/quadrilateral/view/QuadrilateralScreenView.ts @@ -42,7 +42,7 @@ import QuadrilateralTangibleControls from './prototype/QuadrilateralTangibleCont import QuadrilateralModelViewTransform from './QuadrilateralModelViewTransform.js'; import QuadrilateralTangibleController from './prototype/QuadrilateralTangibleController.js'; -class QuadrilateralScreenView extends ScreenView { +export default class QuadrilateralScreenView extends ScreenView { private readonly model: QuadrilateralModel; private readonly modelViewTransform: ModelViewTransform2; private readonly quadrilateralNode: QuadrilateralNode; @@ -248,5 +248,4 @@ class QuadrilateralScreenView extends ScreenView { } } -quadrilateral.register( 'QuadrilateralScreenView', QuadrilateralScreenView ); -export default QuadrilateralScreenView; \ No newline at end of file +quadrilateral.register( 'QuadrilateralScreenView', QuadrilateralScreenView ); \ No newline at end of file diff --git a/js/quadrilateral/view/QuadrilateralShapeNameDisplay.ts b/js/quadrilateral/view/QuadrilateralShapeNameDisplay.ts index dc1b3507..92c89472 100644 --- a/js/quadrilateral/view/QuadrilateralShapeNameDisplay.ts +++ b/js/quadrilateral/view/QuadrilateralShapeNameDisplay.ts @@ -55,7 +55,7 @@ const SHAPE_NAME_MAP = new Map( [ const DISPLAY_WIDTH = 350; const DISPLAY_HEIGHT = 40; -class QuadrilateralShapeNameDisplay extends Node { +export default class QuadrilateralShapeNameDisplay extends Node { public constructor( shapeNameVisibleProperty: Property, shapeNameProperty: TReadOnlyProperty, quadrilateralDescriber: QuadrilateralDescriber, tandem: Tandem ) { super(); @@ -129,4 +129,3 @@ class QuadrilateralShapeNameDisplay extends Node { } quadrilateral.register( 'QuadrilateralShapeNameDisplay', QuadrilateralShapeNameDisplay ); -export default QuadrilateralShapeNameDisplay; diff --git a/js/quadrilateral/view/QuadrilateralVertexNode.ts b/js/quadrilateral/view/QuadrilateralVertexNode.ts index 86131f4b..ea50ec9e 100644 --- a/js/quadrilateral/view/QuadrilateralVertexNode.ts +++ b/js/quadrilateral/view/QuadrilateralVertexNode.ts @@ -30,7 +30,7 @@ const LABEL_TEXT_FONT = new PhetFont( { size: 16, weight: 'bold' } ); type SelfOptions = EmptySelfOptions; type VertexNodeOptions = SelfOptions & StrictOmit; -class QuadrilateralVertexNode extends QuadrilateralMovableNode { +export default class QuadrilateralVertexNode extends QuadrilateralMovableNode { private readonly quadrilateralModel: QuadrilateralModel; private readonly vertex: QuadrilateralVertex; @@ -207,5 +207,4 @@ class QuadrilateralVertexNode extends QuadrilateralMovableNode { } } -quadrilateral.register( 'QuadrilateralVertexNode', QuadrilateralVertexNode ); -export default QuadrilateralVertexNode; \ No newline at end of file +quadrilateral.register( 'QuadrilateralVertexNode', QuadrilateralVertexNode ); \ No newline at end of file diff --git a/js/quadrilateral/view/QuadrilateralVisibilityControls.ts b/js/quadrilateral/view/QuadrilateralVisibilityControls.ts index a41eef3d..0e754bf2 100644 --- a/js/quadrilateral/view/QuadrilateralVisibilityControls.ts +++ b/js/quadrilateral/view/QuadrilateralVisibilityControls.ts @@ -20,7 +20,7 @@ import QuadrilateralVisibilityModel from '../model/QuadrilateralVisibilityModel. type SelfOptions = EmptySelfOptions; type QuadrilateralVisibilityControlsOptions = SelfOptions & StrictOmit & PickRequired; -class QuadrilateralVisibilityControls extends VBox { +export default class QuadrilateralVisibilityControls extends VBox { public constructor( visibilityModel: QuadrilateralVisibilityModel, providedOptions: QuadrilateralVisibilityControlsOptions ) { const options = optionize()( { @@ -116,4 +116,3 @@ class QuadrilateralVisibilityControls extends VBox { } quadrilateral.register( 'QuadrilateralVisibilityControls', QuadrilateralVisibilityControls ); -export default QuadrilateralVisibilityControls; diff --git a/js/quadrilateral/view/ResetShapeButton.ts b/js/quadrilateral/view/ResetShapeButton.ts index 1a908551..61ca15c5 100644 --- a/js/quadrilateral/view/ResetShapeButton.ts +++ b/js/quadrilateral/view/ResetShapeButton.ts @@ -17,7 +17,7 @@ import QuadrilateralStrings from '../../QuadrilateralStrings.js'; import QuadrilateralShapeModel from '../model/QuadrilateralShapeModel.js'; import QuadrilateralDescriber from './QuadrilateralDescriber.js'; -class ResetShapeButton extends TextPushButton { +export default class ResetShapeButton extends TextPushButton { public constructor( quadrilateralShapeModel: QuadrilateralShapeModel, resetNotInProgressProperty: TProperty, shapeNameVisibleProperty: TReadOnlyProperty, tandem: Tandem ) { super( QuadrilateralStrings.resetShape, { @@ -48,4 +48,3 @@ class ResetShapeButton extends TextPushButton { } quadrilateral.register( 'ResetShapeButton', ResetShapeButton ); -export default ResetShapeButton; diff --git a/js/quadrilateral/view/RightAngleIndicatorNode.ts b/js/quadrilateral/view/RightAngleIndicatorNode.ts index 1ea454c2..1df05fb6 100644 --- a/js/quadrilateral/view/RightAngleIndicatorNode.ts +++ b/js/quadrilateral/view/RightAngleIndicatorNode.ts @@ -18,7 +18,7 @@ import TReadOnlyProperty from '../../../../axon/js/TReadOnlyProperty.js'; // in model coordinates, length of a side of the indicator from the edge of a line between two vertices const SIDE_LENGTH = 0.12; -class RightAngleIndicatorNode extends Path { +export default class RightAngleIndicatorNode extends Path { private readonly shapeModel: QuadrilateralShapeModel; private readonly modelViewTransform: ModelViewTransform2; private readonly cornerGuideVisibleProperty: TReadOnlyProperty; @@ -94,5 +94,3 @@ class RightAngleIndicatorNode extends Path { } quadrilateral.register( 'RightAngleIndicatorNode', RightAngleIndicatorNode ); - -export default RightAngleIndicatorNode; diff --git a/js/quadrilateral/view/ShapeShortcutsHelpSection.ts b/js/quadrilateral/view/ShapeShortcutsHelpSection.ts index 7c816094..4f1f41cf 100644 --- a/js/quadrilateral/view/ShapeShortcutsHelpSection.ts +++ b/js/quadrilateral/view/ShapeShortcutsHelpSection.ts @@ -24,7 +24,7 @@ const checkShapeWithVoicingString = 'With Voicing enabled, check shape name or p const checkShapeDescriptionString = QuadrilateralStrings.a11y.keyboardHelpDialog.checkShapeDescriptionPattern; const resetShapeDescriptionString = QuadrilateralStrings.a11y.keyboardHelpDialog.resetShapeDescriptionPattern; -class ShapeShortcutsHelpSection extends KeyboardHelpSection { +export default class ShapeShortcutsHelpSection extends KeyboardHelpSection { public constructor() { // command to check current shape with Voicing @@ -68,4 +68,3 @@ class ShapeShortcutsHelpSection extends KeyboardHelpSection { } quadrilateral.register( 'ShapeShortcutsHelpSection', ShapeShortcutsHelpSection ); -export default ShapeShortcutsHelpSection; diff --git a/js/quadrilateral/view/ShapeSoundsCheckbox.ts b/js/quadrilateral/view/ShapeSoundsCheckbox.ts index 64a25e1c..2b3d1c42 100644 --- a/js/quadrilateral/view/ShapeSoundsCheckbox.ts +++ b/js/quadrilateral/view/ShapeSoundsCheckbox.ts @@ -22,7 +22,7 @@ const shapeSoundControlDisabledContextResponse = QuadrilateralStrings.a11y.voici const shapeSoundControlNameResponse = QuadrilateralStrings.a11y.voicing.shapeSoundControl.nameResponse; const shapeSoundControlHintResponse = QuadrilateralStrings.a11y.voicing.shapeSoundControl.hintResponse; -class ShapeSoundsCheckbox extends Checkbox { +export default class ShapeSoundsCheckbox extends Checkbox { public constructor( shapeSoundEnabledProperty: Property, tandem: Tandem ) { super( shapeSoundEnabledProperty, QuadrilateralIconFactory.createSoundIcon(), { voicingNameResponse: shapeSoundControlNameResponse, @@ -40,4 +40,3 @@ class ShapeSoundsCheckbox extends Checkbox { } quadrilateral.register( 'ShapeSoundsCheckbox', ShapeSoundsCheckbox ); -export default ShapeSoundsCheckbox; diff --git a/js/quadrilateral/view/SideDescriber.ts b/js/quadrilateral/view/SideDescriber.ts index c0dc3129..da1735fe 100644 --- a/js/quadrilateral/view/SideDescriber.ts +++ b/js/quadrilateral/view/SideDescriber.ts @@ -72,7 +72,7 @@ LENGTH_COMPARISON_DESCRIPTION_MAP.set( new Range( 1.6, 1.8 ), muchLongerThanStri LENGTH_COMPARISON_DESCRIPTION_MAP.set( new Range( 1.8, 2.2 ), aboutTwiceAsLongAsString ); LENGTH_COMPARISON_DESCRIPTION_MAP.set( new Range( 2.2, Number.POSITIVE_INFINITY ), farLongerThanString ); -class SideDescriber { +export default class SideDescriber { public readonly side: QuadrilateralSide; private readonly quadrilateralShapeModel: QuadrilateralShapeModel; private readonly modelViewTransform: ModelViewTransform2; @@ -366,4 +366,3 @@ class SideDescriber { } quadrilateral.register( 'SideDescriber', SideDescriber ); -export default SideDescriber; diff --git a/js/quadrilateral/view/SideTicksNode.ts b/js/quadrilateral/view/SideTicksNode.ts index 34d62d6e..574b205d 100644 --- a/js/quadrilateral/view/SideTicksNode.ts +++ b/js/quadrilateral/view/SideTicksNode.ts @@ -24,7 +24,7 @@ const PARAMETRIC_MAJOR_TICK_LENGTH = 0.5; // as we draw each tick mark. const SCRATCH_LINE = new Line( new Vector2( 0, 0 ), new Vector2( 0, 0 ) ); -class SideTicksNode extends Path { +export default class SideTicksNode extends Path { private readonly side: QuadrilateralSide; private readonly modelViewTransform: ModelViewTransform2; @@ -70,4 +70,3 @@ class SideTicksNode extends Path { } quadrilateral.register( 'SideTicksNode', SideTicksNode ); -export default SideTicksNode; diff --git a/js/quadrilateral/view/SmallStepsLockToggleButton.ts b/js/quadrilateral/view/SmallStepsLockToggleButton.ts index 2f5c9787..cfa9a3dd 100644 --- a/js/quadrilateral/view/SmallStepsLockToggleButton.ts +++ b/js/quadrilateral/view/SmallStepsLockToggleButton.ts @@ -28,7 +28,7 @@ const unlockedContextResponseString = QuadrilateralStrings.a11y.voicing.minorInt type SelfOptions = EmptySelfOptions; type SmallStepsLockToggleButtonOptions = SelfOptions & StrictOmit; -class SmallStepsLockToggleButton extends RectangularToggleButton { +export default class SmallStepsLockToggleButton extends RectangularToggleButton { public constructor( lockToMinorIntervalsProperty: Property, providedOptions?: SmallStepsLockToggleButtonOptions ) { const buttonIcon = new LockNode( lockToMinorIntervalsProperty, { scale: 0.4 } ); @@ -64,4 +64,3 @@ class SmallStepsLockToggleButton extends RectangularToggleButton { } quadrilateral.register( 'SmallStepsLockToggleButton', SmallStepsLockToggleButton ); -export default SmallStepsLockToggleButton; \ No newline at end of file diff --git a/js/quadrilateral/view/VertexDescriber.ts b/js/quadrilateral/view/VertexDescriber.ts index b3ddcbe3..5b146299 100644 --- a/js/quadrilateral/view/VertexDescriber.ts +++ b/js/quadrilateral/view/VertexDescriber.ts @@ -85,7 +85,7 @@ ANGLE_COMPARISON_DESCRIPTION_MAP.set( new Range( 1.6, 1.8 ), muchWiderThanString ANGLE_COMPARISON_DESCRIPTION_MAP.set( ABOUT_TWICE_RANGE, aboutTwiceAsWideAsString ); ANGLE_COMPARISON_DESCRIPTION_MAP.set( new Range( 2.2, Number.POSITIVE_INFINITY ), farWiderThanString ); -class VertexDescriber { +export default class VertexDescriber { // A reference to the model components that drive description. private readonly vertex: QuadrilateralVertex; @@ -339,4 +339,3 @@ class VertexDescriber { } quadrilateral.register( 'VertexDescriber', VertexDescriber ); -export default VertexDescriber; diff --git a/js/quadrilateral/view/prototype/CalibrationContentNode.ts b/js/quadrilateral/view/prototype/CalibrationContentNode.ts index d88ecdd4..cd3cd68f 100644 --- a/js/quadrilateral/view/prototype/CalibrationContentNode.ts +++ b/js/quadrilateral/view/prototype/CalibrationContentNode.ts @@ -23,7 +23,7 @@ const calibrationHintText = 'Extend your connected device to the maximum limits // We are going to draw circles representing the vertex positions in the dialog, this is their shared radius. const VERTEX_VIEW_RADIUS = 5; -class CalibrationContentNode extends VBox { +export default class CalibrationContentNode extends VBox { public constructor( tangibleConnectionModel: TangibleConnectionModel, providedOptions?: VBoxOptions ) { const options = optionize()( { @@ -86,4 +86,3 @@ class CalibrationContentNode extends VBox { } quadrilateral.register( 'CalibrationContentNode', CalibrationContentNode ); -export default CalibrationContentNode; \ No newline at end of file diff --git a/js/quadrilateral/view/prototype/QuadrilateralBluetoothConnectionButton.ts b/js/quadrilateral/view/prototype/QuadrilateralBluetoothConnectionButton.ts index d1ed496e..a620c07e 100644 --- a/js/quadrilateral/view/prototype/QuadrilateralBluetoothConnectionButton.ts +++ b/js/quadrilateral/view/prototype/QuadrilateralBluetoothConnectionButton.ts @@ -43,7 +43,7 @@ const REQUEST_DEVICE_OPTIONS = { ] }; -class QuadrilateralBluetoothConnectionButton extends TextPushButton { +export default class QuadrilateralBluetoothConnectionButton extends TextPushButton { // Amount of time passed in ms since updating the simulation from bluetooth input. We wait at least every // QuadrilateralTangibleOptionsModel.bluetoothUpdateIntervalProperty.value in an attempt to filter out noise. @@ -194,4 +194,3 @@ class QuadrilateralBluetoothConnectionButton extends TextPushButton { } quadrilateral.register( 'QuadrilateralBluetoothConnectionButton', QuadrilateralBluetoothConnectionButton ); -export default QuadrilateralBluetoothConnectionButton; diff --git a/js/quadrilateral/view/prototype/QuadrilateralInputPreferencesNode.ts b/js/quadrilateral/view/prototype/QuadrilateralInputPreferencesNode.ts index 89cc2ec0..21af8f67 100644 --- a/js/quadrilateral/view/prototype/QuadrilateralInputPreferencesNode.ts +++ b/js/quadrilateral/view/prototype/QuadrilateralInputPreferencesNode.ts @@ -16,7 +16,7 @@ import { Text, VBox } from '../../../../../scenery/js/imports.js'; import PreferencesDialog from '../../../../../joist/js/preferences/PreferencesDialog.js'; import QuadrilateralTangibleOptionsModel from '../../model/QuadrilateralTangibleOptionsModel.js'; -class QuadrilateralInputPreferencesNode extends PreferencesPanelSection { +export default class QuadrilateralInputPreferencesNode extends PreferencesPanelSection { private readonly disposeQuadrilateralInputPreferencesNode: () => void; public constructor( tangibleOptionsModel: QuadrilateralTangibleOptionsModel ) { @@ -83,4 +83,3 @@ class TangiblePropertyNumberControl extends NumberControl { } quadrilateral.register( 'QuadrilateralInputPreferencesNode', QuadrilateralInputPreferencesNode ); -export default QuadrilateralInputPreferencesNode; diff --git a/js/quadrilateral/view/prototype/QuadrilateralMediaPipe.ts b/js/quadrilateral/view/prototype/QuadrilateralMediaPipe.ts index f14c2f25..a873173d 100644 --- a/js/quadrilateral/view/prototype/QuadrilateralMediaPipe.ts +++ b/js/quadrilateral/view/prototype/QuadrilateralMediaPipe.ts @@ -43,7 +43,7 @@ if ( MediaPipeQueryParameters.cameraInput === 'hands' ) { MediaPipe.initialize(); } -class QuadrilateralMediaPipe extends MediaPipe { +export default class QuadrilateralMediaPipe extends MediaPipe { private readonly quadrilateralShapeModel: QuadrilateralShapeModel; private readonly tangibleController: QuadrilateralTangibleController; @@ -128,4 +128,3 @@ class QuadrilateralMediaPipe extends MediaPipe { } quadrilateral.register( 'QuadrilateralMediaPipe', QuadrilateralMediaPipe ); -export default QuadrilateralMediaPipe; diff --git a/js/quadrilateral/view/prototype/QuadrilateralSerialConnectionButton.ts b/js/quadrilateral/view/prototype/QuadrilateralSerialConnectionButton.ts index 6397548c..aa0ba37e 100644 --- a/js/quadrilateral/view/prototype/QuadrilateralSerialConnectionButton.ts +++ b/js/quadrilateral/view/prototype/QuadrilateralSerialConnectionButton.ts @@ -16,7 +16,7 @@ import quadrilateral from '../../../quadrilateral.js'; import TangibleConnectionModel from '../../model/prototype/TangibleConnectionModel.js'; import QuadrilateralSerialMessageSender from './QuadrilateralSerialMessageSender.js'; -class QuadrilateralSerialConnectionButton extends TextPushButton { +export default class QuadrilateralSerialConnectionButton extends TextPushButton { public constructor( tangibleConnectionModel: TangibleConnectionModel ) { const sender = new QuadrilateralSerialMessageSender( tangibleConnectionModel ); @@ -33,4 +33,3 @@ class QuadrilateralSerialConnectionButton extends TextPushButton { } quadrilateral.register( 'QuadrilateralSerialConnectionButton', QuadrilateralSerialConnectionButton ); -export default QuadrilateralSerialConnectionButton; diff --git a/js/quadrilateral/view/prototype/QuadrilateralSerialMessageSender.ts b/js/quadrilateral/view/prototype/QuadrilateralSerialMessageSender.ts index 5e603d92..5ccf531f 100644 --- a/js/quadrilateral/view/prototype/QuadrilateralSerialMessageSender.ts +++ b/js/quadrilateral/view/prototype/QuadrilateralSerialMessageSender.ts @@ -23,7 +23,7 @@ import quadrilateral from '../../../quadrilateral.js'; import QuadrilateralShapeModel from '../../model/QuadrilateralShapeModel.js'; import TangibleConnectionModel from '../../model/prototype/TangibleConnectionModel.js'; -class QuadrilateralSerialMessageSender { +export default class QuadrilateralSerialMessageSender { private readonly shapeModel: QuadrilateralShapeModel; public constructor( tangibleConnectionModel: TangibleConnectionModel ) { @@ -63,4 +63,3 @@ class QuadrilateralSerialMessageSender { } quadrilateral.register( 'QuadrilateralSerialMessageSender', QuadrilateralSerialMessageSender ); -export default QuadrilateralSerialMessageSender; \ No newline at end of file diff --git a/js/quadrilateral/view/prototype/QuadrilateralTangibleController.ts b/js/quadrilateral/view/prototype/QuadrilateralTangibleController.ts index 16b475f1..e0887c70 100644 --- a/js/quadrilateral/view/prototype/QuadrilateralTangibleController.ts +++ b/js/quadrilateral/view/prototype/QuadrilateralTangibleController.ts @@ -15,7 +15,7 @@ import QuadrilateralUtils from '../../model/QuadrilateralUtils.js'; import TangibleConnectionModel from '../../model/prototype/TangibleConnectionModel.js'; import LinearFunction from '../../../../../dot/js/LinearFunction.js'; -class QuadrilateralTangibleController { +export default class QuadrilateralTangibleController { private readonly quadrilateralModel: QuadrilateralModel; private readonly shapeModel: QuadrilateralShapeModel; @@ -208,4 +208,3 @@ class QuadrilateralTangibleController { quadrilateral.register( 'QuadrilateralTangibleController', QuadrilateralTangibleController ); -export default QuadrilateralTangibleController; diff --git a/js/quadrilateral/view/prototype/QuadrilateralTangibleControls.ts b/js/quadrilateral/view/prototype/QuadrilateralTangibleControls.ts index 5e8a11be..1c041f83 100644 --- a/js/quadrilateral/view/prototype/QuadrilateralTangibleControls.ts +++ b/js/quadrilateral/view/prototype/QuadrilateralTangibleControls.ts @@ -24,7 +24,7 @@ import QuadrilateralSerialConnectionButton from './QuadrilateralSerialConnection import Tandem from '../../../../../tandem/js/Tandem.js'; import QuadrilateralTangibleController from './QuadrilateralTangibleController.js'; -class QuadrilateralTangibleControls extends VBox { +export default class QuadrilateralTangibleControls extends VBox { public constructor( tangibleConnectionModel: TangibleConnectionModel, tangibleController: QuadrilateralTangibleController, tandem: Tandem ) { // Add a Dialog that will calibrate the device to the simulation (mapping physical data to modelled data). @@ -85,4 +85,3 @@ class QuadrilateralTangibleControls extends VBox { } quadrilateral.register( 'QuadrilateralTangibleControls', QuadrilateralTangibleControls ); -export default QuadrilateralTangibleControls; diff --git a/js/quadrilateral/view/sound/EmphasisTracksSoundView.ts b/js/quadrilateral/view/sound/EmphasisTracksSoundView.ts index ed269d64..e2220cbd 100644 --- a/js/quadrilateral/view/sound/EmphasisTracksSoundView.ts +++ b/js/quadrilateral/view/sound/EmphasisTracksSoundView.ts @@ -61,7 +61,7 @@ const NAMED_QUADRILATERAL_TO_HIGH_VOLUME_TRACKS_MAP = new Map( [ [ NamedQuadrilateral.SQUARE, [ 7 ] ] ] ); -class EmphasisTracksSoundView extends TracksSoundView { +export default class EmphasisTracksSoundView extends TracksSoundView { private readonly disposeEmphasisTracksSoundView: () => void; // The requested output levels for each SoundClip as shapes are detected. All of these are playing at once at the @@ -124,4 +124,3 @@ class EmphasisTracksSoundView extends TracksSoundView { } quadrilateral.register( 'EmphasisTracksSoundView', EmphasisTracksSoundView ); -export default EmphasisTracksSoundView; \ No newline at end of file diff --git a/js/quadrilateral/view/sound/LayersTracksSoundView.ts b/js/quadrilateral/view/sound/LayersTracksSoundView.ts index 623fec53..95821b71 100644 --- a/js/quadrilateral/view/sound/LayersTracksSoundView.ts +++ b/js/quadrilateral/view/sound/LayersTracksSoundView.ts @@ -56,7 +56,7 @@ const NAMED_QUADRILATERAL_TO_TRACKS_MAP = new Map( [ [ NamedQuadrilateral.SQUARE, [ 0, 2, 3, 5, 6, 7 ] ] ] ); -class LayersTracksSoundView extends TracksSoundView { +export default class LayersTracksSoundView extends TracksSoundView { private readonly disposeLayersTracksSoundView: () => void; public constructor( shapeModel: QuadrilateralShapeModel, shapeSoundEnabledProperty: TReadOnlyProperty, resetNotInProgressProperty: TReadOnlyProperty, soundOptionsModel: QuadrilateralSoundOptionsModel ) { @@ -99,5 +99,4 @@ class LayersTracksSoundView extends TracksSoundView { } } -quadrilateral.register( 'LayersTracksSoundView', LayersTracksSoundView ); -export default LayersTracksSoundView; \ No newline at end of file +quadrilateral.register( 'LayersTracksSoundView', LayersTracksSoundView ); \ No newline at end of file diff --git a/js/quadrilateral/view/sound/QuadrilateralSoundOptionsNode.ts b/js/quadrilateral/view/sound/QuadrilateralSoundOptionsNode.ts index 36135805..2b50ff98 100644 --- a/js/quadrilateral/view/sound/QuadrilateralSoundOptionsNode.ts +++ b/js/quadrilateral/view/sound/QuadrilateralSoundOptionsNode.ts @@ -27,7 +27,7 @@ const preferencesDialogPlaySoundsForeverString = QuadrilateralStrings.preference const tracksPlayForeverCheckedContextResponseString = QuadrilateralStrings.a11y.preferencesDialog.tracksPlayForeverCheckbox.checkedContextResponse; const tracksPlayForeverUncheckedContextResponseString = QuadrilateralStrings.a11y.preferencesDialog.tracksPlayForeverCheckbox.uncheckedContextResponse; -class QuadrilateralSoundOptionsNode extends PreferencesPanelSection { +export default class QuadrilateralSoundOptionsNode extends PreferencesPanelSection { // Necessary for PhET-iO state and disposal since these components become dynamic when they live in a phetio capsule private readonly disposeQuadrilateralSoundOptionsNode: () => void; @@ -105,4 +105,3 @@ class QuadrilateralSoundOptionsNode extends PreferencesPanelSection { } quadrilateral.register( 'QuadrilateralSoundOptionsNode', QuadrilateralSoundOptionsNode ); -export default QuadrilateralSoundOptionsNode; diff --git a/js/quadrilateral/view/sound/QuadrilateralSoundView.ts b/js/quadrilateral/view/sound/QuadrilateralSoundView.ts index 44409d7c..fae9b9a4 100644 --- a/js/quadrilateral/view/sound/QuadrilateralSoundView.ts +++ b/js/quadrilateral/view/sound/QuadrilateralSoundView.ts @@ -14,7 +14,7 @@ import LayersTracksSoundView from './LayersTracksSoundView.js'; import TracksSoundView from './TracksSoundView.js'; import EmphasisTracksSoundView from './EmphasisTracksSoundView.js'; -class QuadrilateralSoundView { +export default class QuadrilateralSoundView { // The sound view that is currently "active" and playing sounds. public activeSoundView: null | TracksSoundView = null; @@ -46,4 +46,3 @@ class QuadrilateralSoundView { } quadrilateral.register( 'QuadrilateralSoundView', QuadrilateralSoundView ); -export default QuadrilateralSoundView; diff --git a/js/quadrilateral/view/sound/TracksSoundView.ts b/js/quadrilateral/view/sound/TracksSoundView.ts index ac6fa3e1..c8c5c988 100644 --- a/js/quadrilateral/view/sound/TracksSoundView.ts +++ b/js/quadrilateral/view/sound/TracksSoundView.ts @@ -48,7 +48,7 @@ class PlayingState extends EnumerationValue { public static readonly enumeration = new Enumeration( PlayingState ); } -class TracksSoundView extends SoundGenerator { +export default class TracksSoundView extends SoundGenerator { // Controls options for the sound design that may change from the Preferences dialog. private readonly soundOptionsModel: QuadrilateralSoundOptionsModel; @@ -217,5 +217,4 @@ class TracksSoundView extends SoundGenerator { } } -quadrilateral.register( 'TracksSoundView', TracksSoundView ); -export default TracksSoundView; \ No newline at end of file +quadrilateral.register( 'TracksSoundView', TracksSoundView ); \ No newline at end of file