1 |
- {"ast":null,"code":"import { FlowGraphCachedOperationBlock } from \"./flowGraphCachedOperationBlock.js\";\n/**\n * @experimental\n * The base block for all unary operation blocks. Receives an input of type InputT, and outputs a value of type ResultT.\n */\nexport class FlowGraphUnaryOperationBlock extends FlowGraphCachedOperationBlock {\n constructor(inputRichType, resultRichType, _operation, _className, config) {\n super(resultRichType, config);\n this._operation = _operation;\n this._className = _className;\n this.a = this.registerDataInput(\"a\", inputRichType);\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));\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","FlowGraphUnaryOperationBlock","constructor","inputRichType","resultRichType","_operation","_className","config","a","registerDataInput","_doOperation","context","getValue","getClassName"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/@babylonjs/core/FlowGraph/Blocks/Data/flowGraphUnaryOperationBlock.js"],"sourcesContent":["import { FlowGraphCachedOperationBlock } from \"./flowGraphCachedOperationBlock.js\";\n/**\n * @experimental\n * The base block for all unary operation blocks. Receives an input of type InputT, and outputs a value of type ResultT.\n */\nexport class FlowGraphUnaryOperationBlock extends FlowGraphCachedOperationBlock {\n constructor(inputRichType, resultRichType, _operation, _className, config) {\n super(resultRichType, config);\n this._operation = _operation;\n this._className = _className;\n this.a = this.registerDataInput(\"a\", inputRichType);\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));\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,OAAO,MAAMC,4BAA4B,SAASD,6BAA6B,CAAC;EAC5EE,WAAWA,CAACC,aAAa,EAAEC,cAAc,EAAEC,UAAU,EAAEC,UAAU,EAAEC,MAAM,EAAE;IACvE,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,EAAEN,aAAa,CAAC;EACvD;EACA;AACJ;AACA;AACA;AACA;EACIO,YAAYA,CAACC,OAAO,EAAE;IAClB,OAAO,IAAI,CAACN,UAAU,CAAC,IAAI,CAACG,CAAC,CAACI,QAAQ,CAACD,OAAO,CAAC,CAAC;EACpD;EACA;AACJ;AACA;AACA;EACIE,YAAYA,CAAA,EAAG;IACX,OAAO,IAAI,CAACP,UAAU;EAC1B;AACJ","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}
|