react-diagrams icon indicating copy to clipboard operation
react-diagrams copied to clipboard

Diagram from deserialization using wrong Link model?

Open rzfzr opened this issue 2 years ago • 4 comments

You can see that my diagram uses "MyRightAngleLinkModel", image After serialization/deserialization, the existing links are right but the new ones are default... image I can notice that my portmodel also defaults back, as mine can connect out to out, after deserialization I can't anylonger

I tried deregistering the default factory with no results.... (this.diagramEngine.getLinkFactories().deregisterFactory('default'))

image

rzfzr avatar Mar 16 '22 01:03 rzfzr

HI @rzfzr , did you found any solution for this?

ShrutiChandak19 avatar Mar 22 '22 16:03 ShrutiChandak19

I haven't yet

rzfzr avatar Mar 22 '22 16:03 rzfzr

@ShrutiChandak19 I tried figuring it out again and gave up... I bet it is something wrong with the deserialization process itself, not some options we can change. I won't have a save/load function in my app.

rzfzr avatar Mar 24 '22 11:03 rzfzr

@rzfzr yeah even I am thinking the same. There is some issue with deserialization process itself because after that only I'm getting issue.

ShrutiChandak19 avatar Mar 25 '22 10:03 ShrutiChandak19