fix(graph.ts): overlapping area calculation

This commit is contained in:
moklick
2019-10-23 13:49:41 +02:00
parent 66711f19fa
commit c76483a264
2 changed files with 13 additions and 2 deletions
+8
View File
@@ -200,6 +200,14 @@ const storeModel: StoreModel = {
selection,
state.transform
);
if (!selectedNodes.length) {
state.nodesSelectionActive = false;
state.selectedElements = [];
return;
}
const selectedNodesBbox = getRectOfNodes(selectedNodes);
state.selection = selection;