@babylonjs/viewer
Version:
The Babylon Viewer aims to simplify a specific but common Babylon.js use case: loading, viewing, and interacting with a 3D model.
35 lines (32 loc) • 1.19 kB
JavaScript
import { F as FlowGraphCachedOperationBlock } from './flowGraphCachedOperationBlock-DSj_4V2c.esm.js';
/**
* @internal
* The base block for all ternary operation blocks.
*/
class FlowGraphTernaryOperationBlock extends FlowGraphCachedOperationBlock {
constructor(t1Type, t2Type, t3Type, resultRichType, _operation, _className, config) {
super(resultRichType, config);
this._operation = _operation;
this._className = _className;
this.a = this.registerDataInput("a", t1Type);
this.b = this.registerDataInput("b", t2Type);
this.c = this.registerDataInput("c", t3Type);
}
/**
* the operation performed by this block
* @param context the graph context
* @returns the result of the operation
*/
_doOperation(context) {
return this._operation(this.a.getValue(context), this.b.getValue(context), this.c.getValue(context));
}
/**
* Gets the class name of this block
* @returns the class name
*/
getClassName() {
return this._className;
}
}
export { FlowGraphTernaryOperationBlock as F };
//# sourceMappingURL=flowGraphTernaryOperationBlock-CIRJESGF.esm.js.map