From 739640414ad486b109f4a0cb0c2a2ca8ed771024 Mon Sep 17 00:00:00 2001 From: Sam Reid Date: Wed, 15 Mar 2023 20:40:06 -0600 Subject: [PATCH] Rename SolarSystemCommonTextNumberDisplay=>SolarSystemCommonTextUtils https://github.com/phetsims/my-solar-system/issues/95 --- ...onTextNumberDisplay.ts => SolarSystemCommonTextUtils.ts} | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename js/view/{SolarSystemCommonTextNumberDisplay.ts => SolarSystemCommonTextUtils.ts} (81%) diff --git a/js/view/SolarSystemCommonTextNumberDisplay.ts b/js/view/SolarSystemCommonTextUtils.ts similarity index 81% rename from js/view/SolarSystemCommonTextNumberDisplay.ts rename to js/view/SolarSystemCommonTextUtils.ts index 0a3a743..f26c6c9 100644 --- a/js/view/SolarSystemCommonTextNumberDisplay.ts +++ b/js/view/SolarSystemCommonTextUtils.ts @@ -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 */ @@ -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, powerStringProperty: TReadOnlyProperty ): TReadOnlyProperty { return new DerivedProperty( [ unitStringProperty, powerStringProperty, SolarSystemCommonStrings.pattern.unitsPowerStringProperty ], ( string, power, pattern ) => { if ( power === 1 ) { @@ -28,4 +28,4 @@ export default class SolarSystemCommonTextNumberDisplay { } } -solarSystemCommon.register( 'SolarSystemCommonTextNumberDisplay', SolarSystemCommonTextNumberDisplay ); \ No newline at end of file +solarSystemCommon.register( 'SolarSystemCommonTextUtils', SolarSystemCommonTextUtils ); \ No newline at end of file