fix(edges): pass className to edge closes #420

This commit is contained in:
moklick
2020-08-11 09:57:45 +02:00
parent ccf03eb604
commit 6d651bdc98
3 changed files with 2 additions and 3 deletions
-2
View File
@@ -12,8 +12,6 @@ export default memo(({ x, y, label, labelStyle = {}, labelShowBg = true, labelBg
if (edgeRef.current) {
const textBbox = edgeRef.current.getBBox();
console.log(textBbox);
setEdgeTextBbox({
x: textBbox.x,
y: textBbox.y,