@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.
30 lines (27 loc) • 1.17 kB
JavaScript
import { F as FlowGraphBlock } from './KHR_interactivity-Bmb38TjL.esm.js';
import { R as RichTypeAny, f as RichTypeNumber } from './declarationMapper-rcGCdcDP.esm.js';
import { R as RegisterClass } from './index-FzOfPXLV.esm.js';
import './objectModelMapping-CJnQ6at_.esm.js';
/**
* A block that outputs elements from the context
*/
class FlowGraphContextBlock extends FlowGraphBlock {
constructor(config) {
super(config);
this.userVariables = this.registerDataOutput("userVariables", RichTypeAny);
this.executionId = this.registerDataOutput("executionId", RichTypeNumber);
}
_updateOutputs(context) {
this.userVariables.setValue(context.userVariables, context);
this.executionId.setValue(context.executionId, context);
}
serialize(serializationObject) {
super.serialize(serializationObject);
}
getClassName() {
return "FlowGraphContextBlock" /* FlowGraphBlockNames.Context */;
}
}
RegisterClass("FlowGraphContextBlock" /* FlowGraphBlockNames.Context */, FlowGraphContextBlock);
export { FlowGraphContextBlock };
//# sourceMappingURL=flowGraphContextBlock-D_gxM0Lf.esm.js.map