implement expression validation and build script setup in workspace

This commit is contained in:
codetypes committed 2025-03-23 12:30:32 +08:00
1 parent d595ce4a3a
commit 2483606ef4
24 files changed
+573 -318

No files matched your search

+6 -16
View File
@@ -1253,32 +1253,22 @@ export const Editor: FC<EditorProps> = ({ onUpdate: updateState, data: editor, .
editor.size.height = editorSize.height;
}
if (typeof editor.editNode === "number") {
const id = editor.editNode.toString();
selectNode(null);
if (editor.selectedId) {
const id = editor.selectedId;
setTimeout(() => {
editor.graph.focusItem(id);
selectNode(id);
}, 100);
}, 50);
}
});
}, [editorSize, workspace.editing]);
// check should subtree
// check should repaint node
useEffect(() => {
if (workspace.editing === editor) {
checkSubtree();
editor.graph && refresh();
}
}, [workspace.editing]);
// check should repaint node
useEffect(() => {
if (editor.graph) {
editor.graph.changeData(editor.root);
editor.graph.layout();
restoreViewport();
}
}, [t]);
}, [workspace.editing, t]);
const nextResult = () => {
const { results, index } = filterOption;