Intro: This is about ‘fat’ models and delays in re-draws after the model is changed.
Question: Is there a way to trigger a function to be called ONLY after completion of a change to the model is reflected in the diagram. Put another way, I’m checking the position of a node immediately after adding to the model but it seems that my code runs before the new node has ‘landed’ on the diagram in its final location.
I know I can use a listener for the diagram event ‘LayoutCompleted’, but this is non-specific - how will I know it is running for a specific model change ?
Alternatively, is there a way to stop the diagram updating untlil specifically requested ? So I can freeze the redraws, add new nodes to the model then call for the layout update knowing that the next ‘LayoutCompleted’ covers all of my changes ?
Just FYI, animation libraries provide features that allow the programmer to set a callback when a long-running process is completed. It feels like that is what is needed here.