ngx-graph
ngx-graph copied to clipboard
Changing zoomLevel redraws the entire graph
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:
- Bind to
zoomLevelinput - Update
zoomLevelto 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