I want animation like this video when arrange nodes, zoom in and zoom out.
For now, I made this functions:
// Align
onClickAlign() {
this.editDiagram.layout.doLayout(this.editDiagram);
}
// Zoom in
onClickZoomIn() {
this.editDiagram.commandHandler.increaseZoom(1.5);
}
// Zoom out
onClickZoomOut() {
this.editDiagram.commandHandler.decreaseZoom(2/3);
}
These are working without any animation.
How can I add animation like video?
Regards
I have another issue.
In the myDiagramDiv, when I zoom in and the content overflows, scroll bar appears. https://www.useloom.com/share/657c747dba304a82a60517cff193d13e
I want to hide the scroll bar. In the manychat, which I showed in the video shared in loom, scrollbar is invisible at all. https://www.useloom.com/share/34640e92b0c744dd89a96506d45b6c3d
I already set “myDiagramDiv.style.overflow = ‘hidden’” but scrollbar still appears.
In browser inspect mode, I found that there are 2 childs - canvas and div inside of myDiagramDiv.
When content overflows by zooming in, I found that size of canvas changes.
It changes only when content overflows.