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