add Tree describe v0.1.8
This commit is contained in:
1 parent
c36c3a618c
commit
1194e5e701
5 files changed
+90
-10
No files matched your search
@@ -35,6 +35,7 @@ export interface BehaviorNodeModel {
|
||||
|
||||
export interface BehaviorTreeModel {
|
||||
name: string;
|
||||
desc?: string;
|
||||
root: BehaviorNodeModel;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user