Hey Walter, I want to trigger “ObjectDoubleClicked” diagram event whenever addNodeData is called, is it possible ?
If you want the event only when you call Model.addNodeData, you could avoid the event and just call the desired code.
If you want the event whenever any code adds a node data object to the model, you can implement a Model Changed listener that looks for a ChangedEvent that has ChangedEvent.change === go.ChangeType.Insert
and ChangedEvent.modelChange === “nodeDataArray”. Then you can call the code that you want.
There is an undocumented Diagram.raiseDiagramEvent method, listed in the go.d.ts
file. However I don’t know if that is sufficient for what you want to do.