@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.
3 lines (2 loc) • 927 B
JavaScript
import{F as e,g as t}from"./KHR_interactivity-D4lwBSW9.esm.min.js";import{R as s,F as a}from"./declarationMapper-D_filC93.esm.min.js";import{u as i}from"./index-BPURObVq.esm.min.js";import"./objectModelMapping-ClgDmo5Q.esm.min.js";import"./spotLight.pure-5s2DDDIt.esm.min.js";class r extends e{constructor(e){super(e),this.config=e,this.array=this.registerDataInput("array",s),this.index=this.registerDataInput("index",s,new a(-1)),this.value=this.registerDataOutput("value",s)}_updateOutputs(e){const s=this.array.getValue(e),a=t(this.index.getValue(e));s&&a>=0&&a<s.length?this.value.setValue(s[a],e):this.value.setValue(null,e)}serialize(e){super.serialize(e)}getClassName(){return"FlowGraphArrayIndexBlock"}}let n=!1;function u(){n||(n=!0,i("FlowGraphArrayIndexBlock",r))}u();export{r as FlowGraphArrayIndexBlock,u as RegisterFlowGraphArrayIndexBlock};
//# sourceMappingURL=flowGraphArrayIndexBlock-lC3YQNX6.esm.min.js.map