Hi Community Folks!
I had some troubles with my Spectrum Color Picker Plugin under the new Camunda Modeler. Thanks to the existing ColorPicker example (GitHub - camunda/camunda-modeler-plugin-example: Plugin example for the Camunda Modeler. Use this as a starting point for creating your own plugins.) my plugin is now Modeler 5.0.0 ready.
If you are interested:
Maybe it is also useful for someone else
I love a good color plugin! Thanks!
Do you store the colour in the XML to align with the standard?
The plugin uses the built-in method “element.setColor()”. It therefore uses the Modeler functionality.
The XML would look like this, for example:
… <bpmndi:BPMNShape id="…" bpmnElement=“Activity_1f1oeka…” bioc:stroke="#0028ff" bioc:fill="#b8c3ff" color:background-color="#b8c3ff" color:border-color="#0028ff"> …