-
When I add a new Element to my model (server side model) I usually reset the But then I lose the current zoom factor and clipping on the canvas. The canvas is instead totally reset. Is it possible to avoid this effect? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hi @rsoika, All actions that manipulate the viewport are dispatched via the I quickly played around with your editor and noticed that for some operations/updates the zoom factor does not reset
Creating nodes or editing the labels on the other hand causes a reset.. 😕 |
Beta Was this translation helpful? Give feedback.
-
No you don't have to react to these actions. They are handled by the framework and automatically reapplied onto the updated model on client side.
The way we typically do this is that we don't regenerate the entire Reasoning:
|
Beta Was this translation helpful? Give feedback.
No you don't have to react to these actions. They are handled by the framework and automatically reapplied onto the updated model on client side.
However, this approach can only work if you have stable/deterministic ids.
I guess the problem is the way that you "reset" your GModelState. You have to ensure that
GModelState.getRoot()
) is the same across model updatesrevision
of the model root is not reset on updateThe way we typically do this is that we don't regenerat…