lint fixes

This commit is contained in:
Ashish Jain 2024-06-13 17:00:08 +02:00
parent 1afd0a199e
commit dd7f8ac81b
3 changed files with 2 additions and 5 deletions

View File

@ -239,7 +239,6 @@ const extract = (_doc) => {
node.label = node.label[0]; node.label = node.label[0];
} }
}); });
console.log('nodes after extract', nodes);
}; };
/** /**

View File

@ -59,8 +59,6 @@ export const insertNode = async (elem, node, dir) => {
let newEl; let newEl;
let el; let el;
console.log('node DDD', node);
//special check for rect shape (with or without rounded corners) //special check for rect shape (with or without rounded corners)
if (node.shape === 'rect') { if (node.shape === 'rect') {
if (node.rx && node.ry) { if (node.rx && node.ry) {

View File

@ -32,7 +32,7 @@ export const rectWithTitle = async (parent: SVGElement, node: Node) => {
const description = node.description; const description = node.description;
let title = node.label; const title = node.label;
const text = label.node().appendChild(createLabel(title, node.labelStyle, true, true)); const text = label.node().appendChild(createLabel(title, node.labelStyle, true, true));
let bbox = { width: 0, height: 0 }; let bbox = { width: 0, height: 0 };
@ -45,7 +45,7 @@ export const rectWithTitle = async (parent: SVGElement, node: Node) => {
} }
log.info('Text 2', description); log.info('Text 2', description);
const textRows = description || []; const textRows = description || [];
let titleBox = text.getBBox(); const titleBox = text.getBBox();
const descr = label const descr = label
.node() .node()
.appendChild( .appendChild(