Download as SVG with colored graph

Is it possible to download the diagram as SVG with added marker color.

Thanks in advance.

Could you please provide an example (code/sample project) on how you add marker?

using something like:

canvas = bpmnio.modeler.get('canvas');
canvas.addMarker( 'Task_056d9hp', 'red')

add wrote CSS for that.

.red:not(.djs-connection) .djs-visual > :nth-child(1) {
  fill: red !important; 


When exporting as SVG it ignores applied markers and takes fill from an actual attribute.
I have created an issue for this.

Feel free to contribute with a pull request to get this properly working ;).


We discussed this and decided to not implement that feature any time soon. See GitHub issue for a workaround.