projectstorm / react-diagrams

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

Default Deserialization #833

Closed thn80 closed 3 years ago

thn80 commented 3 years ago

Currently I added an own NodeModel and serializing works as expected. However, when trying to deserialize the JSON again, loading of the website crashes and the site is only displayed compeltely white.

In OwnNodeModel I added the deserialize method in which super.deserialize(event); is called. However, this line seems to crash. When I look into the parent (NodeModel) I only find a line: deserialize(event: DeserializeEvent<this>): void;

Even if I go down to further parents, I only find this "method prototype". Is there no real deserialize implementation? What is the correct way to handle this?

thn80 commented 3 years ago

Solved