You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in some use cases (eg. server-side convert to png) the needle animation has to be disabled
passing config.animationDuration = 0 is not a possibility as the constructor test evaluates it to false and then uses the CONSTANT.NEEDLE_ANIMATION_DURATION
many possibilities
using config.animationDuration = 0.001 works (hackish though)
change CONSTANT.NEEDLE_ANIMATION_DURATION default value to 0 - the animation will be defined but with instant evaluation
creates a boolean deactivateAnimation and modify Needleclass accordingly
creates an animation object property and only set the animation if defined
animation: {duration: 3000,delay: 0}
I personally would prefer option 4. (or 2.)
Any opinion ?
The text was updated successfully, but these errors were encountered:
I think the easier and more elegant solution is to change condition in the constructor. Instead to do the following condition to set the animation duration,
in some use cases (eg. server-side convert to png) the needle animation has to be disabled
passing
config.animationDuration = 0
is not a possibility as the constructor test evaluates it tofalse
and then uses theCONSTANT.NEEDLE_ANIMATION_DURATION
many possibilities
config.animationDuration = 0.001
works (hackish though)CONSTANT.NEEDLE_ANIMATION_DURATION
default value to 0 - the animation will be defined but with instant evaluationdeactivateAnimation
and modifyNeedle
class accordinglyanimation
object property and only set the animation if definedI personally would prefer option 4. (or 2.)
Any opinion ?
The text was updated successfully, but these errors were encountered: