optimize node render size

This commit is contained in:
codetypes committed 2024-05-10 00:25:09 +08:00
1 parent e462261faf
commit b757d68430
5 files changed
+68 -63

No files matched your search

+3 -3
View File
@@ -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