Hi Walter and friends, I have two problems that I would like to get your help with.
I moved my project to work with gojs-angular instead gojs library, and I have a problem with the undo manager that wasn’t there before.
In the initDiagram function, I configured the diagram with ‘undoManager.isEnabled’ to be true.
Then I made Context-menu with buttons of ‘undo’ and ‘redo’, but nothing happened when I click it after making a few changes at the diagram. (no errors also).
another thing, before the moving to gojs-angular library, I was saved the diagram at my db in that way:
data = JSON.parse(myDiagram.model.toJson());
but now, I am getting error of ‘maximum call stack size exceeded’.
what is the way to extract to necessary data from the diagram obj for saving at db?