mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-28 07:03:17 +08:00
refactor: remove unused param from labelHelper()
Fixes: 7401cb8f6aec0c7dccae820824eb2bb3e6a3e12d
This commit is contained in:
parent
8d0902de4c
commit
054f929150
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user