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.27 kB
import{b as t,g as e}from"./KHR_interactivity-CKt1TdMW.esm.min.js";import{R as i,f as s,k as n,b as a}from"./declarationMapper-13w1YGqM.esm.min.js";import{R as o}from"./index-Bw2N6w1y.esm.min.js";import"./objectModelMapping-DX92iJ8M.esm.min.js";class r extends t{constructor(t){super(t),this.startIndex=this.registerDataInput("startIndex",i,0),this.endIndex=this.registerDataInput("endIndex",i),this.step=this.registerDataInput("step",s,1),this.index=this.registerDataOutput("index",n,new a(e(t?.initialIndex??0))),this.executionFlow=this._registerSignalOutput("executionFlow"),this.completed=this._registerSignalOutput("completed"),this._unregisterSignalOutput("out")}_execute(t){const i=e(this.startIndex.getValue(t)),s=this.step.getValue(t);let n=e(this.endIndex.getValue(t));for(let o=i;o<n&&(this.index.setValue(new a(o),t),this.executionFlow._activateSignal(t),n=e(this.endIndex.getValue(t)),!(o>r.MaxLoopIterations*s));o+=s);this.config?.incrementIndexWhenLoopDone&&this.index.setValue(new a(e(this.index.getValue(t))+s),t),this.completed._activateSignal(t)}getClassName(){return"FlowGraphForLoopBlock"}}r.MaxLoopIterations=1e3,o("FlowGraphForLoopBlock",r);export{r as FlowGraphForLoopBlock}; //# sourceMappingURL=flowGraphForLoopBlock-g6u3OmCj.esm.min.js.map