Closed pixelzoom closed 8 months ago
Where createRichTextNumberFormatter
is used, this should be addressed using strictAxonDependencies
. It's not ideal, but here's an example from WaveInterferenceStopwatchNode.ts:
numberFormatter: StopwatchNode.createRichTextNumberFormatter( {
showAsMinutesAndSeconds: false,
units: unitsProperty
} ),
numberFormatterDependencies: [
SceneryPhetStrings.stopwatchValueUnitsPatternStringProperty, // used by StopwatchNode.createRichTextNumberFormatter
unitsProperty
],
Reopening because there is a TODO marked for this issue.
Related to https://github.com/phetsims/scenery-phet/issues/780 ...
If the value formatter for StopwatchNode is created using
StopwatchNode.createRichTextNumberFormatter
, the displayed value is not immediately updated when the associated StringProperties are changed. As noted in StopwatchNode.ts: