I am using the Windows standalone application. For me it would be convenient if it would possible to set automatic coloring of the BPMN elements. So, for instance: green for start, red for end, intermediate orange and blue for activities etc.
This would be the code of your bpmn-js plugin in this example project which you can use as a starting point. If there’s anything unclear don’t hesitate to ask.
index.js:75616 Uncaught Error: illegal invocation in or phase (action: element.setColor)
index.js:77300 Error: illegal invocation in or phase (action: element.setColor)
at CommandStack._pushAction (index.js:75616)
at CommandStack.execute (index.js:75329)
at Modeling.setColor (index.js:27364)
at client-bundle.js:13
at invokeFunction (index.js:77386)
at EventBus._invokeListener (index.js:77285)
at EventBus._invokeListeners (index.js:77273)
at EventBus.fire (index.js:77233)
at Canvas._addElement (index.js:107879)
at Canvas.addShape (index.js:107894)
At first the element is colored red but when I remove it and put a new start-element I get these errors. Should I, when removing the element, also unset it?