Skip to content

Commit f33ebfa

Browse files
committed
refactor: fix broken generic on insertLabel()
Fixes: 7401cb8
1 parent 054f929 commit f33ebfa

File tree

1 file changed

+1
-1
lines changed
  • packages/mermaid/src/rendering-util/rendering-elements/shapes

1 file changed

+1
-1
lines changed

packages/mermaid/src/rendering-util/rendering-elements/shapes/util.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ export const labelHelper = async <T extends SVGGraphicsElement>(
116116
labelEl.insert('rect', ':first-child');
117117
return { shapeSvg, bbox, halfPadding, label: labelEl };
118118
};
119-
export const insertLabel = async (
119+
export const insertLabel = async <T extends SVGGraphicsElement>(
120120
parent: D3Selection<T>,
121121
label: string,
122122
options: {

0 commit comments

Comments
 (0)