chore(core): remove unnecessary import paths

This commit is contained in:
braks
2022-11-06 19:20:39 +01:00
committed by Braks
parent f9af2d36fd
commit 650e7527ae
20 changed files with 13 additions and 39 deletions
@@ -1,5 +1,4 @@
import type { FunctionalComponent } from 'vue'
import { getBezierPath } from './utils'
import BaseEdge from './BaseEdge'
import { Position } from '~/types'
import type { EdgeProps } from '~/types'
@@ -1,9 +1,7 @@
<script lang="ts" setup>
import { useVueFlow } from '../../composables'
const { viewportRef } = useVueFlow()
const teleportTarget = $computed(() => viewportRef.value?.getElementsByClassName('vue-flow__edge-labels')[0])
const teleportTarget = computed(() => viewportRef.value?.getElementsByClassName('vue-flow__edge-labels')[0])
</script>
<script lang="ts">
@@ -1,5 +1,4 @@
import type { FunctionalComponent } from 'vue'
import { getSimpleBezierPath } from './utils'
import BaseEdge from './BaseEdge'
import { Position } from '~/types'
import type { EdgeProps } from '~/types'
@@ -1,5 +1,4 @@
import type { FunctionalComponent } from 'vue'
import { getSmoothStepPath } from './utils'
import BaseEdge from './BaseEdge'
import type { SmoothStepEdgeProps } from '~/types'
import { Position } from '~/types'
@@ -1,6 +1,5 @@
import type { FunctionalComponent } from 'vue'
import BaseEdge from './BaseEdge'
import { getStraightPath } from './utils'
import type { EdgeProps } from '~/types'
const StraightEdge: FunctionalComponent<EdgeProps> = function ({
@@ -1,9 +1,6 @@
import EdgeAnchor from './EdgeAnchor'
import type { Connection, EdgeComponent, EdgeUpdatable, GraphEdge, GraphNode, HandleType } from '~/types'
import { ConnectionMode, Position } from '~/types'
import { connectionExists, getEdgePositions, getHandle, getMarkerId } from '~/utils'
import { EdgeId, EdgeRef } from '~/context'
import { useEdgeHooks, useHandle, useVueFlow } from '~/composables'
interface Props {
id: string