chore: add vueuse/core to deps
feat: Implement onKeystrok of vueuse * Implement useEventlistener fix: node selection not properly selecting underlying nodes
This commit is contained in:
@@ -189,15 +189,8 @@ export default function configureStore(
|
||||
const selectedEdges = getConnectedEdges(selectedNodes, this.edges);
|
||||
|
||||
const nextSelectedElements = [...selectedNodes, ...selectedEdges];
|
||||
const selectedElementsChanged = !isEqual(nextSelectedElements, this.selectedElements);
|
||||
const selectedElementsUpdate = selectedElementsChanged
|
||||
? nextSelectedElements.length > 0
|
||||
? nextSelectedElements
|
||||
: []
|
||||
: [];
|
||||
|
||||
this.userSelectionRect = nextUserSelectRect;
|
||||
this.selectedElements = selectedElementsUpdate;
|
||||
this.selectedElements = nextSelectedElements;
|
||||
},
|
||||
unsetUserSelection() {
|
||||
const selectedNodes = this.selectedElements?.filter((node) => isNode(node) && node.__rf) as Node[];
|
||||
|
||||
Reference in New Issue
Block a user