Commit 708085c4 authored by Marco Cavalli's avatar Marco Cavalli
Browse files

fix: adjust arrow marker reference and line drawing calculations for improved rendering

parent a144eac1
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -1188,7 +1188,7 @@
          const marker = svgElement("marker", {
            id: `arrow-${mode.id}`,
            viewBox: "0 0 10 10",
            refX: "9",
            refX: "10",
            refY: "5",
            markerWidth: "8",
            markerHeight: "8",
@@ -1391,8 +1391,8 @@
        const uy = dy / length;
        const nx = -uy;
        const ny = ux;
        const start = { x: source.x + ux * 52, y: source.y + uy * 52 };
        const end = { x: target.x - ux * 58, y: target.y - uy * 58 };
        const start = { x: source.x + ux * 48, y: source.y + uy * 48 };
        const end = { x: target.x - ux * 48, y: target.y - uy * 48 };
        const control = {
          x: (start.x + end.x) / 2 + nx * offset,
          y: (start.y + end.y) / 2 + ny * offset,