first working version with using $state for nodes & edges
This commit is contained in:
@@ -28,9 +28,9 @@ export default function drag(domNode: Element, params: UseDragParams) {
|
||||
const { snapGrid, viewport } = store;
|
||||
|
||||
return {
|
||||
nodes: get(store.nodes),
|
||||
nodes: store.nodes,
|
||||
nodeLookup: store.nodeLookup,
|
||||
edges: get(store.edges),
|
||||
edges: store.edges,
|
||||
nodeExtent: store.nodeExtent,
|
||||
snapGrid: snapGrid ? snapGrid : [0, 0],
|
||||
snapToGrid: !!snapGrid,
|
||||
|
||||
Reference in New Issue
Block a user