fix: arrow head color not matching arrow color

on-behalf-of: @Mermaid-Chart <hello@mermaidchart.com>
This commit is contained in:
darshanr0107
2025-09-10 20:30:31 +05:30
parent f759f5dcf7
commit b37eb6d0d1

View File

@@ -716,8 +716,7 @@ export const insertEdge = function (
log.info('arrowTypeStart', edge.arrowTypeStart); log.info('arrowTypeStart', edge.arrowTypeStart);
log.info('arrowTypeEnd', edge.arrowTypeEnd); log.info('arrowTypeEnd', edge.arrowTypeEnd);
const useMargin = !animatedEdge && edge?.look === 'neo'; addEdgeMarkers(svgPath, edge, url, id, diagramType, strokeColor);
addEdgeMarkers(svgPath, edge, url, id, diagramType, useMargin, strokeColor);
const midIndex = Math.floor(points.length / 2); const midIndex = Math.floor(points.length / 2);
const point = points[midIndex]; const point = points[midIndex];
if (!utils.isLabelCoordinateInPath(point, svgPath.attr('d'))) { if (!utils.isLabelCoordinateInPath(point, svgPath.attr('d'))) {