Closed DCUndairstand closed 1 year ago
Hi, it's not that simple.
The state of that movement is not bound to that chartContainer element.
In your place, I'd check how the zoom in is implemented
And would try to find a solution which involves translateBy
instead of scaleBy
which is used in zoom in
Hello, Here's my problem, when I click on an entity the modal with metadata is displayed at the right of the window with a slide left animation, when it is open I use a state [previousTransform, setPreviousTransform] that keeps the position of the orgchart before the modal is opened. Then I call the setCentered method to center on the clicked entity. When I closed the modal, I modify the position of the flowchart using the previousTransform data. It works but when I want to move on the orgchart, the position of the orgchart is set back to the last known position when the modal was open instead of moving from the last assigned position, why ?
Here's my code : `
`
Thank you in advance !