Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion the-graph/the-graph-graph.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
this.props.graph.on("removeInitial", this.resetPortRoute);

// Listen to noflo graph object's events
this.props.graph.on("changeNode", this.markDirty);
this.props.graph.on("changeNode", this.onChangeNode);
this.props.graph.on("changeInport", this.markDirty);
this.props.graph.on("changeOutport", this.markDirty);
this.props.graph.on("endTransaction", this.markDirty);
Expand Down Expand Up @@ -202,6 +202,16 @@
}
}
},
triggerMoveNode: null,
onChangeNode: function (node, before) {
if (!this.triggerMoveNode) {
this.triggerMoveNode = function () {
this.markDirty();
delete this.triggerMoveNode;
}.bind(this);
window.setTimeout(this.triggerMoveNode, 0);
}
},
getComponentInfo: function (componentName) {
return this.props.library[componentName];
},
Expand Down