update(types!): Merge EdgeProps into Edge type
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
@@ -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
|
||||
| {
|
||||
|
||||
Reference in New Issue
Block a user