{"ast":null,"code":"import { NodeGeometryBlock } from \"../nodeGeometryBlock.js\";\nimport { RegisterClass } from \"../../../Misc/typeStore.js\";\nimport { NodeGeometryBlockConnectionPointTypes } from \"../Enums/nodeGeometryConnectionPointTypes.js\";\n/**\n * Block used to compose two matrices\n */\nexport class MatrixComposeBlock extends NodeGeometryBlock {\n /**\n * Create a new MatrixComposeBlock\n * @param name defines the block name\n */\n constructor(name) {\n super(name);\n this.registerInput(\"matrix0\", NodeGeometryBlockConnectionPointTypes.Matrix);\n this.registerInput(\"matrix1\", NodeGeometryBlockConnectionPointTypes.Matrix);\n this.registerOutput(\"output\", NodeGeometryBlockConnectionPointTypes.Matrix);\n }\n /**\n * Gets the current class name\n * @returns the class name\n */\n getClassName() {\n return \"MatrixComposeBlock\";\n }\n /**\n * Gets the matrix0 input component\n */\n get matrix0() {\n return this._inputs[0];\n }\n /**\n * Gets the matrix1 input component\n */\n get matrix1() {\n return this._inputs[1];\n }\n /**\n * Gets the output component\n */\n get output() {\n return this._outputs[0];\n }\n _buildBlock() {\n this.output._storedFunction = state => {\n if (!this.matrix0.isConnected || !this.matrix1.isConnected) {\n return null;\n }\n const matrix0 = this.matrix0.getConnectedValue(state);\n const matrix1 = this.matrix1.getConnectedValue(state);\n if (!matrix0 || !matrix1) {\n return null;\n }\n return matrix0.multiply(matrix1);\n };\n }\n}\nRegisterClass(\"BABYLON.MatrixComposeBlock\", MatrixComposeBlock);","map":{"version":3,"names":["NodeGeometryBlock","RegisterClass","NodeGeometryBlockConnectionPointTypes","MatrixComposeBlock","constructor","name","registerInput","Matrix","registerOutput","getClassName","matrix0","_inputs","matrix1","output","_outputs","_buildBlock","_storedFunction","state","isConnected","getConnectedValue","multiply"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/@babylonjs/core/Meshes/Node/Blocks/matrixComposeBlock.js"],"sourcesContent":["import { NodeGeometryBlock } from \"../nodeGeometryBlock.js\";\nimport { RegisterClass } from \"../../../Misc/typeStore.js\";\nimport { NodeGeometryBlockConnectionPointTypes } from \"../Enums/nodeGeometryConnectionPointTypes.js\";\n/**\n * Block used to compose two matrices\n */\nexport class MatrixComposeBlock extends NodeGeometryBlock {\n /**\n * Create a new MatrixComposeBlock\n * @param name defines the block name\n */\n constructor(name) {\n super(name);\n this.registerInput(\"matrix0\", NodeGeometryBlockConnectionPointTypes.Matrix);\n this.registerInput(\"matrix1\", NodeGeometryBlockConnectionPointTypes.Matrix);\n this.registerOutput(\"output\", NodeGeometryBlockConnectionPointTypes.Matrix);\n }\n /**\n * Gets the current class name\n * @returns the class name\n */\n getClassName() {\n return \"MatrixComposeBlock\";\n }\n /**\n * Gets the matrix0 input component\n */\n get matrix0() {\n return this._inputs[0];\n }\n /**\n * Gets the matrix1 input component\n */\n get matrix1() {\n return this._inputs[1];\n }\n /**\n * Gets the output component\n */\n get output() {\n return this._outputs[0];\n }\n _buildBlock() {\n this.output._storedFunction = (state) => {\n if (!this.matrix0.isConnected || !this.matrix1.isConnected) {\n return null;\n }\n const matrix0 = this.matrix0.getConnectedValue(state);\n const matrix1 = this.matrix1.getConnectedValue(state);\n if (!matrix0 || !matrix1) {\n return null;\n }\n return matrix0.multiply(matrix1);\n };\n }\n}\nRegisterClass(\"BABYLON.MatrixComposeBlock\", MatrixComposeBlock);\n"],"mappings":"AAAA,SAASA,iBAAiB,QAAQ,yBAAyB;AAC3D,SAASC,aAAa,QAAQ,4BAA4B;AAC1D,SAASC,qCAAqC,QAAQ,8CAA8C;AACpG;AACA;AACA;AACA,OAAO,MAAMC,kBAAkB,SAASH,iBAAiB,CAAC;EACtD;AACJ;AACA;AACA;EACII,WAAWA,CAACC,IAAI,EAAE;IACd,KAAK,CAACA,IAAI,CAAC;IACX,IAAI,CAACC,aAAa,CAAC,SAAS,EAAEJ,qCAAqC,CAACK,MAAM,CAAC;IAC3E,IAAI,CAACD,aAAa,CAAC,SAAS,EAAEJ,qCAAqC,CAACK,MAAM,CAAC;IAC3E,IAAI,CAACC,cAAc,CAAC,QAA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