UNPKG

@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.

49 lines (45 loc) 1.76 kB
import { F as FlowGraphBlock } from './KHR_interactivity-CEwUaqxQ.esm.js'; import { R as RichTypeAny, d as RichTypeNumber } from './declarationMapper-CqO08-WM.esm.js'; import { u as RegisterClass } from './index-MZPybX0H.esm.js'; import './objectModelMapping-De5EKNEZ.esm.js'; import './spotLight.pure-CRdZC6Ci.esm.js'; /** This file must only contain pure code and pure imports */ /** * 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 */; } } let _Registered = false; /** * Register side effects for flowGraphContextBlock. * Safe to call multiple times; only the first call has an effect. */ function RegisterFlowGraphContextBlock() { if (_Registered) { return; } _Registered = true; RegisterClass("FlowGraphContextBlock" /* FlowGraphBlockNames.Context */, FlowGraphContextBlock); } /** * Re-exports pure implementation and applies runtime side effects. * Import flowGraphContextBlock.pure for tree-shakeable, side-effect-free usage. */ RegisterFlowGraphContextBlock(); export { FlowGraphContextBlock, RegisterFlowGraphContextBlock }; //# sourceMappingURL=flowGraphContextBlock-BswVKk5y.esm.js.map