页面中,如何通过外部按钮,来控制gojs自动布局的开启或者关闭呢?
点击按钮开启自动布局,再次点击关闭自动布局。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
You can set Layout.isOngoing to false to prevent the standard layout invalidations which cause automatic layouts. During this time, you can still force a layout by calling Diagram.layoutDiagram(true).
Read more about layout invalidation at GoJS Layouts -- Northwoods Software.