feat: export base edge

This commit is contained in:
Braks
2022-05-04 21:14:55 +02:00
parent 8e91e4a8e5
commit be2a37246a
3 changed files with 6 additions and 1 deletions

View File

@@ -16,6 +16,10 @@ interface Props {
markerEnd?: string
}
/**
* The base edge is a simple wrapper for svg path
* You can use the base edge in your custom edges and just pass down the necessary props
*/
const BaseEdge: FunctionalComponent<Props> = function ({
path,
centerX,

View File

@@ -1,3 +1,4 @@
export { default as BaseEdge } from './BaseEdge'
export { default as BezierEdge } from './BezierEdge'
export { default as SimpleBezierEdge } from './SimpleBezierEdge'
export { default as StepEdge } from './StepEdge'

View File

@@ -2,7 +2,7 @@ export { default as VueFlow } from './container/VueFlow/VueFlow.vue'
export { default as Handle } from './components/Handle/Handle.vue'
export { StraightEdge, StepEdge, BezierEdge, SimpleBezierEdge, SmoothStepEdge, EdgeText } from './components/Edges'
export { StraightEdge, StepEdge, BezierEdge, SimpleBezierEdge, SmoothStepEdge, BaseEdge, EdgeText } from './components/Edges'
export {
getBezierPath,