Open umarashfaq opened 7 years ago
Have you fixed it?
No.
This is a fundamental change that impacts everything in the library. This problem, combined with some other core problems (un-intuitive API for average React developers being the top reason), motivated me to re-think the library and create it from ground up:
https://github.com/emumba-com/drawit
If you like, checkout the code and see the demo. There are some additional goodies there like connector points snapping to ports, but it's still a prototype, and requires some finishing before being production ready. This is the project towards which I'll be focusing my future efforts.
instanceFactories are cached/referenced in DiagramEngine by class/constructor names provided by BaseModel. Model class/constructor names are changed by build/compression tools like Webpack/uglify. Because of that, instance factory keys are prone to mismatching. Hence the framework breaks when run from a compressed script file.