import { getBezierPath, getMarkerEnd } from '../../src'; import { computed, defineComponent } from 'vue'; import { DefaultEdgeProps } from '../../src/components/Edges/utils'; const CustomEdge = defineComponent({ props: { ...DefaultEdgeProps }, setup(props) { const edgePath = computed(() => getBezierPath({ sourceX: props.sourceX, sourceY: props.sourceY, sourcePosition: props.sourcePosition, targetX: props.targetX, targetY: props.targetY, targetPosition: props.targetPosition }) ); const markerEnd = computed(() => getMarkerEnd(props.arrowHeadType, props.markerEndId)); return () => ( <> {props.data.text} ); } }); export default CustomEdge;