Add swap inputs feature

This commit is contained in:
Patrick Lekaj 2019-08-25 22:10:25 +02:00
parent d3e3e6e6fc
commit 88c7843924
12 changed files with 78 additions and 16 deletions

View file

@ -24,6 +24,7 @@ class Operation {
this._disabled = false;
this._flowControl = false;
this._manualBake = false;
this._inputSwapable = false;
this._ingList = [];
// Public fields
@ -316,6 +317,25 @@ class Operation {
this._manualBake = !!value;
}
/**
* Returns true if this Operation has swapable input values.
*
* @returns {boolean}
*/
get inputSwapable() {
return this._inputSwapable;
}
/**
* Set whether this Operation shoud show swap input icon.
*
* @param {boolean} value
*/
set inputSwapable(value) {
this._inputSwapable = !!value;
}
}
export default Operation;