mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-08-22 17:56:43 +02:00
Support for config option elk.mergeEdges
This commit is contained in:
@@ -465,7 +465,7 @@ export const render = async (data4Layout, svg, element, algorithm) => {
|
|||||||
'elk.hierarchyHandling': 'INCLUDE_CHILDREN',
|
'elk.hierarchyHandling': 'INCLUDE_CHILDREN',
|
||||||
'elk.algorithm': algorithm,
|
'elk.algorithm': algorithm,
|
||||||
'nodePlacement.strategy': data4Layout.config['elk.nodePlacement.strategy'],
|
'nodePlacement.strategy': data4Layout.config['elk.nodePlacement.strategy'],
|
||||||
'elk.layered.mergeEdges': data4Layout.config.mergeEdges,
|
'elk.layered.mergeEdges': data4Layout.config['elk.mergeEdges'],
|
||||||
'elk.direction': 'DOWN',
|
'elk.direction': 'DOWN',
|
||||||
'spacing.baseValue': 30,
|
'spacing.baseValue': 30,
|
||||||
// 'spacing.nodeNode': 40,
|
// 'spacing.nodeNode': 40,
|
||||||
|
@@ -89,7 +89,7 @@ export interface MermaidConfig {
|
|||||||
*/
|
*/
|
||||||
maxEdges?: number;
|
maxEdges?: number;
|
||||||
/**
|
/**
|
||||||
* Elk specific option that allows edge egdes to share path where it convenient. It can make for pretty diagrams but can also make it harder to read the diagram.
|
* Elk specific option that allows egdes to share path where it convenient. It can make for pretty diagrams but can also make it harder to read the diagram.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
'elk.mergeEdges'?: boolean;
|
'elk.mergeEdges'?: boolean;
|
||||||
|
@@ -70,7 +70,6 @@ const rect = (parent, node) => {
|
|||||||
stroke: clusterBorder,
|
stroke: clusterBorder,
|
||||||
fillWeight: 3,
|
fillWeight: 3,
|
||||||
seed: handdrawnSeed,
|
seed: handdrawnSeed,
|
||||||
stroke: clusterBorder,
|
|
||||||
});
|
});
|
||||||
const roughNode = rc.path(createRoundedRectPathD(x, y, totalWidth, totalHeight, 0), options);
|
const roughNode = rc.path(createRoundedRectPathD(x, y, totalWidth, totalHeight, 0), options);
|
||||||
// console.log('Rough node insert CXC', roughNode);
|
// console.log('Rough node insert CXC', roughNode);
|
||||||
|
@@ -102,7 +102,7 @@ properties:
|
|||||||
minimum: 0
|
minimum: 0
|
||||||
elk.mergeEdges:
|
elk.mergeEdges:
|
||||||
description: |
|
description: |
|
||||||
Elk specific option that allows edge egdes to share path where it convenient. It can make for pretty diagrams but can also make it harder to read the diagram.
|
Elk specific option that allows egdes to share path where it convenient. It can make for pretty diagrams but can also make it harder to read the diagram.
|
||||||
type: boolean
|
type: boolean
|
||||||
default: false
|
default: false
|
||||||
elk.nodePlacement.strategy:
|
elk.nodePlacement.strategy:
|
||||||
|
Reference in New Issue
Block a user