mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-14 06:43:25 +08:00
Support for config option elk.mergeEdges
This commit is contained in:
parent
7763d9ceb8
commit
9981d3fc8b
@ -465,7 +465,7 @@ export const render = async (data4Layout, svg, element, algorithm) => {
|
||||
'elk.hierarchyHandling': 'INCLUDE_CHILDREN',
|
||||
'elk.algorithm': algorithm,
|
||||
'nodePlacement.strategy': data4Layout.config['elk.nodePlacement.strategy'],
|
||||
'elk.layered.mergeEdges': data4Layout.config.mergeEdges,
|
||||
'elk.layered.mergeEdges': data4Layout.config['elk.mergeEdges'],
|
||||
'elk.direction': 'DOWN',
|
||||
'spacing.baseValue': 30,
|
||||
// 'spacing.nodeNode': 40,
|
||||
|
@ -89,7 +89,7 @@ export interface MermaidConfig {
|
||||
*/
|
||||
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;
|
||||
|
@ -70,7 +70,6 @@ const rect = (parent, node) => {
|
||||
stroke: clusterBorder,
|
||||
fillWeight: 3,
|
||||
seed: handdrawnSeed,
|
||||
stroke: clusterBorder,
|
||||
});
|
||||
const roughNode = rc.path(createRoundedRectPathD(x, y, totalWidth, totalHeight, 0), options);
|
||||
// console.log('Rough node insert CXC', roughNode);
|
||||
|
@ -102,7 +102,7 @@ properties:
|
||||
minimum: 0
|
||||
elk.mergeEdges:
|
||||
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
|
||||
default: false
|
||||
elk.nodePlacement.strategy:
|
||||
|
Loading…
x
Reference in New Issue
Block a user