NodePanel update input & output
This commit is contained in:
1 parent
976d1720fd
commit
cad9a2c4d6
4 files changed
+66
-13
No files matched your search
@@ -246,9 +246,11 @@ export default class Editor extends React.Component<EditorProps, EditorState> {
|
||||
graph.set('animate', true);
|
||||
});
|
||||
|
||||
const settings = Utils.getRemoteSettings();
|
||||
|
||||
const str = fs.readFileSync(this.props.filepath, 'utf8');
|
||||
let tree: BehaviorTreeModel = JSON.parse(str);
|
||||
const data = Utils.createTreeData(tree.root);
|
||||
const data = Utils.createTreeData(tree.root, settings);
|
||||
graph.data(data);
|
||||
graph.render();
|
||||
graph.fitCenter();
|
||||
@@ -256,8 +258,6 @@ export default class Editor extends React.Component<EditorProps, EditorState> {
|
||||
|
||||
this.graph = graph;
|
||||
|
||||
const settings = Utils.getRemoteSettings();
|
||||
|
||||
this.setState({ treeModel: tree, settings });
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user