Skip to content
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

Improve ternaryPlot.transform() within bounds check #5

Open
JulesBlm opened this issue May 23, 2021 · 0 comments
Open

Improve ternaryPlot.transform() within bounds check #5

JulesBlm opened this issue May 23, 2021 · 0 comments

Comments

@JulesBlm
Copy link
Collaborator

JulesBlm commented May 23, 2021

Calling .transform() performs a check if the newly transformed vertices are within bounds of the initial triangle. Occasionally something goes wrong and zooming becomes very jumpy, especially when dragging the transformed triangle near the vertices of the initial triangle.

See this demo

This GIF kind of depict how the check works.
https://twitter.com/FreyaHolmer/status/1300041795670245376

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant