-
Notifications
You must be signed in to change notification settings - Fork 11.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed bug with bezier still being used with tension set to 0 #1826
Conversation
Not entirely sure that this is needed. A bezier tension of 0 will draw straight lines. Have you been running into scenarios where a tension of 0 is not giving straight lines? |
@etimberg Bezier with tension set around 0 will cause artifacts. tension set to 0 |
Ok, I'll merge this as soon as the tests pass 😄 |
@etimberg You fix the tests or I? I'm not sure where to get the options object from that part of the code if this._chart is not available. |
If you could fix the tests, that'd be great. I think you should have access to the tension as If you want the animated tension, look in |
@etimberg Would this work? |
Yup. The only thing that might be a problem is if the user animates the bezier curve tension to 0. That is highly unlikely however. |
Thanks again @hallatore |
Fixed bug with bezier still being used with tension set to 0
According to the docs bezier curve should be disabled when tension is set to 0.