You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Hi, the bug is the following, when I use the programmaticaly implemented Center$ subject in order to center, it doesn't center the intended way
To Reproduce
I Implemented a customDagreNodesOnly custom Layout template available in the repo and, using custom nodes size, I implemented a function to open/close nodes.
When the function is called, I want to center my graph around the selected node, until I added this portion of code before updating my edge
I believe this is working because every nodes has the same position and only transition so changing the position is the issue, but using translate also doesn't work
the Center$ subject worked as intended, but now it does not anymore, and I believe this has to do with how is the calculation made after these changes
Describe the bug
Hi, the bug is the following, when I use the programmaticaly implemented Center$ subject in order to center, it doesn't center the intended way
To Reproduce
I Implemented a customDagreNodesOnly custom Layout template available in the repo and, using custom nodes size, I implemented a function to open/close nodes.
When the function is called, I want to center my graph around the selected node, until I added this portion of code before updating my edge
I believe this is working because every nodes has the same position and only transition so changing the position is the issue, but using translate also doesn't work
the Center$ subject worked as intended, but now it does not anymore, and I believe this has to do with how is the calculation made after these changes
What I have tried
moving +transformX/+transformY around my calcul hasn't changed anything
Expected behavior
I want to my center function to center the whole graph while keeping the intended code above that works
Screenshots
graph not being centered, offset is wrong, but deploying/hidding then centering on clicked node is working
ngx-graph version
"^7.2.0"
The text was updated successfully, but these errors were encountered: