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

Request: Hide labels when scale is too small to read them #21

Open
jspautsch opened this issue Oct 31, 2018 · 0 comments
Open

Request: Hide labels when scale is too small to read them #21

jspautsch opened this issue Oct 31, 2018 · 0 comments

Comments

@jspautsch
Copy link

Native Cytoscape has the min-zoomed-font-size option that stops text from rendering when the scale is too small to read it. Since this plugin uses arbitrary HTML, a font size would probably not work, but perhaps an option to set a minimum scale, after which all labels would be hidden, would be useful.

In my project I threw some code in to updatePanZoom method to add "display: none" to the container when the scale goes below 0.3. A way to pass in a specific zoom level would of course be preferred.

Thanks! Love this plugin

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

2 participants