refactor: remove unused param from labelHelper()

Fixes: 7401cb8f6aec0c7dccae820824eb2bb3e6a3e12d
This commit is contained in:
Alois Klink 2024-10-29 21:12:11 +09:00
parent 8d0902de4c
commit 054f929150

View File

@ -10,8 +10,7 @@ import type { D3Selection, Point } from '../../../types.js';
export const labelHelper = async <T extends SVGGraphicsElement>(
parent: D3Selection<T>,
node: Node,
_classes?: string,
_shapeSvg?: D3Selection<T>
_classes?: string
) => {
let cssClasses;
const useHtmlLabels = node.useHtmlLabels || evaluate(getConfig()?.flowchart?.htmlLabels);
@ -22,9 +21,7 @@ export const labelHelper = async <T extends SVGGraphicsElement>(
}
// Add outer g element
const shapeSvg = _shapeSvg
? _shapeSvg
: parent
const shapeSvg = parent
.insert('g')
.attr('class', cssClasses)
.attr('id', node.domId || node.id);