Skip to content

Commit

Permalink
Move CAVPlotNode, DataPointNode and DragIndicatorArrowNode back to ce…
Browse files Browse the repository at this point in the history
…nter-and-variability, see #222
  • Loading branch information
samreid committed Jun 9, 2023
1 parent a22659b commit ab67526
Show file tree
Hide file tree
Showing 11 changed files with 23 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@
* @author Sam Reid (PhET Interactive Simulations)
*/

import soccerCommon from '../soccerCommon.js';
import soccerCommon from '../../soccer-common/soccerCommon.js';
import { ManualConstraint, MatrixBetweenProperty, Node, NodeOptions, TColor, Text } from '../../../../scenery/js/imports.js';
import optionize from '../../../../phet-core/js/optionize.js';
import CAVSceneModel from '../model/CAVSceneModel.js';
import CAVSceneModel from '../../soccer-common/model/CAVSceneModel.js';
import ModelViewTransform2 from '../../../../phetcommon/js/view/ModelViewTransform2.js';
import NumberLineNode from './NumberLineNode.js';
import NumberLineNode from '../../soccer-common/view/NumberLineNode.js';
import Bounds2 from '../../../../dot/js/Bounds2.js';
import CenterAndVariabilityStrings from '../../CenterAndVariabilityStrings.js';
import CAVConstants from '../../common/CAVConstants.js';
import CAVConstants from '../CAVConstants.js';
import WithRequired from '../../../../phet-core/js/types/WithRequired.js';
import DataPointNode from './DataPointNode.js';
import CAVModel from '../../common/model/CAVModel.js';
import CAVModel from '../model/CAVModel.js';
import MeanAndMedianModel from '../../mean-and-median/model/MeanAndMedianModel.js';
import BooleanProperty from '../../../../axon/js/BooleanProperty.js';
import VariabilityModel from '../../variability/model/VariabilityModel.js';
Expand Down
2 changes: 1 addition & 1 deletion js/common/view/CAVScreenView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import DynamicProperty from '../../../../axon/js/DynamicProperty.js';
import SoccerPlayerNode, { SoccerPlayerImageSet } from '../../soccer-common/view/SoccerPlayerNode.js';
import SoccerPlayer from '../../soccer-common/model/SoccerPlayer.js';
import CAVSceneModel from '../../soccer-common/model/CAVSceneModel.js';
import DragIndicatorArrowNode from '../../soccer-common/view/DragIndicatorArrowNode.js';
import DragIndicatorArrowNode from './DragIndicatorArrowNode.js';
import CAVObjectType from '../../soccer-common/model/CAVObjectType.js';
import ToggleNode from '../../../../sun/js/ToggleNode.js';
import PlayAreaMedianIndicatorNode from './PlayAreaMedianIndicatorNode.js';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
// Copyright 2023, University of Colorado Boulder

import CAVObjectNode, { CAVObjectNodeOptions } from '../../common/view/CAVObjectNode.js';
import soccerCommon from '../soccerCommon.js';
import SoccerBall from '../model/SoccerBall.js';
import CAVObjectNode, { CAVObjectNodeOptions } from './CAVObjectNode.js';
import soccerCommon from '../../soccer-common/soccerCommon.js';
import SoccerBall from '../../soccer-common/model/SoccerBall.js';
import ModelViewTransform2 from '../../../../phetcommon/js/view/ModelViewTransform2.js';
import CAVObjectType from '../model/CAVObjectType.js';
import CAVObjectType from '../../soccer-common/model/CAVObjectType.js';
import { Circle, Node, Path, TColor } from '../../../../scenery/js/imports.js';
import Vector2 from '../../../../dot/js/Vector2.js';
import timesSolidShape from '../../../../sherpa/js/fontawesome-5/timesSolidShape.js';
import CAVConstants, { DATA_POINT_SCALE_PROPERTY } from '../../common/CAVConstants.js';
import PlotType from '../../common/model/PlotType.js';
import CAVColors from '../../common/CAVColors.js';
import CAVConstants, { DATA_POINT_SCALE_PROPERTY } from '../CAVConstants.js';
import PlotType from '../model/PlotType.js';
import CAVColors from '../CAVColors.js';
import Property from '../../../../axon/js/Property.js';
import optionize, { EmptySelfOptions } from '../../../../phet-core/js/optionize.js';
import { SoccerBallPhase } from '../model/SoccerBallPhase.js';
import { SoccerBallPhase } from '../../soccer-common/model/SoccerBallPhase.js';
import DerivedProperty from '../../../../axon/js/DerivedProperty.js';

type DataPointNodeOptions = CAVObjectNodeOptions & { fill: TColor };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
*/

