mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-28 07:03:17 +08:00
Fixed linting error
This commit is contained in:
parent
f693084065
commit
0c7e2e2364
@ -54,8 +54,7 @@ const recursiveRender = async (_elem, graph, diagramtype, id, parentCluster) =>
|
|||||||
log.info('Cluster identified', v, node.width, graph.node(v));
|
log.info('Cluster identified', v, node.width, graph.node(v));
|
||||||
// node.graph.setGraph applies the graph configurations such as nodeSpacing to subgraphs as without this the default values would be used
|
// node.graph.setGraph applies the graph configurations such as nodeSpacing to subgraphs as without this the default values would be used
|
||||||
// We override the `rankdir` variable to allow for the subgraph's direction to override the graphs direction in the subgraph
|
// We override the `rankdir` variable to allow for the subgraph's direction to override the graphs direction in the subgraph
|
||||||
node.graph.setGraph({...graph.graph(), rankdir: node.graph.graph().rankdir});
|
node.graph.setGraph({ ...graph.graph(), rankdir: node.graph.graph().rankdir });
|
||||||
|
|
||||||
|
|
||||||
const o = await recursiveRender(nodes, node.graph, diagramtype, id, graph.node(v));
|
const o = await recursiveRender(nodes, node.graph, diagramtype, id, graph.node(v));
|
||||||
const newEl = o.elem;
|
const newEl = o.elem;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user