ValueGaugeNode¶
Overview¶
A GaugeNode with a NumberDisplay located in the center bottom half of the GaugeNode to display the numerical value. The NumberDisplay can be hidden but is visible by default.
@author Jesse Greenberg
Class ValueGaugeNode¶
Constructor¶
new ValueGaugeNode( valueProperty : TReadOnlyProperty<number>, label : TReadOnlyProperty<string>, range : Range, providedOptions? : ValueGaugeNodeOptions )¶
Instance Methods¶
setNumberDisplayVisible( visible : boolean )¶
Sets the visibility of the gauge's NumberDisplay.
getNumberDisplayVisible() : boolean¶
Gets the visibility of the gauge's NumberDisplay.
dispose()¶
Type ValueGaugeNodeOptions¶
- numberDisplayOptions?: NumberDisplayOptions
options passed to the NumberDisplay - & GaugeNodeOptions
Source Code¶
See the source for ValueGaugeNode.ts in the scenery-phet repository.