feat(lib): export edge utils #418

This commit is contained in:
moklick
2020-08-10 23:39:25 +02:00
parent a0ddbe939a
commit ccf03eb604
9 changed files with 102 additions and 57 deletions
+3
View File
@@ -11,6 +11,9 @@ export default memo(({ x, y, label, labelStyle = {}, labelShowBg = true, labelBg
useEffect(() => {
if (edgeRef.current) {
const textBbox = edgeRef.current.getBBox();
console.log(textBbox);
setEdgeTextBbox({
x: textBbox.x,
y: textBbox.y,