update(types!): Merge EdgeProps into Edge type

Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
Braks
2021-11-16 17:45:01 +01:00
parent 525a1880b6
commit 413c7ac688
8 changed files with 36 additions and 56 deletions
+2 -12
View File
@@ -1,17 +1,7 @@
<script lang="ts" setup>
import {
useHooks,
useStore,
getEdgeCenter,
getBezierPath,
getMarkerEnd,
ArrowHeadType,
EdgeProps,
ElementId,
Position,
} from '~/index'
import { useHooks, useStore, getEdgeCenter, getBezierPath, getMarkerEnd, ArrowHeadType, Edge, ElementId, Position } from '~/index'
interface CustomEdgeProps<T = any> extends EdgeProps<T> {
interface CustomEdgeProps<T = any> extends Edge<T> {
id: ElementId
sourceX: number
sourceY: number