Resolve "Limiting number of edges per handle and color indication"
Compare changes
import { MarkerType, Position, connectionExists, getSimpleBezierPath, useVueFlow } from '@vue-flow/core';
@@ -29,125 +29,8 @@ const props = defineProps({
@@ -29,125 +29,8 @@ const props = defineProps({
const { getNodes, connectionStartHandle, onConnectEnd, addEdges, edges } = useVueFlow( { id: 'main' });
// const path = computed(() => getBezierPath({sourceX: props.sourceX, sourceY: props.sourceY, sourcePosition: props.sourcePosition as Position, targetX: props.targetX, targetY: props.targetY, targetPosition: props.targetPosition as Position, curvature: 0.5}));
const path = computed(() => getSimpleBezierPath({sourceX: props.sourceX, sourceY: props.sourceY, sourcePosition: props.sourcePosition as Position, targetX: props.targetX, targetY: props.targetY, targetPosition: props.targetPosition as Position}));
// document.querySelector('.vue-flow__handle-' + closest.startHandle.handleId)?.classList.add('connected');
@@ -162,8 +45,8 @@ const strokeColor = computed(() => {
@@ -162,8 +45,8 @@ const strokeColor = computed(() => {