refactor: fix broken generic on insertLabel()

Fixes: 7401cb8f6aec0c7dccae820824eb2bb3e6a3e12d
This commit is contained in:
Alois Klink 2024-10-29 21:13:10 +09:00
parent 054f929150
commit f33ebfaf7a

View File

@ -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: {