ngRadialGauge
ngRadialGauge copied to clipboard
easing CW and CCW
It's possible to force the easing direction? If you put 0 as min value 4.5 as max value and you change currentvalue 0 to 4.4 you'll see the neddle torate ccw. It's better to rotare CW when angle < 0 and CCW when angle > 0 .
Also a bug, if the value it's bigger than maxvalue, the neddle disappear.
Hello,
Sorry for the delay, for the direction i do not know how to make it work. For the needle disapearing, i design it this way because i could not show someting bigger then maximum value. Let say you have a value of 20 and your maximum is 4.5 how to draw needle position to make sense...
If you find a way for the rotation direction, let me know.
Thanks you for your feedback!
Stephane :)
On Sun, Jul 5, 2015 at 10:27 AM, xam8re [email protected] wrote:
It's possible to force the easing direction? If you put 0 as min value 4.5 as max value and you change currentvalue 0 to 4.4 you'll see the neddle torate ccw. It's better to rotare CW when angle < 0 and CCW when angle > 0 .
Also a bug, if the value it's bigger than maxvalue, the neddle disappear.
— Reply to this email directly or view it on GitHub https://github.com/stherrienaspnet/ngRadialGauge/issues/10.
A small (and ugly) workaround it's to split the transition in two sub-angle. Maybe only when angle it's bigger than 180°. But need to calculate correctly the effect of two transition (first linear, second elastic).
A real gauge, overflow equals neddle to the maximum value. It should disappear but, when the value return in the range, it must re-appear.