Miro Spönemann

Results 308 comments of Miro Spönemann

You need to tell the diagram server proxy in the client that it should handle actions of your custom type so it forwards them to the server. You can do...

https://github.com/kieler/elk-live/blob/master/client/src/json/elkgraph-to-sprotty.ts

Maybe something like this (not tested!): ```typescript const myGraph = ... // create elkjs graph const container = ... // create Inversify container, see examples (*) const transformer = new...

See also https://github.com/theia-ide/sprotty/issues/182

This would require to change the model so all routing points of incident edges are cleared. I would not do that in the base code since it might be unexpected...

The actual rendering of SVG elements happens asynchronously. I'm not sure, but you could try ``` return modelSource.setModel(sGraph); ``` and change the `finally` block to another chained `then`.

Ok so the following DOM updates are not captured by the promise returned by `setModel`. We could consider adding a listener mechanism to the [Viewer](https://github.com/eclipse/sprotty/blob/master/src/base/views/viewer.tsx) component. In the meantime, you...

The scenario you are aiming for is very complex. When a text change is processed, a brand new instance of the diagram model is generated, erasing any manual changes the...

No, unfortunately I don't have a ready-to-use example for this scenario. To capture position changes, you could override `DiagramServerProxy.commitModel` so it sends the model to the backend with a custom...