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-CxpskoI1.esm.min.js";import{L as e,R as i}from"./index-yNtOWHHe.esm.min.js";import{b as o}from"./KHR_interactivity-UbVlhV6v.esm.min.js";import"./objectModelMapping-DJGnHmCN.esm.min.js";class a extends o{constructor(e){super(e),this.config=e,this.condition=this.registerDataInput("condition",t),this.executionFlow=this._registerSignalOutput("executionFlow"),this.completed=this._registerSignalOutput("completed"),this._unregisterSignalOutput("out")}_execute(t,i){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){e.Warn("FlowGraphWhileLoopBlock: Max loop count reached. Breaking.");break}o=this.condition.getValue(t)}this.completed._activateSignal(t)}getClassName(){return"FlowGraphWhileLoopBlock"}}a.MaxLoopCount=1e3,i("FlowGraphWhileLoopBlock",a);export{a as FlowGraphWhileLoopBlock}; //# sourceMappingURL=flowGraphWhileLoopBlock-C2ccGM3g.esm.min.js.map