1 |
- {"ast":null,"code":"import { RegisterClass } from \"../../../Misc/typeStore.js\";\nimport { BaseMathBlock } from \"./baseMathBlock.js\";\n/**\n * Block used to add 2 vectors\n */\nexport class AddBlock extends BaseMathBlock {\n /**\n * Creates a new AddBlock\n * @param name defines the block name\n */\n constructor(name) {\n super(name);\n }\n /**\n * Gets the current class name\n * @returns the class name\n */\n getClassName() {\n return \"AddBlock\";\n }\n _buildBlock(state) {\n super._buildBlock(state);\n const output = this._outputs[0];\n state.compilationString += state._declareOutput(output) + ` = ${this.left.associatedVariableName} + ${this.right.associatedVariableName};\\n`;\n return this;\n }\n}\nRegisterClass(\"BABYLON.AddBlock\", AddBlock);","map":{"version":3,"names":["RegisterClass","BaseMathBlock","AddBlock","constructor","name","getClassName","_buildBlock","state","output","_outputs","compilationString","_declareOutput","left","associatedVariableName","right"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/@babylonjs/core/Materials/Node/Blocks/addBlock.js"],"sourcesContent":["import { RegisterClass } from \"../../../Misc/typeStore.js\";\nimport { BaseMathBlock } from \"./baseMathBlock.js\";\n/**\n * Block used to add 2 vectors\n */\nexport class AddBlock extends BaseMathBlock {\n /**\n * Creates a new AddBlock\n * @param name defines the block name\n */\n constructor(name) {\n super(name);\n }\n /**\n * Gets the current class name\n * @returns the class name\n */\n getClassName() {\n return \"AddBlock\";\n }\n _buildBlock(state) {\n super._buildBlock(state);\n const output = this._outputs[0];\n state.compilationString += state._declareOutput(output) + ` = ${this.left.associatedVariableName} + ${this.right.associatedVariableName};\\n`;\n return this;\n }\n}\nRegisterClass(\"BABYLON.AddBlock\", AddBlock);\n"],"mappings":"AAAA,SAASA,aAAa,QAAQ,4BAA4B;AAC1D,SAASC,aAAa,QAAQ,oBAAoB;AAClD;AACA;AACA;AACA,OAAO,MAAMC,QAAQ,SAASD,aAAa,CAAC;EACxC;AACJ;AACA;AACA;EACIE,WAAWA,CAACC,IAAI,EAAE;IACd,KAAK,CAACA,IAAI,CAAC;EACf;EACA;AACJ;AACA;AACA;EACIC,YAAYA,CAAA,EAAG;IACX,OAAO,UAAU;EACrB;EACAC,WAAWA,CAACC,KAAK,EAAE;IACf,KAAK,CAACD,WAAW,CAACC,KAAK,CAAC;IACxB,MAAMC,MAAM,GAAG,IAAI,CAACC,QAAQ,CAAC,CAAC,CAAC;IAC/BF,KAAK,CAACG,iBAAiB,IAAIH,KAAK,CAACI,cAAc,CAACH,MAAM,CAAC,GAAG,MAAM,IAAI,CAACI,IAAI,CAACC,sBAAsB,MAAM,IAAI,CAACC,KAAK,CAACD,sBAAsB,KAAK;IAC5I,OAAO,IAAI;EACf;AACJ;AACAb,aAAa,CAAC,kBAAkB,EAAEE,QAAQ,CAAC","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}
|