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

Add panToNode/panToEdge imperative methods #129

Merged
merged 3 commits into from
May 21, 2019

Conversation

ksnyder9801
Copy link
Contributor

This allows users to imperatively (i.e., using a ref to GraphView) pan to a node or edge within the graph. The math in the panToEntity function and its tests are based on the handleZoomToFit function, just without zooming and specific to a single element's bbox instead of all elements.
Adds some basic usage to the example app.

@CLAassistant
Copy link

CLAassistant commented May 21, 2019

CLA assistant check
All committers have signed the CLA.

@ajbogh ajbogh merged commit 0561c7f into uber:master May 21, 2019
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

Successfully merging this pull request may close these issues.

3 participants