KnowledgeGarden / lite-net-3

lite-net as a web app with authentication and privacy; simplest-possible note taking app for network and non-linear thinking.
Apache License 2.0
12 stars 0 forks source link

Center the focus node in the graph #14

Open KnowledgeGarden opened 4 years ago

KnowledgeGarden commented 4 years ago

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 commented 4 years ago

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.