SpectrumSliderThumb¶
Overview¶
SpectrumSliderThumb has (a) a thin cursor that lies on the track and (b) a teardrop-shaped handle that drops down below the track and depicts the selected color. Origin is at top center.
@author Sam Reid (PhET Interactive Simulations)
Class SpectrumSliderThumb¶
Constructor¶
new SpectrumSliderThumb( property : TReadOnlyProperty<number>, providedOptions? : SpectrumSliderThumbOptions )¶
Instance Methods¶
setCenterY( centerY : number ) : this¶
Position the thumb in the track.
dispose()¶
Type SpectrumSliderThumbOptions¶
- width?: number
- height?: number
- cursorHeight?: number
- cursorWidth?: number
- windowCursorOptions?: RectangleOptions
- & PickOptional<SpectrumNodeOptions, "valueToColor"> & PathOptions
Source Code¶
See the source for SpectrumSliderThumb.ts in the scenery-phet repository.