Hi,
Are you facing some problems with mini-map visualization with collapsed objects that contain other objects? It looks like a mini-map that shows everything without hiding inner objects.
Only inner objects on the main diagram are hidden but still visible on the map.
I’m using diagram-js (not bpmn-js).
Hi Maciej,
Thanks for the feedback.
I was able to reproduce the issue on codesandbox.
My origin project has more customized stuff (like renderer, which I was thinking might be guilty here), but even without these custom modules, I was able to reproduce it here.
Apart from these custom modules etc. this is how I manage to collapse objects: commandStack.execute(“shape.toggleCollapse”, { shape, hints: {} }).
Maybe this is the problem? I don’t know, but it was the only possible way I could find.
Regards
@catcher Sorry for late response; this slipped our attention.
As you use shape.toggleCollapse which indicates the collapsed state via shape.collapsed=true|false the integration should just work. If it does not, then we have a bug.
Unfortunately I cannot open the sandbox right now due to some 500 error. Will try again tomorrow.