mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-14 06:43:25 +08:00
refactor: fix broken generic on insertLabel()
Fixes: 7401cb8f6aec0c7dccae820824eb2bb3e6a3e12d
This commit is contained in:
parent
054f929150
commit
f33ebfaf7a
@ -116,7 +116,7 @@ export const labelHelper = async <T extends SVGGraphicsElement>(
|
||||
labelEl.insert('rect', ':first-child');
|
||||
return { shapeSvg, bbox, halfPadding, label: labelEl };
|
||||
};
|
||||
export const insertLabel = async (
|
||||
export const insertLabel = async <T extends SVGGraphicsElement>(
|
||||
parent: D3Selection<T>,
|
||||
label: string,
|
||||
options: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user