How to change shape border line from solid line to dotted line

how to change shape border line from solid line to dotted line.

Hey,

AFAIK, there’s no easy way to do that without forking the repository and changing some code. However if you check this example and this example out, it’s possible to create custom elements. So you might wanna go to that direction.

Do you mind explaining what project and what borders you’re talking about?

Do you mind explaining what project and what borders you’re talking about?

I wang to change the shape border style dynamicly with javascript code after the shape have been rendered, how do I should to do?
I want the effect in the picture 2, not picture 1. Can you help me? Thank you very much!!
Picture 1:
border

Picture 2
dot

You’ll need a custom renderer for this: https://github.com/bpmn-io/bpmn-js-example-custom-rendering