diff --git a/client/src/pages/CustomMarkers.tsx b/client/src/pages/CustomMarkers.tsx index 82a58fb..21f750c 100644 --- a/client/src/pages/CustomMarkers.tsx +++ b/client/src/pages/CustomMarkers.tsx @@ -2,21 +2,20 @@ import React from 'react'; const CustomMarkers = () => ( - - + {/* Empty Arrow Marker */} - + {/* Diamond Marker */} @@ -24,7 +23,7 @@ const CustomMarkers = () => ( id="diamond" markerWidth="12" markerHeight="12" - refX="10" + refX="0" // Position at the start refY="6" orient="auto" markerUnits="strokeWidth" @@ -37,12 +36,12 @@ const CustomMarkers = () => ( id="filledArrow" markerWidth="10" markerHeight="10" - refX="9" + refX="0" // Position at the start refY="3" orient="auto" markerUnits="strokeWidth" > - + diff --git a/client/src/pages/Editor.tsx b/client/src/pages/Editor.tsx index b9cb692..7fb76e5 100644 --- a/client/src/pages/Editor.tsx +++ b/client/src/pages/Editor.tsx @@ -500,8 +500,10 @@ const UMLDiagramEditor = ({ problemId }) => { edge.data?.edgeType === "Implementation" ? "5, 5" : "0", strokeDashoffset: 100, }, - markerEnd: markerId, // Use markerId here + markerStart: markerId, // Use markerId for the start (source) + markerEnd: undefined, // Use markerId here }; + })} onNodesChange={onNodesChange} onEdgesChange={onEdgesChange}