refactor(pathfinding-edge): add explicit imports and remove auto-imports
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
@@ -1,6 +1,5 @@
|
|||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import type { Position } from '@vue-flow/core'
|
import { BezierEdge, EdgeText, Position, getSimpleBezierPath, useVueFlow } from '@vue-flow/core'
|
||||||
import { BezierEdge, EdgeText, getSimpleBezierPath, useVueFlow } from '@vue-flow/core'
|
|
||||||
import { computed, useAttrs } from 'vue'
|
import { computed, useAttrs } from 'vue'
|
||||||
import type { PathFindingEdgeProps } from '../types'
|
import type { PathFindingEdgeProps } from '../types'
|
||||||
import { createGrid, gridRatio } from './createGrid'
|
import { createGrid, gridRatio } from './createGrid'
|
||||||
@@ -11,8 +10,8 @@ import { gridToGraphPoint } from './pointConversion'
|
|||||||
|
|
||||||
const props = withDefaults(defineProps<PathFindingEdgeProps>(), {
|
const props = withDefaults(defineProps<PathFindingEdgeProps>(), {
|
||||||
selected: false,
|
selected: false,
|
||||||
sourcePosition: 'bottom' as Position,
|
sourcePosition: Position.Bottom,
|
||||||
targetPosition: 'top' as Position,
|
targetPosition: Position.Top,
|
||||||
labelStyle: () => ({}),
|
labelStyle: () => ({}),
|
||||||
labelShowBg: true,
|
labelShowBg: true,
|
||||||
labelBgStyle: () => ({}),
|
labelBgStyle: () => ({}),
|
||||||
@@ -100,7 +99,7 @@ export default {
|
|||||||
v-if="label"
|
v-if="label"
|
||||||
:x="centered[1]"
|
:x="centered[1]"
|
||||||
:y="centered[2]"
|
:y="centered[2]"
|
||||||
:label="label"
|
:label="label as any"
|
||||||
:label-style="labelStyle"
|
:label-style="labelStyle"
|
||||||
:label-show-bg="labelShowBg"
|
:label-show-bg="labelShowBg"
|
||||||
:label-bg-style="labelBgStyle"
|
:label-bg-style="labelBgStyle"
|
||||||
|
|||||||
Reference in New Issue
Block a user