refactor(core,nodes): remove snapGrid option from nodes - use global one instead
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
@@ -10,7 +10,6 @@ const { id, type, name, draggable, selectable, connectable, ...props } = defineP
|
||||
selectable: boolean
|
||||
connectable: HandleConnectable
|
||||
focusable: boolean
|
||||
snapGrid?: SnapGrid
|
||||
type: NodeComponent | Function | Object | false
|
||||
name: string
|
||||
node: GraphNode
|
||||
@@ -213,8 +212,6 @@ const onKeyDown = (event: KeyboardEvent) => {
|
||||
x: arrowKeyDiffs[event.key].x,
|
||||
y: arrowKeyDiffs[event.key].y,
|
||||
},
|
||||
!!props.snapGrid,
|
||||
props.snapGrid,
|
||||
event.shiftKey,
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user