add Tree describe v0.1.8

This commit is contained in:
zhandouxiaojiji committed 2021-01-20 21:37:59 +08:00
1 parent c36c3a618c
commit 1194e5e701
5 files changed
+90 -10

No files matched your search

+1
View File
@@ -35,6 +35,7 @@ export interface BehaviorNodeModel {
export interface BehaviorTreeModel {
name: string;
desc?: string;
root: BehaviorNodeModel;
}
-1
View File
@@ -56,7 +56,6 @@ export const calcTreeNodeSize = (treeNode: GraphNodeModel) => {
const updateHeight = (obj: any) => {
if (Array.isArray(obj) || (obj && Object.keys(obj).length > 0)) {
const { str, line } = toBreakWord(`参数:${JSON.stringify(obj)}`, 35);
console.log("line", str, line);
height += 20 * line;
}
};