Skip to content

Commit 3d8a578

Browse files
asuzuki-jumptradingjherrera-jump
authored andcommitted
fix: textAnchor type
1 parent 49a0318 commit 3d8a578

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/sankey/SankeyLabels.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ import {
2828
secondaryTextColor,
2929
votesColor,
3030
} from "../colors";
31+
import type { SVGAttributes } from "react";
3132

3233
const store = getDefaultStore();
3334

@@ -72,7 +73,7 @@ export const SankeyLabels = <N extends DefaultNode, L extends DefaultLink>({
7273
.map((node) => {
7374
let x;
7475
let y;
75-
let textAnchor;
76+
let textAnchor: SVGAttributes<SVGTextElement>["textAnchor"];
7677

7778
if (layout === "horizontal") {
7879
y = node.y + node.height / 2 - 5;

0 commit comments

Comments
 (0)