I have the functionality to align the selected node along the x or y-axis.
I am utilizing diagram.selected.toArray() to obtain a list of the selected nodes and set their x and y positions. After that, I am setting the state property and then rendering the diagram.It is calling the diagramModelChnaged event and throw the below exception.
it is thrown by DataSyncService.syncNodeData service.
I am not introducing any cyclic dependencies. I am only updating the location property of the state object.
I would think you’d only want to call produce once with all the updated node data state. Are you saying there’s no error now but the diagram isn’t updating? Does your node template include a location binding?
I am setting the state, which fires the diagramModelChange event and updates the state, but the diagram does not refresh. If I save the diagram and then re-render it, the changes will be visible.
Is there any issue with the GoJs level that is preventing transaction committed, or am I missing something?