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>
|
<script lang="ts" setup>
|
||||||
import { ConnectionLineComponentProps } from '~/index'
|
import { ConnectionLineProps } from '~/index'
|
||||||
|
|
||||||
interface ConnectionLineProps extends ConnectionLineComponentProps {
|
interface CustomConnectionLineProps extends ConnectionLineProps {
|
||||||
sourceX: number
|
sourceX: number
|
||||||
sourceY: number
|
sourceY: number
|
||||||
targetX: number
|
targetX: number
|
||||||
targetY: number
|
targetY: number
|
||||||
}
|
}
|
||||||
const props = defineProps<ConnectionLineProps>()
|
const props = defineProps<CustomConnectionLineProps>()
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<g>
|
<g>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { CSSProperties } from 'vue'
|
import { CSSProperties } from 'vue'
|
||||||
import { BackgroundVariant, Dimensions, ElementId, FitViewParams, Position, XYPosition } from './flow'
|
import { BackgroundVariant, Dimensions, ElementId, FitViewParams, Position, XYPosition } from './flow'
|
||||||
import { Connection } from './connection'
|
import { Connection } from './connection'
|
||||||
import { Node } from '~/types/node'
|
import { Node } from './node'
|
||||||
|
|
||||||
export type HandleType = 'source' | 'target'
|
export type HandleType = 'source' | 'target'
|
||||||
|
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ export interface Connection {
|
|||||||
targetHandle: ElementId | null
|
targetHandle: ElementId | null
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ConnectionLineComponentProps = {
|
export type ConnectionLineProps = {
|
||||||
sourceX: number
|
sourceX: number
|
||||||
sourceY: number
|
sourceY: number
|
||||||
sourcePosition?: Position
|
sourcePosition?: Position
|
||||||
|
|||||||
Reference in New Issue
Block a user