Skip to content

Commit

Permalink
Rename SolarSystemCommonTextNumberDisplay=>SolarSystemCommonTextUtils p…
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Mar 16, 2023
1 parent 35679be commit 7396404
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2023, University of Colorado Boulder

/**
* A combination of a Rich Text node and a Number Display node.
* A combination of a Rich Text node and a Number Display node. Only used in Kepler's Laws.
*
* @author Agustín Vallejo
*/
Expand All @@ -12,7 +12,7 @@ import SolarSystemCommonStrings from '../../../solar-system-common/js/SolarSyste
import StringUtils from '../../../phetcommon/js/util/StringUtils.js';
import solarSystemCommon from '../solarSystemCommon.js';

export default class SolarSystemCommonTextNumberDisplay {
export default class SolarSystemCommonTextUtils {
public static createPowerStringProperty( unitStringProperty: TReadOnlyProperty<string>, powerStringProperty: TReadOnlyProperty<number> ): TReadOnlyProperty<string> {
return new DerivedProperty( [ unitStringProperty, powerStringProperty, SolarSystemCommonStrings.pattern.unitsPowerStringProperty ], ( string, power, pattern ) => {
if ( power === 1 ) {
Expand All @@ -28,4 +28,4 @@ export default class SolarSystemCommonTextNumberDisplay {
}
}

solarSystemCommon.register( 'SolarSystemCommonTextNumberDisplay', SolarSystemCommonTextNumberDisplay );
solarSystemCommon.register( 'SolarSystemCommonTextUtils', SolarSystemCommonTextUtils );

0 comments on commit 7396404

Please sign in to comment.