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

Handling zoom events #5

Open
maxkfranz opened this issue Nov 24, 2014 · 2 comments
Open

Handling zoom events #5

maxkfranz opened this issue Nov 24, 2014 · 2 comments

Comments

@maxkfranz
Copy link

In order to achieve maximum balance of performance and text quality, it is best to use the scale() transform during zooming, and then to use an adjusted font size along with scale(1, 1) when zooming is finished. That way, text is crisp when zooming is finished, and text is rendered quickly during zooming. You can use $$.util.debounce() on the zoom event for this.

@wehriam
Copy link
Owner

wehriam commented Nov 24, 2014

How would I attach a method to the zoom event?

@wehriam
Copy link
Owner

wehriam commented Nov 24, 2014

Never mind, found it!

http://js.cytoscape.org/#events

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

2 participants