chore(core): cleanup drag handler

This commit is contained in:
braks
2022-11-17 17:55:20 +01:00
committed by Braks
parent 0876a189eb
commit 4a1cc24bd8
3 changed files with 37 additions and 38 deletions
+2 -1
View File
@@ -1,4 +1,4 @@
import { connectionExists, getEdgeId, isEdge, isGraphEdge, parseEdge, parseNode } from './graph'
import { clampPosition, connectionExists, getEdgeId, isEdge, isGraphEdge, parseEdge, parseNode } from './graph'
import { warn } from './log'
import type { Connection, CoordinateExtent, Edge, Getters, GraphEdge, GraphNode, Node } from '~/types'
@@ -66,6 +66,7 @@ export const createGraphNodes = (
parentNode: node.parentNode,
}),
)
if (node.parentNode) {
parentNodes[node.parentNode] = true
}