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
@@ -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 -1
View File
@@ -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'
+1 -1
View File
@@ -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