Class Slider
abstract class epresenting generic slider
Defined in: raphaeltools.src.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Slider(raphael, params)
Slider
|
Field Attributes | Field Name and Description |
---|---|
Circle
|
|
gap between end of the slider's line and the slider's circle when the circle is at extreme position
|
|
initial value
|
|
len of slider [pixels]
|
|
length span of getable values
|
|
line
|
|
raphael instance
|
|
radius of slider's circle
|
|
value when the slider is at the very beginning
|
|
value when the slider is at the very end
|
|
x coordinate of left/upper end
|
|
z coordinate of left/upper end
|
Class Detail
Slider(raphael, params)
Slider
- Parameters:
- {Raphael} raphael
- raphael instance
- {Object} params
- parameters,see below
- {float} params.x Optional, Default: 100.
- x coordinate of left/upper end
- {float} params.z Optional, Default: 100.
- z coordinate of left/upper end
- {float} params.length Optional, Default: 100.
- length of slider [pixels]
- {float} params.rcirc Optional, Default: 5.
- radius of slider's circle
- {float} params.val1 Optional, Default: 0.
- value when the slider is at the very beginning
- {float} params.val2 Optional, Default: 1.
- value when the slider is at the very end
- {float} params.initVal Optional, Default: (val1+val2)/2
- initial value
- {float} params.gap Optional, Default: 3.
- gap between end of the slider's line and the slider's circle when the circle is at extreme position
Field Detail
{Circle}
circ
Circle
{float}
gap
gap between end of the slider's line and the slider's circle when the circle is at extreme position
{float}
initVal
initial value
{float}
len
len of slider [pixels]
{float}
lenVals
length span of getable values
{Raphael.el}
line
line
{Raphael}
raphael
raphael instance
{float}
rcirc
radius of slider's circle
{float}
val1
value when the slider is at the very beginning
{float}
val2
value when the slider is at the very end
{float}
x
x coordinate of left/upper end
{float}
z
z coordinate of left/upper end