fix(core,edges): pass focusable to edge wrapper

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
braks
2022-12-30 01:06:52 +01:00
committed by Braks
parent c1b1821ee6
commit 249250e7af
@@ -1,5 +1,5 @@
<script lang="ts" setup> <script lang="ts" setup>
import type { EffectScope, WatchStopHandle } from 'vue' import type { EffectScope } from 'vue'
import EdgeWrapper from '../../components/Edges/EdgeWrapper' import EdgeWrapper from '../../components/Edges/EdgeWrapper'
import ConnectionLine from '../../components/ConnectionLine/ConnectionLine.vue' import ConnectionLine from '../../components/ConnectionLine/ConnectionLine.vue'
import type { EdgeComponent, EdgeUpdatable, GraphEdge } from '../../types' import type { EdgeComponent, EdgeUpdatable, GraphEdge } from '../../types'
@@ -8,9 +8,6 @@ import MarkerDefinitions from './MarkerDefinitions.vue'
const slots = inject(Slots) const slots = inject(Slots)
const { const {
emits,
connectionMode,
edgeUpdaterRadius,
onPaneReady, onPaneReady,
connectionStartHandle, connectionStartHandle,
nodesConnectable, nodesConnectable,
@@ -19,12 +16,9 @@ const {
elementsSelectable, elementsSelectable,
getSelectedNodes, getSelectedNodes,
getSelectedEdges, getSelectedEdges,
nodesSelectionActive,
getNode, getNode,
getNodes,
getEdges, getEdges,
getEdgeTypes, getEdgeTypes,
addSelectedEdges,
noPanClassName, noPanClassName,
elevateEdgesOnSelect, elevateEdgesOnSelect,
} = $(useVueFlow()) } = $(useVueFlow())
@@ -141,6 +135,7 @@ export default {
:target-node="getNode(edge.target)" :target-node="getNode(edge.target)"
:selectable="selectable(edge.selectable)" :selectable="selectable(edge.selectable)"
:updatable="updatable(edge.updatable)" :updatable="updatable(edge.updatable)"
:focusable="focusable(edge.focusable)"
:class="getClass(edge)" :class="getClass(edge)"
/> />
</g> </g>