sprotty icon indicating copy to clipboard operation
sprotty copied to clipboard

Additional bend point added when setting model second time

Open glatuske opened this issue 1 year ago • 2 comments

When setting the same model twice, the second time all edges get an additional bendpoint (actually the 0,0 of the block the source port is attached to).

2024-04-29_15h26_26

glatuske avatar Apr 29 '24 13:04 glatuske

@gfontorbe @spoenemann

I have checked the backend code. Sprotty diagram server sends for the models the RequestBoundsAction

grafik

On the client side that leads to SetModelCommand for the first and UpdateModelCommand for the second.

grafik

I hope that helps you to replicate it.

glatuske avatar May 03 '24 09:05 glatuske

For the moment I have fixed it by generating unique IDs across graphs/diagrams.

glatuske avatar May 06 '24 08:05 glatuske