feat(store, flow)!: Add useNode/useEdge-state helpers

* for two way binding use the helpers
This commit is contained in:
Braks
2021-12-20 19:29:52 +01:00
parent 81c8145f3a
commit c80ab8fe50
5 changed files with 21 additions and 11 deletions
+1 -2
View File
@@ -8,9 +8,8 @@ import {
Node,
NodeChange,
NodeDimensionChange,
XYPosition,
} from '~/types'
import { clampPosition, isEdge, isGraphEdge, isGraphNode, isNode, isParentSelected, parseEdge, parseNode } from '~/utils'
import { isEdge, isGraphEdge, isGraphNode, isNode, isParentSelected, parseEdge, parseNode } from '~/utils'
import { createPositionChange, createSelectionChange, getSelectionChanges } from '~/composables/useVueFlow'
const getParent = (root: Node[], id: string): GraphNode | undefined => {