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

Center the focus node in the graph #14

Open
KnowledgeGarden opened this issue Mar 27, 2020 · 1 comment
Open

Center the focus node in the graph #14

KnowledgeGarden opened this issue Mar 27, 2020 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@KnowledgeGarden
Copy link
Owner

Right now, vis.js tends to paint a graph in the upper left region, forcing users to pan the canvas to center the graph. This task is to programmatically center the focus topic.

@KnowledgeGarden KnowledgeGarden added the enhancement New feature or request label Mar 27, 2020
@KnowledgeGarden KnowledgeGarden self-assigned this Mar 27, 2020
@KnowledgeGarden
Copy link
Owner Author

This is being a difficult task: vis.js (the older version, not vis-network.js) insists on holding the initial graph in the upper left corner. You cannot drag the node; it will spring back. You can only pan the canvas. I tried shifting to cytoscape.js, but their documentation and examples simply would not yield a workable solution.

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

No branches or pull requests

1 participant