projectstorm / react-diagrams

a super simple, no-nonsense diagramming library written in react that just works
https://projectstorm.cloud/react-diagrams
MIT License
8.46k stars 1.16k forks source link

Diagram from deserialization using wrong Link model? #925

Open rzfzr opened 2 years ago

rzfzr commented 2 years ago

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

ShrutiChandak19 commented 2 years ago

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

rzfzr commented 2 years ago

I haven't yet

rzfzr commented 2 years ago

@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.

ShrutiChandak19 commented 2 years ago

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