Skip to content

Commit

Permalink
Move ARROW_LINE_WIDTH to SoccerCommonConstants.ts, see phetsims/cente…
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Jun 12, 2023
1 parent 6e881e4 commit 83c8688
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion js/soccer-common/SoccerCommonConstants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ import soccerCommon from './soccerCommon.js';

const SoccerCommonConstants = {
SOCCER_BALL_OVERLAP: 0.01,
GRAVITY: -9.8 // in meters/second^2
GRAVITY: -9.8, // in meters/second^2
ARROW_LINE_WIDTH: 0.5
};

soccerCommon.register( 'SoccerCommonConstants', SoccerCommonConstants );
Expand Down
4 changes: 2 additions & 2 deletions js/soccer-common/view/DragIndicatorArrowNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
*/

import ArrowNode, { ArrowNodeOptions } from '../../../../scenery-phet/js/ArrowNode.js';
import CAVConstants from '../../common/CAVConstants.js';
import soccerCommon from '../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';
import SoccerCommonColors from '../SoccerCommonColors.js';
import SoccerCommonConstants from '../SoccerCommonConstants.js';

type SelfOptions = EmptySelfOptions;
type DragIndicatorArrowNodeOptions = PickRequired<ArrowNodeOptions, 'tandem'> & Pick<ArrowNodeOptions, 'visible'> & NodeOptions;
Expand All @@ -29,7 +29,7 @@ export default class DragIndicatorArrowNode extends ArrowNode {
doubleHead: true,
fill: SoccerCommonColors.dragIndicatorColorProperty,
stroke: SoccerCommonColors.arrowStrokeProperty,
lineWidth: CAVConstants.ARROW_LINE_WIDTH
lineWidth: SoccerCommonConstants.ARROW_LINE_WIDTH
}, options ) );
}
}
Expand Down

0 comments on commit 83c8688

Please sign in to comment.