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,13 +1,8 @@
import type { FunctionalComponent } from 'vue'
import BaseEdge from './BaseEdge'
import type { BaseEdgeProps, EdgePositions, EdgeProps, SmoothStepPathOptions } from '~/types'
import type { SmoothStepEdgeProps } from '~/types'
import { Position } from '~/types'
export type SmoothStepEdgeProps = EdgePositions &
Omit<BaseEdgeProps, 'labelX' | 'labelY' | 'path'> &
Pick<EdgeProps, 'sourcePosition' | 'targetPosition'> &
SmoothStepPathOptions
const SmoothStepEdge: FunctionalComponent<SmoothStepEdgeProps> = function (
{ sourcePosition = Position.Bottom, targetPosition = Position.Top, ...props },
{ attrs },