Skip to content

DefaultSliderTrack

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

import { DefaultSliderTrack } from 'scenerystack/sun';

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

import type { DefaultSliderTrackOptions } from 'scenerystack/sun';

Source Code

See the source for DefaultSliderTrack.ts in the sun repository.