chore: remove unwanted logs

on-behalf-of: @Mermaid-Chart <hello@mermaidchart.com>
This commit is contained in:
darshanr0107
2025-08-11 13:51:10 +05:30
parent 68c01b76bf
commit 1507435e15
2 changed files with 1 additions and 9 deletions

View File

@@ -2,7 +2,6 @@ import { curveLinear } from 'd3';
import ELK from 'elkjs/lib/elk.bundled.js';
import type { InternalHelpers, LayoutData, RenderOptions, SVG, SVGGroup } from 'mermaid';
import { type TreeData, findCommonAncestor } from './find-common-ancestor.js';
import type { NodeChildren } from 'mermaid/dist/rendering-util/types.js';
type Node = LayoutData['nodes'][number];
// Used to calculate distances in order to avoid floating number rounding issues when comparing floating numbers
@@ -15,7 +14,7 @@ interface LabelData {
}
interface NodeWithVertex extends Omit<Node, 'domId'> {
children?: NodeChildren;
children?: LayoutData['nodes'];
labelData?: LabelData;
domId?: Node['domId'] | SVGGroup | d3.Selection<SVGAElement, unknown, Element | null, unknown>;
}

View File

@@ -69,13 +69,6 @@ export const draw: DrawDefinition = async (text, id, _version, diagObj) => {
fallback: 'cose-bilkent',
});
// For mindmap diagrams, prioritize mindmap-specific layout algorithm configuration
const preferredLayout = conf?.layoutAlgorithm ?? layout ?? 'cose-bilkent';
log.debug('Mindmap renderer - preferredLayout:', preferredLayout);
log.debug('Mindmap renderer - conf?.layoutAlgorithm:', conf?.layoutAlgorithm);
log.debug('Mindmap renderer - layout:', layout);
log.debug('Mindmap renderer - selected layoutAlgorithm:', data4Layout.layoutAlgorithm);
log.debug('APA01 Mindmap renderer - data4Layout.rootNode exists:', !!data4Layout.rootNode);
data4Layout.diagramId = id;