1 |
- {"ast":null,"code":"import { NodeGeometryBlockConnectionPointTypes } from \"../../Enums/nodeGeometryConnectionPointTypes.js\";\nimport { NodeGeometryBlock } from \"../../nodeGeometryBlock.js\";\nimport { RegisterClass } from \"../../../../Misc/typeStore.js\";\n/**\n * Defines a block used to generate a null geometry data\n */\nexport class NullBlock extends NodeGeometryBlock {\n /**\n * Create a new NullBlock\n * @param name defines the block name\n */\n constructor(name) {\n super(name);\n this.registerOutput(\"geometry\", NodeGeometryBlockConnectionPointTypes.Geometry);\n this.registerOutput(\"vector\", NodeGeometryBlockConnectionPointTypes.Vector3);\n }\n /**\n * Gets the current class name\n * @returns the class name\n */\n getClassName() {\n return \"NullBlock\";\n }\n /**\n * Gets the geometry output component\n */\n get geometry() {\n return this._outputs[0];\n }\n /**\n * Gets the vector output component\n */\n get vector() {\n return this._outputs[1];\n }\n _buildBlock() {\n this.geometry._storedValue = null;\n this.vector._storedValue = null;\n }\n}\nRegisterClass(\"BABYLON.NullBlock\", NullBlock);","map":{"version":3,"names":["NodeGeometryBlockConnectionPointTypes","NodeGeometryBlock","RegisterClass","NullBlock","constructor","name","registerOutput","Geometry","Vector3","getClassName","geometry","_outputs","vector","_buildBlock","_storedValue"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/@babylonjs/core/Meshes/Node/Blocks/Sources/nullBlock.js"],"sourcesContent":["import { NodeGeometryBlockConnectionPointTypes } from \"../../Enums/nodeGeometryConnectionPointTypes.js\";\nimport { NodeGeometryBlock } from \"../../nodeGeometryBlock.js\";\nimport { RegisterClass } from \"../../../../Misc/typeStore.js\";\n/**\n * Defines a block used to generate a null geometry data\n */\nexport class NullBlock extends NodeGeometryBlock {\n /**\n * Create a new NullBlock\n * @param name defines the block name\n */\n constructor(name) {\n super(name);\n this.registerOutput(\"geometry\", NodeGeometryBlockConnectionPointTypes.Geometry);\n this.registerOutput(\"vector\", NodeGeometryBlockConnectionPointTypes.Vector3);\n }\n /**\n * Gets the current class name\n * @returns the class name\n */\n getClassName() {\n return \"NullBlock\";\n }\n /**\n * Gets the geometry output component\n */\n get geometry() {\n return this._outputs[0];\n }\n /**\n * Gets the vector output component\n */\n get vector() {\n return this._outputs[1];\n }\n _buildBlock() {\n this.geometry._storedValue = null;\n this.vector._storedValue = null;\n }\n}\nRegisterClass(\"BABYLON.NullBlock\", NullBlock);\n"],"mappings":"AAAA,SAASA,qCAAqC,QAAQ,iDAAiD;AACvG,SAASC,iBAAiB,QAAQ,4BAA4B;AAC9D,SAASC,aAAa,QAAQ,+BAA+B;AAC7D;AACA;AACA;AACA,OAAO,MAAMC,SAAS,SAASF,iBAAiB,CAAC;EAC7C;AACJ;AACA;AACA;EACIG,WAAWA,CAACC,IAAI,EAAE;IACd,KAAK,CAACA,IAAI,CAAC;IACX,IAAI,CAACC,cAAc,CAAC,UAAU,EAAEN,qCAAqC,CAACO,QAAQ,CAAC;IAC/E,IAAI,CAACD,cAAc,CAAC,QAAQ,EAAEN,qCAAqC,CAACQ,OAAO,CAAC;EAChF;EACA;AACJ;AACA;AACA;EACIC,YAAYA,CAAA,EAAG;IACX,OAAO,WAAW;EACtB;EACA;AACJ;AACA;EACI,IAAIC,QAAQA,CAAA,EAAG;IACX,OAAO,IAAI,CAACC,QAAQ,CAAC,CAAC,CAAC;EAC3B;EACA;AACJ;AACA;EACI,IAAIC,MAAMA,CAAA,EAAG;IACT,OAAO,IAAI,CAACD,QAAQ,CAAC,CAAC,CAAC;EAC3B;EACAE,WAAWA,CAAA,EAAG;IACV,IAAI,CAACH,QAAQ,CAACI,YAAY,GAAG,IAAI;IACjC,IAAI,CAACF,MAAM,CAACE,YAAY,GAAG,IAAI;EACnC;AACJ;AACAZ,aAAa,CAAC,mBAAmB,EAAEC,SAAS,CAAC","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}
|