Skip to content

Is it possible to disable the animation feature in GLSP for specific elements? #931

Answered by tortmayr
rsoika asked this question in General
Discussion options

You must be logged in to vote

HI @rsoika,
selective animation is a bit tricky.
First of all in GLSP/sprotty animations are not directly coupled with a model element. Instead they are tied to specific operation/command.

Each server operation results in an [UpdateModelAction](https://github.com/eclipse-glsp/glsp/blob/master/PROTOCOL.md#243-updatemodelaction. This action has a flag to indicate whether the update should be animated or not. Currently this animation flag is controlled globally via the DiagramConfiguration and the corresponding actions are dispatched by the ModelSubmissionHandler.

I admit that this is not ideal and I have created #938 to track this.
In the meantime you would have to customize the ModelSubmis…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by rsoika
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants