chore: fix eslint warnings

This commit is contained in:
Sidharth Vinod
2022-09-13 21:39:58 +05:30
parent b5dcb4f345
commit 4fc4d71350
23 changed files with 25 additions and 132 deletions

View File

@@ -2,7 +2,7 @@
import { select } from 'd3';
import { log, getConfig, setupGraphViewbox } from '../../diagram-api/diagramAPI';
import svgDraw from './svgDraw';
import { BoundingBox, Layout, Tree } from 'non-layered-tidy-tree-layout';
import { BoundingBox, Layout } from 'non-layered-tidy-tree-layout';
import clone from 'fast-clone';
import * as db from './mindmapDb';
@@ -193,6 +193,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;
return node;
}
@@ -232,13 +233,11 @@ export const draw = (text, id, version, diagObj) => {
securityLevel === 'sandbox'
? select(sandboxElement.nodes()[0].contentDocument.body)
: select('body');
const doc = securityLevel === 'sandbox' ? sandboxElement.nodes()[0].contentDocument : document;
// Parse the graph definition
const svg = root.select('#' + id);
const g = svg.append('g');
svg.append('g');
const mm = diagObj.db.getMindmap();
// Draw the graph and start with drawing the nodes without proper position