chore(core): remove unnecessary import paths
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user