@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) • 808 B
JavaScript
import{F as e,g as t}from"./KHR_interactivity-CKt1TdMW.esm.min.js";import{R as s,b as a}from"./declarationMapper-13w1YGqM.esm.min.js";import{R as r}from"./index-Bw2N6w1y.esm.min.js";import"./objectModelMapping-DX92iJ8M.esm.min.js";class i 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"}}r("FlowGraphArrayIndexBlock",i);export{i as FlowGraphArrayIndexBlock};
//# sourceMappingURL=flowGraphArrayIndexBlock-DJ0Z0d-L.esm.min.js.map