mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-14 06:43:25 +08:00
lint fixes
This commit is contained in:
parent
1afd0a199e
commit
dd7f8ac81b
@ -239,7 +239,6 @@ const extract = (_doc) => {
|
||||
node.label = node.label[0];
|
||||
}
|
||||
});
|
||||
console.log('nodes after extract', nodes);
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -59,8 +59,6 @@ export const insertNode = async (elem, node, dir) => {
|
||||
let newEl;
|
||||
let el;
|
||||
|
||||
console.log('node DDD', node);
|
||||
|
||||
//special check for rect shape (with or without rounded corners)
|
||||
if (node.shape === 'rect') {
|
||||
if (node.rx && node.ry) {
|
||||
|
@ -32,7 +32,7 @@ export const rectWithTitle = async (parent: SVGElement, node: Node) => {
|
||||
|
||||
const description = node.description;
|
||||
|
||||
let title = node.label;
|
||||
const title = node.label;
|
||||
|
||||
const text = label.node().appendChild(createLabel(title, node.labelStyle, true, true));
|
||||
let bbox = { width: 0, height: 0 };
|
||||
@ -45,7 +45,7 @@ export const rectWithTitle = async (parent: SVGElement, node: Node) => {
|
||||
}
|
||||
log.info('Text 2', description);
|
||||
const textRows = description || [];
|
||||
let titleBox = text.getBBox();
|
||||
const titleBox = text.getBBox();
|
||||
const descr = label
|
||||
.node()
|
||||
.appendChild(
|
||||
|
Loading…
x
Reference in New Issue
Block a user