DefaultSliderTrack¶
Under Construction
This documentation is auto-generated, and is a work in progress. Please see the source code at https://github.com/phetsims/sun/blob/main/js/DefaultSliderTrack.ts for the most up-to-date information.
Overview¶
DefaultSliderTrack is composed of two rectangles, one for the enabled section of the track and one for the disabled section. The enabled track rectangle sits on top of the disabled track so that the enabled range can be any desired sub range of the full slider range.
@author Chris Malley (PixelZoom, Inc.) @author Sam Reid (PhET Interactive Simulations) @author Jesse Greenberg (PhET Interactive Simulations)
Class DefaultSliderTrack¶
Constructor¶
new DefaultSliderTrack( valueProperty : TProperty<number>, range : Range | TReadOnlyProperty<Range>, providedOptions? : DefaultSliderTrackOptions )¶
Instance Methods¶
dispose()¶
Type DefaultSliderTrackOptions¶
We require size/enabledRangeProperty instead of leaving it optional for the supertype
- fillEnabled?: TPaint
- fillDisabled?: TPaint
- stroke?: TPaint
- lineWidth?: number
- cornerRadius?: number
- & SliderTrackOptions & PickRequired<SliderTrackOptions, "size" | "enabledRangeProperty">
Source Code¶
See the source for DefaultSliderTrack.ts in the sun repository.