Skip to content

Commit

Permalink
convertForceValue => forceValueToString
Browse files Browse the repository at this point in the history
  • Loading branch information
mbarlow12 committed Dec 12, 2018
1 parent cee14db commit dd84e6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/gravity-force-lab-basics/view/GFLBStringManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ define( require => {
distanceUnits: 'kilometers',
centerOffset: 4800,
valueUnits: unitsNewtonsString,
convertForceValue: value => `${Util.toFixedNumber( value, 1 )} newtons`,
forceValueToString: value => `${Util.toFixedNumber( value, 1 )} newtons`,
convertDistanceMetric: distance => Util.toFixedNumber( distance / 1e3, 1 ),
formatMassValue: mass => {
mass = mass / 1e9;
Expand All @@ -49,7 +49,7 @@ define( require => {

getOnlyQualitativeObjectDistanceSummary() {
const pattern = mass1Mass2QualitativeDistancePatternString;
return StringUtils.fillIn( pattern, { mass1: this.object1Label, mass2: this.object2Label, qualitativeDistance: this.getQualitativeDistance() } );
return StringUtils.fillIn( pattern, { mass1: this.object1Label, mass2: this.object2Label, qualitativeDistance: this.getRelativeDistanceText() } );
}

getPositionRegionChanged( newPosition, oldPosition ) {
Expand Down

0 comments on commit dd84e6b

Please sign in to comment.