Cleanup fixing som lingering issues

This commit is contained in:
Knut Sveidqvist
2022-09-14 10:58:59 +02:00
parent ac788a7e7d
commit 9acdc0bc2e
3 changed files with 1 additions and 6 deletions

View File

@@ -616,7 +616,6 @@ export const draw = function (_text, id, _version, diagObj) {
globalBoundaryMaxY = conf.diagramMarginY;
const title = diagObj.db.getTitle();
const c4type = diagObj.db.getC4Type(); // TODO: @knsv: remove this?
let currentBoundarys = diagObj.db.getBoundarys('');
// switch (c4type) {
// case 'C4Context':

View File

@@ -157,8 +157,6 @@ export const draw = function (text, id, _version, diagObj) {
securityLevel === 'sandbox'
? select(sandboxElement.nodes()[0].contentDocument.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
const diagram = root.select(`[id='${id}']`);

View File

@@ -192,9 +192,7 @@ function layoutMindmap(node, conf) {
});
// Merge the trees into a single tree
const result = mergeTrees(node, trees);
// TODO: @knsv The function is not called bug?
eachNode;
mergeTrees(node, trees);
return node;
}
/**