g6/examples/interaction/position/index.en.md

281 B

title order
Click to Focus a Node 6

Move the graph by interaction.

Usage

Move the graph to focus on the clicked node, which means pan the canvas to center at the clicked node.

  • 1st demo: move the graph with animation;
  • 2nd demo: move the graph without animation.