Hi, is there another way how to update element properties than by
? I am trying to change opacity to all not currently selected elements and it is very very slow if the diagram contains a lot of elements.
I’d avoid using commands for that kind of thing. CSS should do the trick.
Ok, and what if I need to change opacity also to the directly connected tasks and links to the selected one?
You can use
canvas.removeMarker for this:
That is exactly what I was looking for! Thank you sooo much!
However this also cause that I drag all of the tasks at once
Sorry 'bout that. My code accidentally mutated the selected elements.
This should work: https://codesandbox.io/s/bpmn-js-sandbox-k0zz8