Programmatically de-select

Selection is a diagram-js module used in bpmn-js: https://github.com/bpmn-io/diagram-js/blob/develop/lib/features/selection/Selection.js

I assume this should work in typescript:

import type Selection from 'diagram-js/lib/features/selection/Selection';

const selection = modeler.get('selection') as Selection;
selection.select([]);
2 Likes