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

Pan to location of a node #51

Open
newalphamedia opened this issue Oct 5, 2021 · 0 comments
Open

Pan to location of a node #51

newalphamedia opened this issue Oct 5, 2021 · 0 comments

Comments

@newalphamedia
Copy link

Is there any way to programmatically pan to the location of a node?

For example, if the orgchart becomes really wide we may want to pan to the top-most node so that it appears on screen. Or, we might want to have a side menu that lists items from the current 'node levels deep' which, when selected, jumps to the location of that node in the orgchart.

I have attempted this myself, but I am unable to figure it out - I've dived into grabbing what I can with document.getElementsByClassName("orgchart") but this hasn't worked for me - it's probably not ideal to be trying to go through the DOM anyway.

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