@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) • 8.26 kB
JavaScript
import{F as t}from"./flowGraphCachedOperationBlock-CIvATd1Y.esm.min.js";import{l as e,m as a,n as u,o as i,i as s,p as n,f as p,q as r,d as l}from"./declarationMapper-D_filC93.esm.min.js";import{F as o}from"./KHR_interactivity-D4lwBSW9.esm.min.js";import{M as g,bc as c,V as h,b3 as V,u as _}from"./index-BPURObVq.esm.min.js";import"./objectModelMapping-ClgDmo5Q.esm.min.js";import"./spotLight.pure-5s2DDDIt.esm.min.js";class D extends t{constructor(t,e,a){super(e,a);for(let e=0;e<t;e++)this.registerDataInput(`input_${e}`,l,0)}}class I extends o{constructor(t,e,a){super(a),this.registerDataInput("input",e);for(let e=0;e<t;e++)this.registerDataOutput(`output_${e}`,l,0)}}class x extends D{constructor(t){super(2,r,t)}_doOperation(t){t._hasExecutionVariable(this,"cachedVector")||t._setExecutionVariable(this,"cachedVector",new V);const e=t._getExecutionVariable(this,"cachedVector",null);return e.set(this.getDataInput("input_0").getValue(t),this.getDataInput("input_1").getValue(t)),e}getClassName(){return"FlowGraphCombineVector2Block"}}class m extends D{constructor(t){super(3,p,t)}_doOperation(t){t._hasExecutionVariable(this,"cachedVector")||t._setExecutionVariable(this,"cachedVector",new h);const e=t._getExecutionVariable(this,"cachedVector",null);return e.set(this.getDataInput("input_0").getValue(t),this.getDataInput("input_1").getValue(t),this.getDataInput("input_2").getValue(t)),e}getClassName(){return"FlowGraphCombineVector3Block"}}class d extends D{constructor(t){super(4,n,t)}_doOperation(t){t._hasExecutionVariable(this,"cachedVector")||t._setExecutionVariable(this,"cachedVector",new c);const e=t._getExecutionVariable(this,"cachedVector",null);return e.set(this.getDataInput("input_0").getValue(t),this.getDataInput("input_1").getValue(t),this.getDataInput("input_2").getValue(t),this.getDataInput("input_3").getValue(t)),e}getClassName(){return"FlowGraphCombineVector4Block"}}class w extends D{constructor(t){super(16,s,t)}_doOperation(t){t._hasExecutionVariable(this,"cachedMatrix")||t._setExecutionVariable(this,"cachedMatrix",new g);const e=t._getExecutionVariable(this,"cachedMatrix",null);return this.config?.inputIsColumnMajor?e.set(this.getDataInput("input_0").getValue(t),this.getDataInput("input_4").getValue(t),this.getDataInput("input_8").getValue(t),this.getDataInput("input_12").getValue(t),this.getDataInput("input_1").getValue(t),this.getDataInput("input_5").getValue(t),this.getDataInput("input_9").getValue(t),this.getDataInput("input_13").getValue(t),this.getDataInput("input_2").getValue(t),this.getDataInput("input_6").getValue(t),this.getDataInput("input_10").getValue(t),this.getDataInput("input_14").getValue(t),this.getDataInput("input_3").getValue(t),this.getDataInput("input_7").getValue(t),this.getDataInput("input_11").getValue(t),this.getDataInput("input_15").getValue(t)):e.set(this.getDataInput("input_0").getValue(t),this.getDataInput("input_1").getValue(t),this.getDataInput("input_2").getValue(t),this.getDataInput("input_3").getValue(t),this.getDataInput("input_4").getValue(t),this.getDataInput("input_5").getValue(t),this.getDataInput("input_6").getValue(t),this.getDataInput("input_7").getValue(t),this.getDataInput("input_8").getValue(t),this.getDataInput("input_9").getValue(t),this.getDataInput("input_10").getValue(t),this.getDataInput("input_11").getValue(t),this.getDataInput("input_12").getValue(t),this.getDataInput("input_13").getValue(t),this.getDataInput("input_14").getValue(t),this.getDataInput("input_15").getValue(t)),e}getClassName(){return"FlowGraphCombineMatrixBlock"}}class b extends D{constructor(t){super(4,u,t)}_doOperation(t){t._hasExecutionVariable(this,"cachedMatrix")||t._setExecutionVariable(this,"cachedMatrix",new i);const e=t._getExecutionVariable(this,"cachedMatrix",null),a=this.config?.inputIsColumnMajor?[this.getDataInput("input_0").getValue(t),this.getDataInput("input_2").getValue(t),this.getDataInput("input_1").getValue(t),this.getDataInput("input_3").getValue(t)]:[this.getDataInput("input_0").getValue(t),this.getDataInput("input_1").getValue(t),this.getDataInput("input_2").getValue(t),this.getDataInput("input_3").getValue(t)];return e.fromArray(a),e}getClassName(){return"FlowGraphCombineMatrix2DBlock"}}class E extends D{constructor(t){super(9,e,t)}_doOperation(t){t._hasExecutionVariable(this,"cachedMatrix")||t._setExecutionVariable(this,"cachedMatrix",new a);const e=t._getExecutionVariable(this,"cachedMatrix",null),u=this.config?.inputIsColumnMajor?[this.getDataInput("input_0").getValue(t),this.getDataInput("input_3").getValue(t),this.getDataInput("input_6").getValue(t),this.getDataInput("input_1").getValue(t),this.getDataInput("input_4").getValue(t),this.getDataInput("input_7").getValue(t),this.getDataInput("input_2").getValue(t),this.getDataInput("input_5").getValue(t),this.getDataInput("input_8").getValue(t)]:[this.getDataInput("input_0").getValue(t),this.getDataInput("input_1").getValue(t),this.getDataInput("input_2").getValue(t),this.getDataInput("input_3").getValue(t),this.getDataInput("input_4").getValue(t),this.getDataInput("input_5").getValue(t),this.getDataInput("input_6").getValue(t),this.getDataInput("input_7").getValue(t),this.getDataInput("input_8").getValue(t)];return e.fromArray(u),e}getClassName(){return"FlowGraphCombineMatrix3DBlock"}}class C extends I{constructor(t){super(2,r,t)}_updateOutputs(t){let e=this.getDataInput("input")?.getValue(t);e||(e=V.Zero(),this.getDataInput("input").setValue(e,t)),this.getDataOutput("output_0").setValue(e.x,t),this.getDataOutput("output_1").setValue(e.y,t)}getClassName(){return"FlowGraphExtractVector2Block"}}class M extends I{constructor(t){super(3,p,t)}_updateOutputs(t){let e=this.getDataInput("input")?.getValue(t);e||(e=h.Zero(),this.getDataInput("input").setValue(e,t)),this.getDataOutput("output_0").setValue(e.x,t),this.getDataOutput("output_1").setValue(e.y,t),this.getDataOutput("output_2").setValue(e.z,t)}getClassName(){return"FlowGraphExtractVector3Block"}}class F extends I{constructor(t){super(4,n,t)}_updateOutputs(t){let e=this.getDataInput("input")?.getValue(t);e||(e=c.Zero(),this.getDataInput("input").setValue(e,t)),this.getDataOutput("output_0").setValue(e.x,t),this.getDataOutput("output_1").setValue(e.y,t),this.getDataOutput("output_2").setValue(e.z,t),this.getDataOutput("output_3").setValue(e.w,t)}getClassName(){return"FlowGraphExtractVector4Block"}}class O extends I{constructor(t){super(16,s,t)}_updateOutputs(t){let e=this.getDataInput("input")?.getValue(t);e||(e=g.Identity(),this.getDataInput("input").setValue(e,t));for(let a=0;a<16;a++)this.getDataOutput(`output_${a}`).setValue(e.m[a],t)}getClassName(){return"FlowGraphExtractMatrixBlock"}}class k extends I{constructor(t){super(4,u,t)}_updateOutputs(t){let e=this.getDataInput("input")?.getValue(t);e||(e=new i,this.getDataInput("input").setValue(e,t));for(let a=0;a<4;a++)this.getDataOutput(`output_${a}`).setValue(e.m[a],t)}getClassName(){return"FlowGraphExtractMatrix2DBlock"}}class B extends I{constructor(t){super(9,e,t)}_updateOutputs(t){let e=this.getDataInput("input")?.getValue(t);e||(e=new a,this.getDataInput("input").setValue(e,t));for(let a=0;a<9;a++)this.getDataOutput(`output_${a}`).setValue(e.m[a],t)}getClassName(){return"FlowGraphExtractMatrix3DBlock"}}let G=!1;function f(){G||(G=!0,_("FlowGraphCombineVector2Block",x),_("FlowGraphCombineVector3Block",m),_("FlowGraphCombineVector4Block",d),_("FlowGraphCombineMatrixBlock",w),_("FlowGraphCombineMatrix2DBlock",b),_("FlowGraphCombineMatrix3DBlock",E),_("FlowGraphExtractVector2Block",C),_("FlowGraphExtractVector3Block",M),_("FlowGraphExtractVector4Block",F),_("FlowGraphExtractMatrixBlock",O),_("FlowGraphExtractMatrix2DBlock",k),_("FlowGraphExtractMatrix3DBlock",B))}f();export{b as FlowGraphCombineMatrix2DBlock,E as FlowGraphCombineMatrix3DBlock,w as FlowGraphCombineMatrixBlock,x as FlowGraphCombineVector2Block,m as FlowGraphCombineVector3Block,d as FlowGraphCombineVector4Block,k as FlowGraphExtractMatrix2DBlock,B as FlowGraphExtractMatrix3DBlock,O as FlowGraphExtractMatrixBlock,C as FlowGraphExtractVector2Block,M as FlowGraphExtractVector3Block,F as FlowGraphExtractVector4Block,f as RegisterFlowGraphMathCombineExtractBlocks};
//# sourceMappingURL=flowGraphMathCombineExtractBlocks-D_RYQg0Z.esm.min.js.map