refactor(types)!: Change ConnectionLineComponentProps to ConnectionLineProps

Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
Braks
2021-11-21 19:05:24 +01:00
parent 3e4433c175
commit b10207021f
3 changed files with 5 additions and 5 deletions

View File

@@ -1,13 +1,13 @@
<script lang="ts" setup>
import { ConnectionLineComponentProps } from '~/index'
import { ConnectionLineProps } from '~/index'
interface ConnectionLineProps extends ConnectionLineComponentProps {
interface CustomConnectionLineProps extends ConnectionLineProps {
sourceX: number
sourceY: number
targetX: number
targetY: number
}
const props = defineProps<ConnectionLineProps>()
const props = defineProps<CustomConnectionLineProps>()
</script>
<template>
<g>

View File

@@ -1,7 +1,7 @@
import { CSSProperties } from 'vue'
import { BackgroundVariant, Dimensions, ElementId, FitViewParams, Position, XYPosition } from './flow'
import { Connection } from './connection'
import { Node } from '~/types/node'
import { Node } from './node'
export type HandleType = 'source' | 'target'

View File

@@ -15,7 +15,7 @@ export interface Connection {
targetHandle: ElementId | null
}
export type ConnectionLineComponentProps = {
export type ConnectionLineProps = {
sourceX: number
sourceY: number
sourcePosition?: Position