ngx-graph icon indicating copy to clipboard operation
ngx-graph copied to clipboard

Changing zoomLevel redraws the entire graph

Open notzain opened this issue 4 years ago • 0 comments

Describe the bug When changing the zoom level, the graph redraws all edges and links. This resets all node positions, making it very hard to zoom into a particular node.

To Reproduce Steps to reproduce the behavior:

  1. Bind to zoomLevel input
  2. Update zoomLevel to a new value

Expected behavior I expect that changing zoomLevel, zooms into the graph as if I zoomed using mouse scroll (without resetting the node positions).

Screenshots N/A

Demo https://stackblitz.com/edit/ngx-graph-demo-btqhbq?file=src/app/app.component.ts

ngx-graph version 7.2

Additional context N/A

notzain avatar May 20 '21 15:05 notzain