Hi, is it possible to recreate a diagram from the transaction logs?
That depends on what is in the logs.
Look at Model.toIncrementalJson and Model.applyIncrementalJson.
so to make such a log I would need to listen to Model.CommittedTransaction and save the result of toIncrementalJson?
It’s normal to check for e.isTransactionFinished
in the model Changed listener, because that will include undo and redo actions. But perhaps for your scenario just checking for e.change === go.ChangedEvent.Transaction && e.propertyName === "CommittedTransaction"
might suffice. See ChangedEvent | GoJS API.
For example: State Chart With Incremental Saves.