I’m inspired by your project - it’s core diagram-js - and want to build a custom modeller (not concerning BPMN or other domain that you covered).
I’ve managed to implement very basic editor from your diagram-js example in my React application and it seems to work.
Next step for me is to dive deeper - create my own shapes, connections etc.
And I’m stuck here cause i found no docs on how to complete these very basic tasks or where to look for the answers (some code examples)
Links that I already investigated
There is a lot info here, but most of it concerns using bpmn-js, not core diagram-js and at the moment I have no idea where to start.
Actually I managed to implement basic examples like interactions, overlay etc., but it’s not enough to build even basic things.
I need to build some custom shape - rounded rectangle with a label inside it.
- Is there something that I can use for it out-of-the-box?
- Is there some library of shapes that I can use?
- Is there some fixed data model that I can pass to elementFactory.createShape() or smth like that to accomplish my task
- If the answer to previous questions is ‘NO’ than what is a roadmap for me to complete this task - i.e. define some model (where?) \ implement renderer(how?) \ register all this etc.