refactor(types)!: Change ConnectionLineComponentProps to ConnectionLineProps
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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'
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ export interface Connection {
|
||||
targetHandle: ElementId | null
|
||||
}
|
||||
|
||||
export type ConnectionLineComponentProps = {
|
||||
export type ConnectionLineProps = {
|
||||
sourceX: number
|
||||
sourceY: number
|
||||
sourcePosition?: Position
|
||||
|
||||
Reference in New Issue
Block a user