mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-14 04:49:44 +02:00
Cleanup fixing som lingering issues
This commit is contained in:
@@ -616,7 +616,6 @@ export const draw = function (_text, id, _version, diagObj) {
|
|||||||
globalBoundaryMaxY = conf.diagramMarginY;
|
globalBoundaryMaxY = conf.diagramMarginY;
|
||||||
|
|
||||||
const title = diagObj.db.getTitle();
|
const title = diagObj.db.getTitle();
|
||||||
const c4type = diagObj.db.getC4Type(); // TODO: @knsv: remove this?
|
|
||||||
let currentBoundarys = diagObj.db.getBoundarys('');
|
let currentBoundarys = diagObj.db.getBoundarys('');
|
||||||
// switch (c4type) {
|
// switch (c4type) {
|
||||||
// case 'C4Context':
|
// case 'C4Context':
|
||||||
|
@@ -157,8 +157,6 @@ export const draw = function (text, id, _version, diagObj) {
|
|||||||
securityLevel === 'sandbox'
|
securityLevel === 'sandbox'
|
||||||
? select(sandboxElement.nodes()[0].contentDocument.body)
|
? select(sandboxElement.nodes()[0].contentDocument.body)
|
||||||
: select('body');
|
: select('body');
|
||||||
// TODO: @knsv doc is not used, bug?
|
|
||||||
const doc = securityLevel === 'sandbox' ? sandboxElement.nodes()[0].contentDocument : document;
|
|
||||||
|
|
||||||
// Fetch the default direction, use TD if none was found
|
// Fetch the default direction, use TD if none was found
|
||||||
const diagram = root.select(`[id='${id}']`);
|
const diagram = root.select(`[id='${id}']`);
|
||||||
|
@@ -192,9 +192,7 @@ function layoutMindmap(node, conf) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// Merge the trees into a single tree
|
// Merge the trees into a single tree
|
||||||
const result = mergeTrees(node, trees);
|
mergeTrees(node, trees);
|
||||||
// TODO: @knsv The function is not called bug?
|
|
||||||
eachNode;
|
|
||||||
return node;
|
return node;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user