Skip to content

Commit

Permalink
factor out RangedProperty and name to TRangedProperty, phetsims/axon#425
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Jan 5, 2023
1 parent ab8d7dc commit 4c2daa3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions js/common/model/DensityBuoyancyModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ import PhysicsEngine, { PhysicsEngineBody } from './PhysicsEngine.js';
import Mass from './Mass.js';
import Basin from './Basin.js';
import Cuboid from './Cuboid.js';
import NumberProperty, { RangedProperty } from '../../../../axon/js/NumberProperty.js';
import NumberProperty from '../../../../axon/js/NumberProperty.js';
import TReadOnlyProperty from '../../../../axon/js/TReadOnlyProperty.js';
import TRangedProperty from '../../../../axon/js/TRangedProperty.js';

// constants
const BLOCK_SPACING = 0.01;
Expand All @@ -53,7 +54,7 @@ export default class DensityBuoyancyModel {
public readonly showBuoyancyForceProperty: Property<boolean>;
public readonly showContactForceProperty: Property<boolean>;
public readonly showForceValuesProperty: Property<boolean>;
public readonly forceScaleProperty: RangedProperty;
public readonly forceScaleProperty: TRangedProperty;
public readonly showMassesProperty: Property<boolean>;
public readonly gravityProperty: Property<Gravity>;
public readonly liquidMaterialProperty: Property<Material>;
Expand Down
4 changes: 2 additions & 2 deletions js/density/view/ComparisonNumberControl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
* @author Jonathan Olson <[email protected]>
*/

import { RangedProperty } from '../../../../axon/js/NumberProperty.js';
import TReadOnlyProperty from '../../../../axon/js/TReadOnlyProperty.js';
import Dimension2 from '../../../../dot/js/Dimension2.js';
import Utils from '../../../../dot/js/Utils.js';
Expand All @@ -18,12 +17,13 @@ import { Text } from '../../../../scenery/js/imports.js';
import SunConstants from '../../../../sun/js/SunConstants.js';
import DensityBuoyancyCommonConstants from '../../common/DensityBuoyancyCommonConstants.js';
import densityBuoyancyCommon from '../../densityBuoyancyCommon.js';
import TRangedProperty from '../../../../axon/js/TRangedProperty.js';

export type ComparisonNumberControlOptions = NumberControlOptions;

export default class ComparisonNumberControl extends NumberControl {
public constructor(
property: RangedProperty,
property: TRangedProperty,
titleStringProperty: TReadOnlyProperty<string>,
valuePatternStringProperty: TReadOnlyProperty<string>,
valueName: string,
Expand Down

0 comments on commit 4c2daa3

Please sign in to comment.