{"ast":null,"code":"import { NodeMaterialConnectionPoint } from \"./nodeMaterialBlockConnectionPoint.js\";\n/**\n * Defines a connection point to be used for points with a custom object type\n */\nexport class NodeMaterialConnectionPointCustomObject extends NodeMaterialConnectionPoint {\n /**\n * Creates a new connection point\n * @param name defines the connection point name\n * @param ownerBlock defines the block hosting this connection point\n * @param direction defines the direction of the connection point\n * @param _blockType\n * @param _blockName\n */\n constructor(name, ownerBlock, direction,\n // @internal\n _blockType, _blockName) {\n super(name, ownerBlock, direction);\n this._blockType = _blockType;\n this._blockName = _blockName;\n this.needDualDirectionValidation = true;\n }\n /**\n * Gets a number indicating if the current point can be connected to another point\n * @param connectionPoint defines the other connection point\n * @returns a number defining the compatibility state\n */\n checkCompatibilityState(connectionPoint) {\n return connectionPoint instanceof NodeMaterialConnectionPointCustomObject && connectionPoint._blockName === this._blockName ? 0 /* NodeMaterialConnectionPointCompatibilityStates.Compatible */ : 1 /* NodeMaterialConnectionPointCompatibilityStates.TypeIncompatible */;\n }\n /**\n * Creates a block suitable to be used as an input for this input point.\n * If null is returned, a block based on the point type will be created.\n * @returns The returned string parameter is the name of the output point of NodeMaterialBlock (first parameter of the returned array) that can be connected to the input\n */\n createCustomInputBlock() {\n return [new this._blockType(this._blockName), this.name];\n }\n}","map":{"version":3,"names":["NodeMaterialConnectionPoint","NodeMaterialConnectionPointCustomObject","constructor","name","ownerBlock","direction","_blockType","_blockName","needDualDirectionValidation","checkCompatibilityState","connectionPoint","createCustomInputBlock"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/@babylonjs/core/Materials/Node/nodeMaterialConnectionPointCustomObject.js"],"sourcesContent":["import { NodeMaterialConnectionPoint } from \"./nodeMaterialBlockConnectionPoint.js\";\n/**\n * Defines a connection point to be used for points with a custom object type\n */\nexport class NodeMaterialConnectionPointCustomObject extends NodeMaterialConnectionPoint {\n /**\n * Creates a new connection point\n * @param name defines the connection point name\n * @param ownerBlock defines the block hosting this connection point\n * @param direction defines the direction of the connection point\n * @param _blockType\n * @param _blockName\n */\n constructor(name, ownerBlock, direction, \n // @internal\n _blockType, _blockName) {\n super(name, ownerBlock, direction);\n this._blockType = _blockType;\n this._blockName = _blockName;\n this.needDualDirectionValidation = true;\n }\n /**\n * Gets a number indicating if the current point can be connected to another point\n * @param connectionPoint defines the other connection point\n * @returns a number defining the compatibility state\n */\n checkCompatibilityState(connectionPoint) {\n return connectionPoint instanceof NodeMaterialConnectionPointCustomObject && connectionPoint._blockName === this._blockName\n ? 0 /* NodeMaterialConnectionPointCompatibilityStates.Compatible */\n : 1 /* NodeMaterialConnectionPointCompatibilityStates.TypeIncompatible */;\n }\n /**\n * Creates a block suitable to be used as an input for this input point.\n * If null is returned, a block based on the point type will be created.\n * @returns The returned string parameter is the name of the output point of NodeMaterialBlock (first parameter of the returned array) that can be connected to the input\n */\n createCustomInputBlock() {\n return [new this._blockType(this._blockName), this.name];\n }\n}\n"],"mappings":"AAAA,SAASA,2BAA2B,QAAQ,uCAAuC;AACnF;AACA;AACA;AACA,OAAO,MAAMC,uCAAuC,SAASD,2BAA2B,CAAC;EACrF;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;EACIE,WAAWA,CAACC,IAAI,EAAEC,UAAU,EAAEC,SAAS;EACvC;EACAC,UAAU,EAAEC,UAAU,EAAE;IACpB,KAAK,CAACJ,IAAI,EAAEC,UAAU,EAAEC,SAAS,CAAC;IAClC,IAAI,CAACC,UAAU,GAAGA,UAAU;IAC5B,IAAI,CAACC,UAAU,GAAGA,UAAU;IAC5B,IAAI,CAACC,2BAA2B,GAAG,IAAI;EAC3C;EACA;AACJ;AACA;AACA;AACA;EACIC,uBAAuBA,CAACC,eAAe,EAAE;IACrC,OAAOA,eAAe,YAAYT,uCAAuC,IAAIS,eAAe,CAACH,UAAU,KAAK,IAAI,CAACA,UAAU,GACrH,CAAC,CAAC,kEACF,CAAC,CAAC;EACZ;EACA;AACJ;AACA;AACA;AACA;EACII,sBAAsBA,CAAA,EAAG;IACrB,OAAO,CAAC,IAAI,IAAI,CAACL,UAAU,CAAC,IAAI,CAACC,UAAU,CAAC,EAAE,IAAI,CAACJ,IAAI,CAAC;EAC5D;AACJ","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}