SliderTick¶
Overview¶
Ticks for a slider.
@author Jonathan Olson (PhET Interactive Simulations)
Class SliderTick¶
Constructor¶
new SliderTick( parent : Node, value : number, label : Node | undefined, length : number, stroke : TPaint, lineWidth : number, tickOptions : Required<SliderTickOptions>, orientation : Orientation, track : SliderTrack )¶
Instance Methods¶
dispose()¶
Instance Properties¶
tickNode : Node¶
(readonly)
Type SliderTickOptions¶
- tickLabelSpacing?: number
- majorTickLength?: number
- majorTickStroke?: TPaint
- majorTickLineWidth?: number
- minorTickLength?: number
- minorTickStroke?: TPaint
- minorTickLineWidth?: number
- setTickInitialPoint?: ( trackBounds: Bounds2, tickLength: number ) => Vector2
- positionLabel?: ( label: Layoutable, tickBounds: Bounds2 ) => void
Source Code¶
See the source for SliderTick.ts in the sun repository.