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

[HitCanvas] Find way to fully remove anti-aliasing of shapes #180

Open
techniq opened this issue Jun 4, 2024 · 0 comments
Open

[HitCanvas] Find way to fully remove anti-aliasing of shapes #180

techniq opened this issue Jun 4, 2024 · 0 comments

Comments

@techniq
Copy link
Owner

techniq commented Jun 4, 2024

This causes tooltip hiding (flickering) as the aliased color on the edges is not in the map. Might be able to set some kind of threshold to match, but that will slow down the lookup a good bit.

image

Sadly, image-rendering: pixelated (or any other value) is not the solution. https://developer.mozilla.org/en-US/docs/Web/CSS/image-rendering

There is also the r-tree approach to investigate, but I liked the simplicity of easy to debug nature of the HitCanvas approach.

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

No branches or pull requests

1 participant