@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.14 kB
JavaScript
import{a as t}from"./declarationMapper-D_filC93.esm.min.js";import{c as i}from"./KHR_interactivity-D4lwBSW9.esm.min.js";import{y as e,u as o}from"./index-BPURObVq.esm.min.js";import"./objectModelMapping-ClgDmo5Q.esm.min.js";import"./spotLight.pure-5s2DDDIt.esm.min.js";class n extends i{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,i){let o=this.condition.getValue(t);this.config?.doWhile&&!o&&this.executionFlow._activateSignal(t);let s=0;for(;o;){if(this.executionFlow._activateSignal(t),++s,s>=n.MaxLoopCount){e.Warn("FlowGraphWhileLoopBlock: Max loop count reached. Breaking.");break}o=this.condition.getValue(t)}this.completed._activateSignal(t)}getClassName(){return"FlowGraphWhileLoopBlock"}}n.MaxLoopCount=1e3;let s=!1;function a(){s||(s=!0,o("FlowGraphWhileLoopBlock",n))}a();export{n as FlowGraphWhileLoopBlock,a as RegisterFlowGraphWhileLoopBlock};
//# sourceMappingURL=flowGraphWhileLoopBlock-DcVfwwrr.esm.min.js.map