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.

3 lines (2 loc) 1.11 kB
import{F as e,g as t}from"./KHR_interactivity-BMn2G2LI.esm.min.js";import{R as s}from"./declarationMapper-sl3auZpG.esm.min.js";import{F as i}from"./objectModelMapping-DA3c5cv8.esm.min.js";import{u as r}from"./index-OM-TXt9s.esm.min.js";import"./spotLight.pure-guqQj5Iw.esm.min.js";class a extends e{constructor(e){super(e),this.config=e,this.array=this.registerDataInput("array",s),this.index=this.registerDataInput("index",s,new i(-1)),this.value=this.registerDataOutput("value",s)}_updateOutputs(e){const s=this.array.getValue(e),i=this.index.getValue(e);if(null==i)return void this.value.setValue(null,e);let r;if("string"==typeof i){const t=e.decodeIndexReference(i);if(void 0===t)return void this.value.setValue(null,e);r=t}else r=t(i);s&&r>=0&&r<s.length?this.value.setValue(s[r],e):this.value.setValue(null,e)}serialize(e){super.serialize(e)}getClassName(){return"FlowGraphArrayIndexBlock"}}let n=!1;function l(){n||(n=!0,r("FlowGraphArrayIndexBlock",a))}l();export{a as FlowGraphArrayIndexBlock,l as RegisterFlowGraphArrayIndexBlock}; //# sourceMappingURL=flowGraphArrayIndexBlock-ByUj4L9X.esm.min.js.map