use 'readTree' to parse data file

This commit is contained in:
codetypes committed 2025-03-18 10:58:17 +08:00
1 parent 7478e1fa0f
commit 4d1d09fe80
12 files changed
+60 -30

No files matched your search

+7 -7
View File
@@ -151,14 +151,14 @@ G6.registerNode(
(data.path && !data.children?.length) ||
!checkTreeData(data) ||
(nodeDef.group && !usingGroups[nodeDef.group]) ||
(usingVars && data.input?.some((v) => !usingVars![v])) ||
(usingVars && data.output?.some((v) => !usingVars![v])) ||
(usingVars &&
nodeDef.args?.some(
(v) =>
isExprType(v.type) &&
parseExpr(data.args?.[v.name] ?? "").some((vv) => !usingVars![vv])
))
(data.input?.some((v) => usingVars?.[v] === undefined) ||
data.output?.some((v) => usingVars?.[v] === undefined) ||
nodeDef.args?.some(
(v) =>
isExprType(v.type) &&
parseExpr(data.args?.[v.name] ?? "").some((vv) => usingVars?.[vv] === undefined)
)))
) {
classify = "Error";
color = NODE_COLORS[classify];