feat: export base edge
This commit is contained in:
@@ -16,6 +16,10 @@ interface Props {
|
|||||||
markerEnd?: string
|
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 ({
|
const BaseEdge: FunctionalComponent<Props> = function ({
|
||||||
path,
|
path,
|
||||||
centerX,
|
centerX,
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
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,7 +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 { StraightEdge, StepEdge, BezierEdge, SimpleBezierEdge, SmoothStepEdge, EdgeText } from './components/Edges'
|
export { StraightEdge, StepEdge, BezierEdge, SimpleBezierEdge, SmoothStepEdge, BaseEdge, EdgeText } from './components/Edges'
|
||||||
|
|
||||||
export {
|
export {
|
||||||
getBezierPath,
|
getBezierPath,
|
||||||
|
|||||||
Reference in New Issue
Block a user