refactor(core): move edge prop types

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
braks
2022-12-29 09:32:27 +01:00
committed by Braks
parent b4c5dc5d2f
commit 37f4985c2f
8 changed files with 30 additions and 35 deletions
@@ -1,8 +1,6 @@
import type { FunctionalComponent } from 'vue'
import BaseEdge from './BaseEdge'
import type { BaseEdgeProps, EdgePositions } from '~/types'
export type StraightEdgeProps = EdgePositions & Omit<BaseEdgeProps, 'labelX' | 'labelY' | 'path'>
import type { StraightEdgeProps } from '~/types'
const StraightEdge: FunctionalComponent<StraightEdgeProps> = function (props, { attrs }) {
const [path, labelX, labelY] = getStraightPath(props)