From d01c77c2463fcef4d6afa6c48572c340849ae3d5 Mon Sep 17 00:00:00 2001 From: Sam Reid Date: Fri, 16 Sep 2022 10:01:41 -0600 Subject: [PATCH] Add phetioVisiblePropertyInstrumented: true, see https://github.com/phetsims/scenery/issues/1447 --- js/common/view/WaterFaucetNode.ts | 3 ++- js/common/view/graph/GraphScaleSwitch.ts | 6 ++++-- js/common/view/graph/GraphUnitsSwitch.ts | 6 ++++-- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/js/common/view/WaterFaucetNode.ts b/js/common/view/WaterFaucetNode.ts index a21f79db..f20164e8 100644 --- a/js/common/view/WaterFaucetNode.ts +++ b/js/common/view/WaterFaucetNode.ts @@ -49,7 +49,8 @@ export default class WaterFaucetNode extends Node { maxWidth: 85, left: faucetNode.left + 115, bottom: faucetNode.centerY - 40, - tandem: options.tandem.createTandem( 'waterText' ) + tandem: options.tandem.createTandem( 'waterText' ), + phetioVisiblePropertyInstrumented: true } ); options.children = [ faucetNode, waterText ]; diff --git a/js/common/view/graph/GraphScaleSwitch.ts b/js/common/view/graph/GraphScaleSwitch.ts index 81ef9413..4626ef10 100644 --- a/js/common/view/graph/GraphScaleSwitch.ts +++ b/js/common/view/graph/GraphScaleSwitch.ts @@ -40,12 +40,14 @@ export default class GraphScaleSwitch extends ABSwitch { // Logarithmic label const logarithmicText = new Text( PhScaleStrings.logarithmicStringProperty, combineOptions( { - tandem: options.tandem.createTandem( 'logarithmicText' ) + tandem: options.tandem.createTandem( 'logarithmicText' ), + phetioVisiblePropertyInstrumented: true }, textOptions ) ); // Linear label const linearText = new Text( PhScaleStrings.linearStringProperty, combineOptions( { - tandem: options.tandem.createTandem( 'linearText' ) + tandem: options.tandem.createTandem( 'linearText' ), + phetioVisiblePropertyInstrumented: true }, textOptions ) ); super( graphScaleProperty, GraphScale.LOGARITHMIC, logarithmicText, GraphScale.LINEAR, linearText, options ); diff --git a/js/common/view/graph/GraphUnitsSwitch.ts b/js/common/view/graph/GraphUnitsSwitch.ts index 0c38c446..8c474e68 100644 --- a/js/common/view/graph/GraphUnitsSwitch.ts +++ b/js/common/view/graph/GraphUnitsSwitch.ts @@ -42,7 +42,8 @@ export default class GraphUnitsSwitch extends ABSwitch { align: 'center', font: PHScaleConstants.AB_SWITCH_FONT, maxWidth: 125, - tandem: options.tandem.createTandem( 'concentrationText' ) + tandem: options.tandem.createTandem( 'concentrationText' ), + phetioVisiblePropertyInstrumented: true } ); // Quantity (mol) @@ -53,7 +54,8 @@ export default class GraphUnitsSwitch extends ABSwitch { align: 'center', font: PHScaleConstants.AB_SWITCH_FONT, maxWidth: 90, - tandem: options.tandem.createTandem( 'quantityText' ) + tandem: options.tandem.createTandem( 'quantityText' ), + phetioVisiblePropertyInstrumented: true } ); super( graphUnitsProperty, GraphUnits.MOLES_PER_LITER, concentrationText, GraphUnits.MOLES, quantityText, options );