1 |
- {"ast":null,"code":"import { FlowGraphExecutionBlockWithOutSignal } from \"../../../flowGraphExecutionBlockWithOutSignal.js\";\nimport { RichTypeAny } from \"../../../flowGraphRichTypes.js\";\nimport { RegisterClass } from \"../../../../Misc/typeStore.js\";\n/**\n * @experimental\n * Block that stops a running animation\n */\nexport class FlowGraphStopAnimationBlock extends FlowGraphExecutionBlockWithOutSignal {\n constructor(config) {\n super(config);\n this.animationToStop = this.registerDataInput(\"animationToStop\", RichTypeAny);\n }\n _execute(context) {\n const animationToStopValue = this.animationToStop.getValue(context);\n animationToStopValue.stop();\n this.out._activateSignal(context);\n }\n /**\n * @returns class name of the block.\n */\n getClassName() {\n return \"FGStopAnimationBlock\";\n }\n}\nRegisterClass(\"FGStopAnimationBlock\", FlowGraphStopAnimationBlock);","map":{"version":3,"names":["FlowGraphExecutionBlockWithOutSignal","RichTypeAny","RegisterClass","FlowGraphStopAnimationBlock","constructor","config","animationToStop","registerDataInput","_execute","context","animationToStopValue","getValue","stop","out","_activateSignal","getClassName"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/@babylonjs/core/FlowGraph/Blocks/Execution/Animation/flowGraphStopAnimationBlock.js"],"sourcesContent":["import { FlowGraphExecutionBlockWithOutSignal } from \"../../../flowGraphExecutionBlockWithOutSignal.js\";\nimport { RichTypeAny } from \"../../../flowGraphRichTypes.js\";\nimport { RegisterClass } from \"../../../../Misc/typeStore.js\";\n/**\n * @experimental\n * Block that stops a running animation\n */\nexport class FlowGraphStopAnimationBlock extends FlowGraphExecutionBlockWithOutSignal {\n constructor(config) {\n super(config);\n this.animationToStop = this.registerDataInput(\"animationToStop\", RichTypeAny);\n }\n _execute(context) {\n const animationToStopValue = this.animationToStop.getValue(context);\n animationToStopValue.stop();\n this.out._activateSignal(context);\n }\n /**\n * @returns class name of the block.\n */\n getClassName() {\n return \"FGStopAnimationBlock\";\n }\n}\nRegisterClass(\"FGStopAnimationBlock\", FlowGraphStopAnimationBlock);\n"],"mappings":"AAAA,SAASA,oCAAoC,QAAQ,kDAAkD;AACvG,SAASC,WAAW,QAAQ,gCAAgC;AAC5D,SAASC,aAAa,QAAQ,+BAA+B;AAC7D;AACA;AACA;AACA;AACA,OAAO,MAAMC,2BAA2B,SAASH,oCAAoC,CAAC;EAClFI,WAAWA,CAACC,MAAM,EAAE;IAChB,KAAK,CAACA,MAAM,CAAC;IACb,IAAI,CAACC,eAAe,GAAG,IAAI,CAACC,iBAAiB,CAAC,iBAAiB,EAAEN,WAAW,CAAC;EACjF;EACAO,QAAQA,CAACC,OAAO,EAAE;IACd,MAAMC,oBAAoB,GAAG,IAAI,CAACJ,eAAe,CAACK,QAAQ,CAACF,OAAO,CAAC;IACnEC,oBAAoB,CAACE,IAAI,CAAC,CAAC;IAC3B,IAAI,CAACC,GAAG,CAACC,eAAe,CAACL,OAAO,CAAC;EACrC;EACA;AACJ;AACA;EACIM,YAAYA,CAAA,EAAG;IACX,OAAO,sBAAsB;EACjC;AACJ;AACAb,aAAa,CAAC,sBAAsB,EAAEC,2BAA2B,CAAC","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}
|