mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-10-11 18:19:42 +02:00
Apply suggestions from code review
Co-authored-by: Alois Klink <alois@aloisklink.com>
This commit is contained in:
@@ -456,6 +456,8 @@ export const insertEdge = function (elem, e, edge, clusterDb, diagramType, graph
|
|||||||
curve = edge.curve;
|
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.
|
// The offsets are calculated from the markers' dimensions.
|
||||||
const markerOffsets = {
|
const markerOffsets = {
|
||||||
aggregation: 18,
|
aggregation: 18,
|
||||||
|
@@ -136,6 +136,7 @@ const lollipop = (elem, type) => {
|
|||||||
.attr('cx', 7)
|
.attr('cx', 7)
|
||||||
.attr('cy', 7)
|
.attr('cy', 7)
|
||||||
.attr('r', 6);
|
.attr('r', 6);
|
||||||
|
|
||||||
elem
|
elem
|
||||||
.append('defs')
|
.append('defs')
|
||||||
.append('marker')
|
.append('marker')
|
||||||
|
Reference in New Issue
Block a user