chore: lint

This commit is contained in:
Braks
2022-05-27 23:36:01 +02:00
parent 9cdad4d9fc
commit fe6114c738
3 changed files with 36 additions and 39 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
<script lang="ts" setup>
import { Background, ConnectionMode, Controls, MiniMap, VueFlow, useVueFlow } from '@braks/vue-flow'
import { Background, ConnectionMode, Controls, MiniMap, VueFlow, useVueFlow } from '@braks/vue-flow/src/index'
const { onConnect, nodes, edges, addEdges, addNodes } = useVueFlow({
fitViewOnInit: true,
+2 -5
View File
@@ -14,9 +14,8 @@ import type {
import {
addEdgeToStore,
applyChanges,
createGraphNodes,
connectionExists,
createAdditionChange,
createGraphNodes,
createPositionChange,
createSelectionChange,
getDimensions,
@@ -230,9 +229,7 @@ export default (state: State, getters: ComputedGetters): Actions => {
if (missingTarget) console.warn(`[vueflow]: Couldn't create edge for target id: ${edge.target}; edge id: ${edge.id}`)
if (missingTarget || missingSource) return acc
acc.push(
createAdditionChange<GraphEdge>(shallowReactive(edge)),
)
acc.push(createAdditionChange<GraphEdge>(shallowReactive(edge)))
}
return acc
+2 -2
View File
@@ -2,6 +2,7 @@ import { clampPosition, isGraphEdge, isGraphNode } from './graph'
import type {
CoordinateExtent,
Edge,
EdgeAddChange,
EdgeChange,
EdgeSelectionChange,
ElementChange,
@@ -11,11 +12,10 @@ import type {
GraphEdge,
GraphNode,
Node,
NodeAddChange,
NodeChange,
NodePositionChange,
NodeSelectionChange,
NodeAddChange,
EdgeAddChange,
XYPosition,
} from '~/types'