8492f346f240d01ee0560ace8f94f430361ddddc4d93a341366db508752facb1.json 3.4 KB

1
  1. {"ast":null,"code":"import { FlowGraphExecutionBlockWithOutSignal } from \"../../flowGraphExecutionBlockWithOutSignal.js\";\nimport { RichTypeAny } from \"../../flowGraphRichTypes.js\";\nimport { RegisterClass } from \"../../../Misc/typeStore.js\";\nimport { Logger } from \"../../../Misc/logger.js\";\n/**\n * @experimental\n * Block that logs a message to the console.\n */\nexport class FlowGraphConsoleLogBlock extends FlowGraphExecutionBlockWithOutSignal {\n constructor(config) {\n super(config);\n this.message = this.registerDataInput(\"message\", RichTypeAny);\n }\n /**\n * @internal\n */\n _execute(context) {\n const messageValue = this.message.getValue(context);\n Logger.Log(messageValue);\n // activate the output flow block\n this.out._activateSignal(context);\n }\n /**\n * @returns class name of the block.\n */\n getClassName() {\n return FlowGraphConsoleLogBlock.ClassName;\n }\n}\n/**\n * the class name of the block.\n */\nFlowGraphConsoleLogBlock.ClassName = \"FGConsoleLogBlock\";\nRegisterClass(FlowGraphConsoleLogBlock.ClassName, FlowGraphConsoleLogBlock);","map":{"version":3,"names":["FlowGraphExecutionBlockWithOutSignal","RichTypeAny","RegisterClass","Logger","FlowGraphConsoleLogBlock","constructor","config","message","registerDataInput","_execute","context","messageValue","getValue","Log","out","_activateSignal","getClassName","ClassName"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/@babylonjs/core/FlowGraph/Blocks/Execution/flowGraphConsoleLogBlock.js"],"sourcesContent":["import { FlowGraphExecutionBlockWithOutSignal } from \"../../flowGraphExecutionBlockWithOutSignal.js\";\nimport { RichTypeAny } from \"../../flowGraphRichTypes.js\";\nimport { RegisterClass } from \"../../../Misc/typeStore.js\";\nimport { Logger } from \"../../../Misc/logger.js\";\n/**\n * @experimental\n * Block that logs a message to the console.\n */\nexport class FlowGraphConsoleLogBlock extends FlowGraphExecutionBlockWithOutSignal {\n constructor(config) {\n super(config);\n this.message = this.registerDataInput(\"message\", RichTypeAny);\n }\n /**\n * @internal\n */\n _execute(context) {\n const messageValue = this.message.getValue(context);\n Logger.Log(messageValue);\n // activate the output flow block\n this.out._activateSignal(context);\n }\n /**\n * @returns class name of the block.\n */\n getClassName() {\n return FlowGraphConsoleLogBlock.ClassName;\n }\n}\n/**\n * the class name of the block.\n */\nFlowGraphConsoleLogBlock.ClassName = \"FGConsoleLogBlock\";\nRegisterClass(FlowGraphConsoleLogBlock.ClassName, FlowGraphConsoleLogBlock);\n"],"mappings":"AAAA,SAASA,oCAAoC,QAAQ,+CAA+C;AACpG,SAASC,WAAW,QAAQ,6BAA6B;AACzD,SAASC,aAAa,QAAQ,4BAA4B;AAC1D,SAASC,MAAM,QAAQ,yBAAyB;AAChD;AACA;AACA;AACA;AACA,OAAO,MAAMC,wBAAwB,SAASJ,oCAAoC,CAAC;EAC/EK,WAAWA,CAACC,MAAM,EAAE;IAChB,KAAK,CAACA,MAAM,CAAC;IACb,IAAI,CAACC,OAAO,GAAG,IAAI,CAACC,iBAAiB,CAAC,SAAS,EAAEP,WAAW,CAAC;EACjE;EACA;AACJ;AACA;EACIQ,QAAQA,CAACC,OAAO,EAAE;IACd,MAAMC,YAAY,GAAG,IAAI,CAACJ,OAAO,CAACK,QAAQ,CAACF,OAAO,CAAC;IACnDP,MAAM,CAACU,GAAG,CAACF,YAAY,CAAC;IACxB;IACA,IAAI,CAACG,GAAG,CAACC,eAAe,CAACL,OAAO,CAAC;EACrC;EACA;AACJ;AACA;EACIM,YAAYA,CAAA,EAAG;IACX,OAAOZ,wBAAwB,CAACa,SAAS;EAC7C;AACJ;AACA;AACA;AACA;AACAb,wBAAwB,CAACa,SAAS,GAAG,mBAAmB;AACxDf,aAAa,CAACE,wBAAwB,CAACa,SAAS,EAAEb,wBAAwB,CAAC","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}