diff --git a/js/common/view/PHMeterNode.js b/js/common/view/PHMeterNode.js index b9bae399..c587ded0 100644 --- a/js/common/view/PHMeterNode.js +++ b/js/common/view/PHMeterNode.js @@ -97,7 +97,8 @@ define( require => { backgroundFill: 'white', backgroundStroke: 'darkGray', xMargin: 8, - yMargin: 5 + yMargin: 5, + tandem: options.tandem.createTandem( 'numberDisplay' ) } ); } diff --git a/js/phet-io/ph-scale-phet-io-elements-baseline.js b/js/phet-io/ph-scale-phet-io-elements-baseline.js index 00316400..21f1d7d6 100644 --- a/js/phet-io/ph-scale-phet-io-elements-baseline.js +++ b/js/phet-io/ph-scale-phet-io-elements-baseline.js @@ -8529,6 +8529,123 @@ window.phet.phetio.phetioElementsBaseline = assert && "phetioStudioControl": true, "phetioTypeName": "PropertyIO" }, + "phScale.microScreen.view.pHMeterNode.numberDisplay": { + "phetioDocumentation": "", + "phetioDynamicElement": false, + "phetioEventType": "MODEL", + "phetioFeatured": false, + "phetioHighFrequency": false, + "phetioIsArchetype": false, + "phetioPlayback": false, + "phetioReadOnly": false, + "phetioState": false, + "phetioStudioControl": true, + "phetioTypeName": "NumberDisplayIO" + }, + "phScale.microScreen.view.pHMeterNode.numberDisplay.opacityProperty": { + "phetioDocumentation": "Opacity of the parent NodeIO, between 0 (invisible) and 1 (fully visible)", + "phetioDynamicElement": false, + "phetioEventType": "MODEL", + "phetioFeatured": false, + "phetioHighFrequency": false, + "phetioIsArchetype": false, + "phetioPlayback": false, + "phetioReadOnly": false, + "phetioState": true, + "phetioStudioControl": true, + "phetioTypeName": "NumberPropertyIO" + }, + "phScale.microScreen.view.pHMeterNode.numberDisplay.pickableProperty": { + "phetioDocumentation": "Sets whether the node will be pickable (and hence interactive), see the NodeIO documentation for more details", + "phetioDynamicElement": false, + "phetioEventType": "MODEL", + "phetioFeatured": false, + "phetioHighFrequency": false, + "phetioIsArchetype": false, + "phetioPlayback": false, + "phetioReadOnly": false, + "phetioState": true, + "phetioStudioControl": true, + "phetioTypeName": "PropertyIO>" + }, + "phScale.microScreen.view.pHMeterNode.numberDisplay.valueText": { + "phetioDocumentation": "", + "phetioDynamicElement": false, + "phetioEventType": "MODEL", + "phetioFeatured": false, + "phetioHighFrequency": false, + "phetioIsArchetype": false, + "phetioPlayback": false, + "phetioReadOnly": true, + "phetioState": false, + "phetioStudioControl": true, + "phetioTypeName": "TextIO" + }, + "phScale.microScreen.view.pHMeterNode.numberDisplay.valueText.opacityProperty": { + "phetioDocumentation": "Opacity of the parent NodeIO, between 0 (invisible) and 1 (fully visible)", + "phetioDynamicElement": false, + "phetioEventType": "MODEL", + "phetioFeatured": false, + "phetioHighFrequency": false, + "phetioIsArchetype": false, + "phetioPlayback": false, + "phetioReadOnly": true, + "phetioState": true, + "phetioStudioControl": true, + "phetioTypeName": "NumberPropertyIO" + }, + "phScale.microScreen.view.pHMeterNode.numberDisplay.valueText.pickableProperty": { + "phetioDocumentation": "Sets whether the node will be pickable (and hence interactive), see the NodeIO documentation for more details", + "phetioDynamicElement": false, + "phetioEventType": "MODEL", + "phetioFeatured": false, + "phetioHighFrequency": false, + "phetioIsArchetype": false, + "phetioPlayback": false, + "phetioReadOnly": true, + "phetioState": true, + "phetioStudioControl": true, + "phetioTypeName": "PropertyIO>" + }, + "phScale.microScreen.view.pHMeterNode.numberDisplay.valueText.textProperty": { + "phetioDocumentation": "Property for the displayed text", + "phetioDynamicElement": false, + "phetioEventType": "MODEL", + "phetioFeatured": false, + "phetioHighFrequency": false, + "phetioIsArchetype": false, + "phetioPlayback": false, + "phetioReadOnly": true, + "phetioState": true, + "phetioStudioControl": true, + "phetioTypeName": "PropertyIO" + }, + "phScale.microScreen.view.pHMeterNode.numberDisplay.valueText.visibleProperty": { + "phetioDocumentation": "Controls whether the Node will be visible (and interactive), see the NodeIO documentation for more details.", + "phetioDynamicElement": false, + "phetioEventType": "MODEL", + "phetioFeatured": false, + "phetioHighFrequency": false, + "phetioIsArchetype": false, + "phetioPlayback": false, + "phetioReadOnly": true, + "phetioState": true, + "phetioStudioControl": true, + "phetioTypeName": "PropertyIO" + }, + "phScale.microScreen.view.pHMeterNode.numberDisplay.visibleProperty": { + "phetioDocumentation": "Controls whether the Node will be visible (and interactive), see the NodeIO documentation for more details.", + "phetioDynamicElement": false, + "phetioEventType": "MODEL", + "phetioFeatured": false, + "phetioHighFrequency": false, + "phetioIsArchetype": false, + "phetioPlayback": false, + "phetioReadOnly": false, + "phetioState": true, + "phetioStudioControl": true, + "phetioTypeName": "PropertyIO" + }, "phScale.microScreen.view.pHMeterNode.opacityProperty": { "phetioDocumentation": "Opacity of the parent NodeIO, between 0 (invisible) and 1 (fully visible)", "phetioDynamicElement": false, diff --git a/js/phet-io/ph-scale-phet-io-types.js b/js/phet-io/ph-scale-phet-io-types.js index 6fb7533e..8d6a91eb 100644 --- a/js/phet-io/ph-scale-phet-io-types.js +++ b/js/phet-io/ph-scale-phet-io-types.js @@ -796,6 +796,14 @@ window.phet.phetio.phetioTypes = assert && "supertype": "ObjectIO", "typeName": "NullableIO" }, + "NumberDisplayIO": { + "documentation": "A numeric readout with a background", + "events": [], + "methodOrder": [], + "methods": {}, + "supertype": "NodeIO", + "typeName": "NumberDisplayIO" + }, "NumberIO": { "documentation": "Wrapper for the built-in JS number type (floating point, but also represents integers)", "events": [],