I am studying the diagram-js Editor example. My goal is to create a diagram editor for a workflow tool that is not in any way related to BPMN. Where I am currently getting stuck is to understand how the diagram relates to any potential underlying models.
Imagine I have rectangle A with a connection to rectangle B which has a connection to rectangle C. How would I be able to obtain that information? If I wanted to implement a “save” button … where should I start to look to obtain the count and identities of the rectangles and which ones connect to others?
I’ve looked at the examples but there is so much code within that I am missing the wood for the trees. I feel that if I could get my mind around the “architecture” of diagram-js it would make sense,