Skip to content

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

import { ValueGaugeNode } from 'scenerystack/scenery-phet';

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

import type { ValueGaugeNodeOptions } from 'scenerystack/scenery-phet';

Source Code

See the source for ValueGaugeNode.ts in the scenery-phet repository.