8cf2c811aea3842b9be913867b18d3e0f9f6eeb969f7a15a7ea2674c29378078.json 4.6 KB

1
  1. {"ast":null,"code":"import { RegisterClass } from \"../../../Misc/typeStore.js\";\nimport { NodeRenderGraphBlockConnectionPointTypes } from \"../Types/nodeRenderGraphTypes.js\";\nimport { NodeRenderGraphBlock } from \"../nodeRenderGraphBlock.js\";\n/**\n * Block used as a pass through\n */\nexport class NodeRenderGraphElbowBlock extends NodeRenderGraphBlock {\n /**\n * Creates a new NodeRenderGraphElbowBlock\n * @param name defines the block name\n * @param frameGraph defines the hosting frame graph\n * @param scene defines the hosting scene\n */\n constructor(name, frameGraph, scene) {\n super(name, frameGraph, scene);\n this.registerInput(\"input\", NodeRenderGraphBlockConnectionPointTypes.AutoDetect);\n this.registerOutput(\"output\", NodeRenderGraphBlockConnectionPointTypes.BasedOnInput);\n this._outputs[0]._typeConnectionSource = this._inputs[0];\n }\n /**\n * Gets the current class name\n * @returns the class name\n */\n getClassName() {\n return \"NodeRenderGraphElbowBlock\";\n }\n /**\n * Gets the input component\n */\n get input() {\n return this._inputs[0];\n }\n /**\n * Gets the output component\n */\n get output() {\n return this._outputs[0];\n }\n _buildBlock(state) {\n super._buildBlock(state);\n const output = this._outputs[0];\n const input = this._inputs[0];\n this._propagateInputValueToOutput(input, output);\n }\n}\nRegisterClass(\"BABYLON.NodeRenderGraphElbowBlock\", NodeRenderGraphElbowBlock);","map":{"version":3,"names":["RegisterClass","NodeRenderGraphBlockConnectionPointTypes","NodeRenderGraphBlock","NodeRenderGraphElbowBlock","constructor","name","frameGraph","scene","registerInput","AutoDetect","registerOutput","BasedOnInput","_outputs","_typeConnectionSource","_inputs","getClassName","input","output","_buildBlock","state","_propagateInputValueToOutput"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/@babylonjs/core/FrameGraph/Node/Blocks/elbowBlock.js"],"sourcesContent":["import { RegisterClass } from \"../../../Misc/typeStore.js\";\nimport { NodeRenderGraphBlockConnectionPointTypes } from \"../Types/nodeRenderGraphTypes.js\";\nimport { NodeRenderGraphBlock } from \"../nodeRenderGraphBlock.js\";\n/**\n * Block used as a pass through\n */\nexport class NodeRenderGraphElbowBlock extends NodeRenderGraphBlock {\n /**\n * Creates a new NodeRenderGraphElbowBlock\n * @param name defines the block name\n * @param frameGraph defines the hosting frame graph\n * @param scene defines the hosting scene\n */\n constructor(name, frameGraph, scene) {\n super(name, frameGraph, scene);\n this.registerInput(\"input\", NodeRenderGraphBlockConnectionPointTypes.AutoDetect);\n this.registerOutput(\"output\", NodeRenderGraphBlockConnectionPointTypes.BasedOnInput);\n this._outputs[0]._typeConnectionSource = this._inputs[0];\n }\n /**\n * Gets the current class name\n * @returns the class name\n */\n getClassName() {\n return \"NodeRenderGraphElbowBlock\";\n }\n /**\n * Gets the input component\n */\n get input() {\n return this._inputs[0];\n }\n /**\n * Gets the output component\n */\n get output() {\n return this._outputs[0];\n }\n _buildBlock(state) {\n super._buildBlock(state);\n const output = this._outputs[0];\n const input = this._inputs[0];\n this._propagateInputValueToOutput(input, output);\n }\n}\nRegisterClass(\"BABYLON.NodeRenderGraphElbowBlock\", NodeRenderGraphElbowBlock);\n"],"mappings":"AAAA,SAASA,aAAa,QAAQ,4BAA4B;AAC1D,SAASC,wCAAwC,QAAQ,kCAAkC;AAC3F,SAASC,oBAAoB,QAAQ,4BAA4B;AACjE;AACA;AACA;AACA,OAAO,MAAMC,yBAAyB,SAASD,oBAAoB,CAAC;EAChE;AACJ;AACA;AACA;AACA;AACA;EACIE,WAAWA,CAACC,IAAI,EAAEC,UAAU,EAAEC,KAAK,EAAE;IACjC,KAAK,CAACF,IAAI,EAAEC,UAAU,EAAEC,KAAK,CAAC;IAC9B,IAAI,CAACC,aAAa,CAAC,OAAO,EAAEP,wCAAwC,CAACQ,UAAU,CAAC;IAChF,IAAI,CAACC,cAAc,CAAC,QAAQ,EAAET,wCAAwC,CAACU,YAAY,CAAC;IACpF,IAAI,CAACC,QAAQ,CAAC,CAAC,CAAC,CAACC,qBAAqB,GAAG,IAAI,CAACC,OAAO,CAAC,CAAC,CAAC;EAC5D;EACA;AACJ;AACA;AACA;EACIC,YAAYA,CAAA,EAAG;IACX,OAAO,2BAA2B;EACtC;EACA;AACJ;AACA;EACI,IAAIC,KAAKA,CAAA,EAAG;IACR,OAAO,IAAI,CAACF,OAAO,CAAC,CAAC,CAAC;EAC1B;EACA;AACJ;AACA;EACI,IAAIG,MAAMA,CAAA,EAAG;IACT,OAAO,IAAI,CAACL,QAAQ,CAAC,CAAC,CAAC;EAC3B;EACAM,WAAWA,CAACC,KAAK,EAAE;IACf,KAAK,CAACD,WAAW,CAACC,KAAK,CAAC;IACxB,MAAMF,MAAM,GAAG,IAAI,CAACL,QAAQ,CAAC,CAAC,CAAC;IAC/B,MAAMI,KAAK,GAAG,IAAI,CAACF,OAAO,CAAC,CAAC,CAAC;IAC7B,IAAI,CAACM,4BAA4B,CAACJ,KAAK,EAAEC,MAAM,CAAC;EACpD;AACJ;AACAjB,aAAa,CAAC,mCAAmC,EAAEG,yBAAyB,CAAC","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}