optimize node render size
This commit is contained in:
1 parent
e462261faf
commit
b757d68430
5 files changed
+68
-63
No files matched your search
@@ -730,7 +730,7 @@ export const Editor: FC<EditorProps> = ({ onUpdate: updateState, data: editor, .
|
||||
direction: "LR",
|
||||
getHGap: () => 60,
|
||||
getWidth: (d: TreeGraphData) => {
|
||||
return 150;
|
||||
return 160;
|
||||
},
|
||||
getHeight: (d: TreeGraphData) => {
|
||||
if (d.size) {
|
||||
@@ -1145,10 +1145,10 @@ export const Editor: FC<EditorProps> = ({ onUpdate: updateState, data: editor, .
|
||||
if (data.parent) {
|
||||
recursiveFun(data.parent);
|
||||
}
|
||||
}
|
||||
};
|
||||
recursiveFun(id);
|
||||
updateGrahp();
|
||||
}
|
||||
};
|
||||
|
||||
return (
|
||||
<div
|
||||
|
||||
Reference in new issue
Block a user