9c43fd94c4a37e142f40e3793ba0b4a18aa98fd175ad58fc5800d36524d16fa8.json 3.8 KB

1
  1. {"ast":null,"code":"import { SpriteManager } from \"./spriteManager.js\";\nimport { Texture } from \"../Materials/Textures/texture.js\";\n/**\n * Class used to manage multiple sprites of different sizes on the same spritesheet\n * @see https://doc.babylonjs.com/features/featuresDeepDive/sprites\n */\n/**\n *\n */\nexport class SpritePackedManager extends SpriteManager {\n /**\n * Creates a new sprite manager from a packed sprite sheet\n * @param name defines the manager's name\n * @param imgUrl defines the sprite sheet url\n * @param capacity defines the maximum allowed number of sprites\n * @param scene defines the hosting scene\n * @param spriteJSON null otherwise a JSON object defining sprite sheet data\n * @param epsilon defines the epsilon value to align texture (0.01 by default)\n * @param samplingMode defines the sampling mode to use with spritesheet\n * @param fromPacked set to true; do not alter\n * @param options options for the sprite manager\n */\n constructor( /** defines the packed manager's name */\n name, imgUrl, capacity, scene, spriteJSON = null, epsilon = 0.01, samplingMode = Texture.TRILINEAR_SAMPLINGMODE, options) {\n //the cellSize parameter is not used when built from JSON which provides individual cell data, defaults to 64 if JSON load fails\n super(name, imgUrl, capacity, 64, scene, epsilon, samplingMode, true, spriteJSON, options);\n this.name = name;\n }\n}","map":{"version":3,"names":["SpriteManager","Texture","SpritePackedManager","constructor","name","imgUrl","capacity","scene","spriteJSON","epsilon","samplingMode","TRILINEAR_SAMPLINGMODE","options"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/@babylonjs/core/Sprites/spritePackedManager.js"],"sourcesContent":["import { SpriteManager } from \"./spriteManager.js\";\nimport { Texture } from \"../Materials/Textures/texture.js\";\n/**\n * Class used to manage multiple sprites of different sizes on the same spritesheet\n * @see https://doc.babylonjs.com/features/featuresDeepDive/sprites\n */\n/**\n *\n */\nexport class SpritePackedManager extends SpriteManager {\n /**\n * Creates a new sprite manager from a packed sprite sheet\n * @param name defines the manager's name\n * @param imgUrl defines the sprite sheet url\n * @param capacity defines the maximum allowed number of sprites\n * @param scene defines the hosting scene\n * @param spriteJSON null otherwise a JSON object defining sprite sheet data\n * @param epsilon defines the epsilon value to align texture (0.01 by default)\n * @param samplingMode defines the sampling mode to use with spritesheet\n * @param fromPacked set to true; do not alter\n * @param options options for the sprite manager\n */\n constructor(\n /** defines the packed manager's name */\n name, imgUrl, capacity, scene, spriteJSON = null, epsilon = 0.01, samplingMode = Texture.TRILINEAR_SAMPLINGMODE, options) {\n //the cellSize parameter is not used when built from JSON which provides individual cell data, defaults to 64 if JSON load fails\n super(name, imgUrl, capacity, 64, scene, epsilon, samplingMode, true, spriteJSON, options);\n this.name = name;\n }\n}\n"],"mappings":"AAAA,SAASA,aAAa,QAAQ,oBAAoB;AAClD,SAASC,OAAO,QAAQ,kCAAkC;AAC1D;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,mBAAmB,SAASF,aAAa,CAAC;EACnD;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACIG,WAAWA,CAAA,CACX;EACAC,IAAI,EAAEC,MAAM,EAAEC,QAAQ,EAAEC,KAAK,EAAEC,UAAU,GAAG,IAAI,EAAEC,OAAO,GAAG,IAAI,EAAEC,YAAY,GAAGT,OAAO,CAACU,sBAAsB,EAAEC,OAAO,EAAE;IACtH;IACA,KAAK,CAACR,IAAI,EAAEC,MAAM,EAAEC,QAAQ,EAAE,EAAE,EAAEC,KAAK,EAAEE,OAAO,EAAEC,YAAY,EAAE,IAAI,EAAEF,UAAU,EAAEI,OAAO,CAAC;IAC1F,IAAI,CAACR,IAAI,GAAGA,IAAI;EACpB;AACJ","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}