mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-11-18 11:44:07 +01:00
Fix for default curve on flowchart edge
This commit is contained in:
@@ -1097,6 +1097,7 @@ You have to call mermaid.initialize.`
|
|||||||
if (rawEdge.style) {
|
if (rawEdge.style) {
|
||||||
styles.push(...rawEdge.style);
|
styles.push(...rawEdge.style);
|
||||||
}
|
}
|
||||||
|
|
||||||
const edge: Edge = {
|
const edge: Edge = {
|
||||||
id: getEdgeId(rawEdge.start, rawEdge.end, { counter: index, prefix: 'L' }, rawEdge.id),
|
id: getEdgeId(rawEdge.start, rawEdge.end, { counter: index, prefix: 'L' }, rawEdge.id),
|
||||||
isUserDefinedId: rawEdge.isUserDefinedId,
|
isUserDefinedId: rawEdge.isUserDefinedId,
|
||||||
@@ -1123,6 +1124,8 @@ You have to call mermaid.initialize.`
|
|||||||
style: styles,
|
style: styles,
|
||||||
pattern: rawEdge.stroke,
|
pattern: rawEdge.stroke,
|
||||||
look: config.look,
|
look: config.look,
|
||||||
|
curve: config.flowchart?.curve,
|
||||||
|
showPoints: config.flowchart?.edgeDebug,
|
||||||
animate: rawEdge.animate,
|
animate: rawEdge.animate,
|
||||||
animation: rawEdge.animation,
|
animation: rawEdge.animation,
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user