mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-18 14:59:53 +02:00
fix: arrow head color not matching arrow color
on-behalf-of: @Mermaid-Chart <hello@mermaidchart.com>
This commit is contained in:
@@ -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'))) {
|
||||||
|
Reference in New Issue
Block a user