add node icon

This commit is contained in:
zhandouxiaojiji committed 2020-10-22 15:50:19 +08:00
1 parent fead2cdd96
commit 61a69a3e7f
4 files changed
+32 -18

No files matched your search

+6
View File
@@ -1,6 +1,8 @@
import { TreeGraphData } from "@antv/g6/lib/types"
import { Tree } from "antd";
import { BehaviorNodeModel } from "./BehaviorTreeModel";
import Settings from "../main-process/Settings";
import { remote } from "electron";
export const cloneNodeData = (nodeData: TreeGraphData) => {
const newData: TreeGraphData = {
@@ -67,4 +69,8 @@ export const findFromAllChildren = (node: TreeGraphData, id: string): TreeGraphD
}
}
return null;
}
export const getRemoteSettings = () => {
return remote.getGlobal("settings") as Settings;
}