Hello,
Here is my scenario;
i have defined a layout something like this;
public layout: LayoutModel = {
type: 'HierarchicalTree', orientation: 'LeftToRight',
horizontalAlignment: 'Center',
verticalSpacing: 325, margin: {left: 0, right: 0, top: 0, bottom: 0}
};
That is all well and good, until i try to save the state of the Diagram.
So i moved my nodes around, to the position/coordinate of my liking, then saved the diagram. When I try to load that saved state, the "layout" supersedes whatever saved state that diagram was on, and it will still implement that automatic "layout" model, not the coordinates of the saved state i wanted.
So i was thinking of a solution wherein, after the diagram was "created", if there is a saved state of that diagram, i will just remove or disable the "layout", and load that particular state I wanted. If there is no "saved state", then it will just adjust according to the "layout" model.
That is why my question was if i can "disable" (or toggle to enable/disable) the "layout" at runtime.
Thank you for your support.