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
+4 -4
View File
@@ -1,9 +1,9 @@
<script lang="ts" setup>
import EdgeText from './EdgeText.vue'
import { getMarkerEnd, getBezierPath } from './utils'
import { ArrowHeadType, ElementId, Position } from '~/types'
import { ArrowHeadType, EdgeProps, ElementId, Position } from '~/types'
interface StraightEdgeProps {
interface StraightEdgeProps extends EdgeProps {
id: ElementId
source: ElementId
target: ElementId
@@ -13,8 +13,8 @@ interface StraightEdgeProps {
targetY: number
selected?: boolean
animated?: boolean
sourcePosition?: Position
targetPosition?: Position
sourcePosition: Position
targetPosition: Position
label?:
| string
| {