Skip to content

Commit 9a9d110

Browse files
committed
feat: attach edge css class
Signed-off-by: Andres Correa Casablanca <castarco@coderspirit.xyz>
1 parent b303103 commit 9a9d110

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/BeautifulTree.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ export function BeautifulTree({
5151
return (
5252
<line
5353
key={`${id}-edge-${idx}`}
54+
className={'beautiful-tree-edge'}
5455
x1={(edge.start.x + 1) * xCoef}
5556
y1={(edge.start.y + 1) * yCoef}
5657
x2={(edge.end.x + 1) * xCoef}

0 commit comments

Comments
 (0)