Updating with new Layer models
mattgi opened this issue · 1 comments
I have to say that this is one of the cleanest APIs I have seen in a long time. TypeScript alone helps, but your adoption of it is first class - well done!
With that said, I am looking for an example of how to add a new model to a layer but cannot see how to retrieve the layer, or what to do once I have added a new model to the existing layer. (e.g. forceUpdate vs repaint, etc.).
Only really working from https://github.com/projectstorm/react-canvas/blob/master/demos/demo-standard/index.story.tsx though, so trying to make sense of things based on that.
Any guidance / further demos would be most appreciated.
(I realise I should expect to be flying blind based on the WIP flag, but as I'm starting on a new project this seemed like a more logical choice than react-diagrams).
Hi There
Thanks so much for your kind words :D Yeah unfortunately there is an incredible amount of work still to do on this :C and I myself have not had the time in the past 6 months even to get back onto this. Im hoping during the December holidays that i'll be able to invest a ton of time into it.
Until then I would not recommend using this project until it's gotten off the ground :| It is also more of a foundation for the rewrite that I started/want to continue with on react-diagrams. Theres also probably going to be a ton of changes to this architecture and API as I start to integrate the two together.
But seriously, thanks again for the kind words