mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-12-05 20:14:14 +01:00
Update packages/mermaid/src/dagre-wrapper/mermaid-graphlib.js
Co-authored-by: Sidharth Vinod <sidharthv96@gmail.com>
This commit is contained in:
@@ -45,20 +45,7 @@ const edgeInCluster = (edge, clusterId) => {
|
|||||||
log.debug('Tilt, ', clusterId, ',not in decendants');
|
log.debug('Tilt, ', clusterId, ',not in decendants');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (decendants[clusterId].indexOf(edge.v) >= 0) {
|
return decendants[clusterId].indexOf(edge.v) >= 0 || isDecendant(edge.v, clusterId) || isDecendant(edge.w, clusterId) || decendants[clusterId].indexOf(edge.w) >= 0;
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if (isDecendant(edge.v, clusterId)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if (isDecendant(edge.w, clusterId)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if (decendants[clusterId].indexOf(edge.w) >= 0) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
return false;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const copy = (clusterId, graph, newGraph, rootId) => {
|
const copy = (clusterId, graph, newGraph, rootId) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user