I have 2 custom styling questions, hope you can help me with
Is there an easy way to set different color for text?
When I set defaultStrokeColor in bpmnRenderer it affects strokes, connections, text etc.
textRenderer.color has no effect.
Is the only option to use custom renderer for this?
Is there an easy way to hide ‘+’ sign on subProcess?
Is the only option to use custom renderer for this?
Thanks for the reply Nico.
I am working on implementing custom renderer as you suggest.
One of the issues I am facing is with elements names.
I need to implement custom look of an element and to display the name.
Seems like I need to re implement a lot of logic, which is supported in BpmnRenderer.
To avoid this I am trying an approach to override BpmnRenderer handlers.
Something like:
Made it work. The issue was with this syntax :this[‘handlers’][‘bpmn:Activity’];
Defined member CustomRender::handlers and overrided it this way : this.handlers[‘SubProcessMarker’] = () => {};
Currently I am trying to custom color of ‘plus’ inside ExclusiveGateway.
It is taking defaultStrokeColor :
Generally speaking, extensions should be safe to do, as long as you accompany them with a respective test case. Writing tests is a fairly simple task, too.