fix(nodes): dont select nodes when selectable=false closes
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
+1
-1
@@ -242,7 +242,7 @@ export const getNodesInside = (nodes: GraphNode[], rect: Rect, [tx, ty, tScale]:
|
||||
})
|
||||
|
||||
return nodes.filter((node) => {
|
||||
if (!node.__vf) return false
|
||||
if (!node.__vf || !node.selectable) return false
|
||||
const { position = { x: 0, y: 0 }, width = 0, height = 0, isDragging = false } = node.__vf
|
||||
const nBox = rectToBox({ ...position, width, height } as any)
|
||||
const xOverlap = Math.max(0, Math.min(rBox.x2, nBox.x2) - Math.max(rBox.x, nBox.x))
|
||||
|
||||
Reference in New Issue
Block a user