@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.71 kB
JavaScript
import{F as t}from"./KHR_interactivity-D4lwBSW9.esm.min.js";import{R as i}from"./declarationMapper-D_filC93.esm.min.js";import{u as e}from"./index-BPURObVq.esm.min.js";import"./objectModelMapping-ClgDmo5Q.esm.min.js";import"./spotLight.pure-5s2DDDIt.esm.min.js";class o extends t{constructor(t){super(t),this.log=[],this._isDebug=!0,this.input=this.registerDataInput("input",i),this.output=this.registerDataOutput("output",i)}_updateOutputs(t){const i=this.input.getValue(t);this.output.setValue(i,t),this._logValue(i)}_logValue(t){if(null==t)this.log.push(["null","null"]);else{const i=o._FormatValue(t);this.log.push([i,String(t)])}this.log.length>100&&this.log.shift()}static _FormatValue(t){if("number"==typeof t)return Number.isInteger(t)?t.toString():t.toFixed(4);if("boolean"==typeof t||"string"==typeof t)return String(t);if(t&&"object"==typeof t){if("w"in t&&"x"in t&&"y"in t&&"z"in t)return`(${t.x.toFixed(3)}, ${t.y.toFixed(3)}, ${t.z.toFixed(3)}, ${t.w.toFixed(3)})`;if("z"in t&&"x"in t&&"y"in t)return`(${t.x.toFixed(3)}, ${t.y.toFixed(3)}, ${t.z.toFixed(3)})`;if("x"in t&&"y"in t)return`(${t.x.toFixed(3)}, ${t.y.toFixed(3)})`;if("r"in t&&"g"in t&&"b"in t){const i="a"in t?`, ${t.a.toFixed(3)}`:"";return`(${t.r.toFixed(3)}, ${t.g.toFixed(3)}, ${t.b.toFixed(3)}${i})`}if("function"==typeof t.toString&&t.toString!==Object.prototype.toString)return t.toString()}try{const i=JSON.stringify(t);return i.length>64?i.substring(0,61)+"...":i}catch{return String(t)}}getClassName(){return"FlowGraphDebugBlock"}}let n=!1;function r(){n||(n=!0,e("FlowGraphDebugBlock",o))}r();export{o as FlowGraphDebugBlock,r as RegisterFlowGraphDebugBlock};
//# sourceMappingURL=flowGraphDebugBlock-CVryMKzo.esm.min.js.map