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.02 kB
import{h as t}from"./declarationMapper-13w1YGqM.esm.min.js";import{L as i,R as e}from"./index-Bw2N6w1y.esm.min.js";import{b as o}from"./KHR_interactivity-CKt1TdMW.esm.min.js";import"./objectModelMapping-DX92iJ8M.esm.min.js";class a extends o{constructor(i){super(i),this.config=i,this.condition=this.registerDataInput("condition",t),this.executionFlow=this._registerSignalOutput("executionFlow"),this.completed=this._registerSignalOutput("completed"),this._unregisterSignalOutput("out")}_execute(t,e){let o=this.condition.getValue(t);this.config?.doWhile&&!o&&this.executionFlow._activateSignal(t);let n=0;for(;o;){if(this.executionFlow._activateSignal(t),++n,n>=a.MaxLoopCount){i.Warn("FlowGraphWhileLoopBlock: Max loop count reached. Breaking.");break}o=this.condition.getValue(t)}this.completed._activateSignal(t)}getClassName(){return"FlowGraphWhileLoopBlock"}}a.MaxLoopCount=1e3,e("FlowGraphWhileLoopBlock",a);export{a as FlowGraphWhileLoopBlock}; //# sourceMappingURL=flowGraphWhileLoopBlock-49RiR6ME.esm.min.js.map