chore: move BaseEdgeProps to types
This commit is contained in:
@@ -1,20 +1,6 @@
|
|||||||
import type { CSSProperties, FunctionalComponent } from 'vue'
|
import type { FunctionalComponent } from 'vue'
|
||||||
import EdgeText from './EdgeText.vue'
|
import EdgeText from './EdgeText.vue'
|
||||||
|
import type { BaseEdgeProps } from '~/types'
|
||||||
export interface BaseEdgeProps {
|
|
||||||
centerX: number
|
|
||||||
centerY: number
|
|
||||||
path: string
|
|
||||||
label?: any
|
|
||||||
style?: CSSProperties
|
|
||||||
labelStyle?: any
|
|
||||||
labelShowBg?: boolean
|
|
||||||
labelBgStyle?: any
|
|
||||||
labelBgPadding?: [number, number]
|
|
||||||
labelBgBorderRadius?: number
|
|
||||||
markerStart?: string
|
|
||||||
markerEnd?: string
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The base edge is a simple wrapper for svg path
|
* The base edge is a simple wrapper for svg path
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
export { default as BaseEdge, BaseEdgeProps } from './BaseEdge'
|
export { default as BaseEdge } from './BaseEdge'
|
||||||
export { default as BezierEdge } from './BezierEdge'
|
export { default as BezierEdge } from './BezierEdge'
|
||||||
export { default as SimpleBezierEdge } from './SimpleBezierEdge'
|
export { default as SimpleBezierEdge } from './SimpleBezierEdge'
|
||||||
export { default as StepEdge } from './StepEdge'
|
export { default as StepEdge } from './StepEdge'
|
||||||
|
|||||||
@@ -2,16 +2,7 @@ export { default as VueFlow } from './container/VueFlow/VueFlow.vue'
|
|||||||
|
|
||||||
export { default as Handle } from './components/Handle/Handle.vue'
|
export { default as Handle } from './components/Handle/Handle.vue'
|
||||||
|
|
||||||
export {
|
export { StraightEdge, StepEdge, BezierEdge, SimpleBezierEdge, SmoothStepEdge, BaseEdge, EdgeText } from './components/Edges'
|
||||||
StraightEdge,
|
|
||||||
StepEdge,
|
|
||||||
BezierEdge,
|
|
||||||
SimpleBezierEdge,
|
|
||||||
SmoothStepEdge,
|
|
||||||
BaseEdge,
|
|
||||||
BaseEdgeProps,
|
|
||||||
EdgeText,
|
|
||||||
} from './components/Edges'
|
|
||||||
|
|
||||||
export {
|
export {
|
||||||
getBezierPath,
|
getBezierPath,
|
||||||
|
|||||||
@@ -166,3 +166,18 @@ export interface SmoothStepEdgeProps<Data = ElementData> extends EdgeProps<Data>
|
|||||||
markerEnd?: string
|
markerEnd?: string
|
||||||
borderRadius?: number
|
borderRadius?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface BaseEdgeProps {
|
||||||
|
centerX: number
|
||||||
|
centerY: number
|
||||||
|
path: string
|
||||||
|
label?: any
|
||||||
|
style?: CSSProperties
|
||||||
|
labelStyle?: any
|
||||||
|
labelShowBg?: boolean
|
||||||
|
labelBgStyle?: any
|
||||||
|
labelBgPadding?: [number, number]
|
||||||
|
labelBgBorderRadius?: number
|
||||||
|
markerStart?: string
|
||||||
|
markerEnd?: string
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user