Apply suggestions from code review

Co-authored-by: Alois Klink <alois@aloisklink.com>
This commit is contained in:
Sidharth Vinod
2023-08-30 05:19:12 +00:00
committed by GitHub
parent cca9662365
commit bbbae7d59f
2 changed files with 3 additions and 0 deletions

View File

@@ -456,6 +456,8 @@ export const insertEdge = function (elem, e, edge, clusterDb, diagramType, graph
curve = edge.curve;
}
// We need to draw the lines a bit shorter to avoid drawing
// under any transparent markers.
// The offsets are calculated from the markers' dimensions.
const markerOffsets = {
aggregation: 18,

View File

@@ -136,6 +136,7 @@ const lollipop = (elem, type) => {
.attr('cx', 7)
.attr('cy', 7)
.attr('r', 6);
elem
.append('defs')
.append('marker')