4474f004c3410e0cb11a740dba22c6f36407d6ccbfbe654e80d6125e3890f2e5.json 3.3 KB

1
  1. {"ast":null,"code":"import { FlowGraphCachedOperationBlock } from \"./flowGraphCachedOperationBlock.js\";\n/**\n * @experimental\n * The base block for all binary operation blocks. Receives an input of type\n * LeftT, one of type RightT, and outputs a value of type ResultT.\n */\nexport class FlowGraphBinaryOperationBlock extends FlowGraphCachedOperationBlock {\n constructor(leftRichType, rightRichType, resultRichType, _operation, _className, config) {\n super(resultRichType, config);\n this._operation = _operation;\n this._className = _className;\n this.a = this.registerDataInput(\"a\", leftRichType);\n this.b = this.registerDataInput(\"b\", rightRichType);\n }\n /**\n * the operation performed by this block\n * @param context the graph context\n * @returns the result of the operation\n */\n _doOperation(context) {\n return this._operation(this.a.getValue(context), this.b.getValue(context));\n }\n /**\n * Gets the class name of this block\n * @returns the class name\n */\n getClassName() {\n return this._className;\n }\n}","map":{"version":3,"names":["FlowGraphCachedOperationBlock","FlowGraphBinaryOperationBlock","constructor","leftRichType","rightRichType","resultRichType","_operation","_className","config","a","registerDataInput","b","_doOperation","context","getValue","getClassName"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/@babylonjs/core/FlowGraph/Blocks/Data/flowGraphBinaryOperationBlock.js"],"sourcesContent":["import { FlowGraphCachedOperationBlock } from \"./flowGraphCachedOperationBlock.js\";\n/**\n * @experimental\n * The base block for all binary operation blocks. Receives an input of type\n * LeftT, one of type RightT, and outputs a value of type ResultT.\n */\nexport class FlowGraphBinaryOperationBlock extends FlowGraphCachedOperationBlock {\n constructor(leftRichType, rightRichType, resultRichType, _operation, _className, config) {\n super(resultRichType, config);\n this._operation = _operation;\n this._className = _className;\n this.a = this.registerDataInput(\"a\", leftRichType);\n this.b = this.registerDataInput(\"b\", rightRichType);\n }\n /**\n * the operation performed by this block\n * @param context the graph context\n * @returns the result of the operation\n */\n _doOperation(context) {\n return this._operation(this.a.getValue(context), this.b.getValue(context));\n }\n /**\n * Gets the class name of this block\n * @returns the class name\n */\n getClassName() {\n return this._className;\n }\n}\n"],"mappings":"AAAA,SAASA,6BAA6B,QAAQ,oCAAoC;AAClF;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,6BAA6B,SAASD,6BAA6B,CAAC;EAC7EE,WAAWA,CAACC,YAAY,EAAEC,aAAa,EAAEC,cAAc,EAAEC,UAAU,EAAEC,UAAU,EAAEC,MAAM,EAAE;IACrF,KAAK,CAACH,cAAc,EAAEG,MAAM,CAAC;IAC7B,IAAI,CAACF,UAAU,GAAGA,UAAU;IAC5B,IAAI,CAACC,UAAU,GAAGA,UAAU;IAC5B,IAAI,CAACE,CAAC,GAAG,IAAI,CAACC,iBAAiB,CAAC,GAAG,EAAEP,YAAY,CAAC;IAClD,IAAI,CAACQ,CAAC,GAAG,IAAI,CAACD,iBAAiB,CAAC,GAAG,EAAEN,aAAa,CAAC;EACvD;EACA;AACJ;AACA;AACA;AACA;EACIQ,YAAYA,CAACC,OAAO,EAAE;IAClB,OAAO,IAAI,CAACP,UAAU,CAAC,IAAI,CAACG,CAAC,CAACK,QAAQ,CAACD,OAAO,CAAC,EAAE,IAAI,CAACF,CAAC,CAACG,QAAQ,CAACD,OAAO,CAAC,CAAC;EAC9E;EACA;AACJ;AACA;AACA;EACIE,YAAYA,CAAA,EAAG;IACX,OAAO,IAAI,CAACR,UAAU;EAC1B;AACJ","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}