import ArrowNode, { ArrowNodeOptions } from '../../../../scenery-phet/js/ArrowNode.js';
import CAVColors from '../../common/CAVColors.js';
import CAVConstants from '../../common/CAVConstants.js';
import soccerCommon from '../soccerCommon.js';
import CAVColors from '../CAVColors.js';
import CAVConstants from '../CAVConstants.js';
import soccerCommon from '../../soccer-common/soccerCommon.js';
import PickRequired from '../../../../phet-core/js/types/PickRequired.js';
import optionize, { EmptySelfOptions } from '../../../../phet-core/js/optionize.js';
import { NodeOptions } from '../../../../scenery/js/imports.js';
Expand Down
2 changes: 1 addition & 1 deletion js/mean-and-median/view/MeanAndMedianPlotNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import centerAndVariability from '../../centerAndVariability.js';
import CAVSceneModel from '../../soccer-common/model/CAVSceneModel.js';
import MedianBarNode from '../../common/view/MedianBarNode.js';
import PickRequired from '../../../../phet-core/js/types/PickRequired.js';
import CAVPlotNode, { CAVPlotNodeOptions } from '../../soccer-common/view/CAVPlotNode.js';
import CAVPlotNode, { CAVPlotNodeOptions } from '../../common/view/CAVPlotNode.js';
import MeanAndMedianModel from '../model/MeanAndMedianModel.js';
import { EmptySelfOptions } from '../../../../phet-core/js/optionize.js';
import NumberLineNode from '../../soccer-common/view/NumberLineNode.js';
Expand Down
2 changes: 1 addition & 1 deletion js/median/view/CardNodeContainer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import AsyncCounter from '../../common/model/AsyncCounter.js';
import PhetFont from '../../../../scenery-phet/js/PhetFont.js';
import PickRequired from '../../../../phet-core/js/types/PickRequired.js';
import Matrix3 from '../../../../dot/js/Matrix3.js';
import DragIndicatorArrowNode from '../../soccer-common/view/DragIndicatorArrowNode.js';
import DragIndicatorArrowNode from '../../common/view/DragIndicatorArrowNode.js';
import TEmitter from '../../../../axon/js/TEmitter.js';
import MedianModel from '../../median/model/MedianModel.js';
import PatternStringProperty from '../../../../axon/js/PatternStringProperty.js';
Expand Down
1 change: 0 additions & 1 deletion js/soccer-common/model/TKickDistanceStrategy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ export class DistributionStrategy implements TKickDistanceStrategy {

public getNextKickDistance( kickNumber: number ): number {
phet.chipper.queryParameters.dev && console.log( this.toStateObject() );
assert && assert( this.distribution.length === CAVConstants.PHYSICAL_RANGE.getLength() + 1, 'weight array should match the model range' );
return dotRandom.sampleProbabilities( this.distribution ) + 1;
}

Expand Down
2 changes: 1 addition & 1 deletion js/variability/view/IQRNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import ArrowNode from '../../../../scenery-phet/js/ArrowNode.js';
import centerAndVariability from '../../centerAndVariability.js';
import VariabilityModel from '../model/VariabilityModel.js';
import CenterAndVariabilityStrings from '../../CenterAndVariabilityStrings.js';
import CAVPlotNode, { CAVPlotNodeOptions, MIN_KICKS_TEXT_OFFSET, MIN_KICKS_TEXT_TOP_MARGIN } from '../../soccer-common/view/CAVPlotNode.js';
import CAVPlotNode, { CAVPlotNodeOptions, MIN_KICKS_TEXT_OFFSET, MIN_KICKS_TEXT_TOP_MARGIN } from '../../common/view/CAVPlotNode.js';
import StrictOmit from '../../../../phet-core/js/types/StrictOmit.js';
import CAVColors from '../../common/CAVColors.js';
import TReadOnlyProperty from '../../../../axon/js/TReadOnlyProperty.js';
Expand Down
2 changes: 1 addition & 1 deletion js/variability/view/MADNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import CenterAndVariabilityStrings from '../../CenterAndVariabilityStrings.js';
import MedianBarNode from '../../common/view/MedianBarNode.js';
import PhetFont from '../../../../scenery-phet/js/PhetFont.js';
import Utils from '../../../../dot/js/Utils.js';
import CAVPlotNode, { CAVPlotNodeOptions, MIN_KICKS_TEXT_OFFSET, MIN_KICKS_TEXT_TOP_MARGIN } from '../../soccer-common/view/CAVPlotNode.js';
import CAVPlotNode, { CAVPlotNodeOptions, MIN_KICKS_TEXT_OFFSET, MIN_KICKS_TEXT_TOP_MARGIN } from '../../common/view/CAVPlotNode.js';
import CAVConstants from '../../common/CAVConstants.js';
import StrictOmit from '../../../../phet-core/js/types/StrictOmit.js';
import CAVColors from '../../common/CAVColors.js';
Expand Down
2 changes: 1 addition & 1 deletion js/variability/view/RangeNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { ManualConstraint, Rectangle, Text } from '../../../../scenery/js/import
import centerAndVariability from '../../centerAndVariability.js';
import VariabilityModel from '../model/VariabilityModel.js';
import CenterAndVariabilityStrings from '../../CenterAndVariabilityStrings.js';
import CAVPlotNode, { CAVPlotNodeOptions, MIN_KICKS_TEXT_OFFSET, MIN_KICKS_TEXT_TOP_MARGIN } from '../../soccer-common/view/CAVPlotNode.js';
import CAVPlotNode, { CAVPlotNodeOptions, MIN_KICKS_TEXT_OFFSET, MIN_KICKS_TEXT_TOP_MARGIN } from '../../common/view/CAVPlotNode.js';
import CAVObjectType from '../../soccer-common/model/CAVObjectType.js';
import StrictOmit from '../../../../phet-core/js/types/StrictOmit.js';
import CAVConstants from '../../common/CAVConstants.js';
Expand Down
2 changes: 1 addition & 1 deletion js/variability/view/VariabilityPlotNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import MADNode from './MADNode.js';
import VariabilityMeasure from '../model/VariabilityMeasure.js';
import ToggleNode from '../../../../sun/js/ToggleNode.js';
import VariabilitySceneModel from '../model/VariabilitySceneModel.js';
import CAVPlotNode from '../../soccer-common/view/CAVPlotNode.js';
import CAVPlotNode from '../../common/view/CAVPlotNode.js';
import IntervalToolPlayAreaNode from './IntervalToolPlayAreaNode.js';
import NumberLineNode from '../../soccer-common/view/NumberLineNode.js';

Expand Down

0 comments on commit ab67526

Please sign in to comment.