Key | Value (default shown) | Description |
max | 100
| The circle is split into this max number of increments (default set to 100 to match a percentage going from 0-99).
|
radius
| 50 | Sets the radius of the circle in pixels measured from the centerX and centerY position (middle).
|
centerX | 100 | Positions the center of the circle 100 pixels from the left edge of its container.
|
centerY | 100
| Positions the center of the circle 100 pixels from the top edge of the container.
|
clockwise | true | Sets the direction of the rotation. Clockwise if true and counter (or anti for you British folk) clockwise if false.
|
startPosition
| 0.75 | This
may not make sense if you don't know the coordinate system, but
basically zero is the far right side of the circle or the x-y
coordinates of ( x=radius, y=0 ) . So if you want to have the indicator
start with the "zero" at the top of the circle, you need to start from
75% or 3/4 of your way around the circle. So basically, set 0 to start
on the right, .25 (25%) for bottom, .5 (50%) for left and .75 (75%)
would be the top of the circle where ( x = 0 , y = radius ).
|
sizeStart
| 80
| Sets
the starting size of the element to 80 pixels. This sets the font size,
the height & width of any element inside the span (like an image)
|
sizeDec
| 4
| Sets
how much to decrement the size of the next element from the starting
size. Try to avoid making the decrement size that would cause the last
element to be too small or negative (for example: these settings would
not look good, 10 spans inside the progress indicator (in the HTML),
sizeStart = 20, sizeDec = 2; this would make the last span element have
a size of zero (20 - 2 * 10 = 0).
|
showValue
| true | Adds
the progress indicator value to the "display" class inside the progress
div. If you want to be tricky, add the display class to one of your
spans to have the indicator move around with the other elements.
|
timerActive | false
| Initialize progression indicator start and stop functions allowing the indicator to move independent of the percent value.
|
timerSpeed
| 20 | Sets the setInterval time in milliseconds.
|
timerIncrement | 1
| At
each setInterval call, the progression indicator is incremented by this
value. Make this number bigger to speed up the animation, but the
bigger the number, the more choppy the animation.
|