导出节点元数据

This commit is contained in:
gongxh
2025-09-08 16:49:40 +08:00
parent 6d6162031a
commit 6ae0b4200a

View File

@@ -154,4 +154,9 @@ export namespace BT {
export function canAddMoreChildren(metadata: NodeMetadata, currentChildCount: number): boolean {
return metadata.maxChildren === -1 || currentChildCount < metadata.maxChildren;
}
}
}
let _global = globalThis || window || global;
(_global as any)["getKunpoBTNodeMaps"] = function () {
return BT.getAllNodeMetadata();
};