Initial
This commit is contained in:
17
resources/app/node_modules/@pixi/assets/lib/cache/parsers/cacheTextureArray.js
generated
vendored
Normal file
17
resources/app/node_modules/@pixi/assets/lib/cache/parsers/cacheTextureArray.js
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
"use strict";
|
||||
var core = require("@pixi/core");
|
||||
const cacheTextureArray = {
|
||||
extension: core.ExtensionType.CacheParser,
|
||||
test: (asset) => Array.isArray(asset) && asset.every((t) => t instanceof core.Texture),
|
||||
getCacheableAssets: (keys, asset) => {
|
||||
const out = {};
|
||||
return keys.forEach((key) => {
|
||||
asset.forEach((item, i) => {
|
||||
out[key + (i === 0 ? "" : i + 1)] = item;
|
||||
});
|
||||
}), out;
|
||||
}
|
||||
};
|
||||
core.extensions.add(cacheTextureArray);
|
||||
exports.cacheTextureArray = cacheTextureArray;
|
||||
//# sourceMappingURL=cacheTextureArray.js.map
|
||||
1
resources/app/node_modules/@pixi/assets/lib/cache/parsers/cacheTextureArray.js.map
generated
vendored
Normal file
1
resources/app/node_modules/@pixi/assets/lib/cache/parsers/cacheTextureArray.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"cacheTextureArray.js","sources":["../../../src/cache/parsers/cacheTextureArray.ts"],"sourcesContent":["import { extensions, ExtensionType, Texture } from '@pixi/core';\n\nimport type { CacheParser } from '../CacheParser';\n\nexport const cacheTextureArray: CacheParser<Texture[]> = {\n extension: ExtensionType.CacheParser,\n\n test: (asset: any[]) => Array.isArray(asset) && asset.every((t) => t instanceof Texture),\n\n getCacheableAssets: (keys: string[], asset: Texture[]) =>\n {\n const out: Record<string, Texture> = {};\n\n keys.forEach((key: string) =>\n {\n asset.forEach((item: Texture, i: number) =>\n {\n out[key + (i === 0 ? '' : i + 1)] = item;\n });\n });\n\n return out;\n }\n};\n\nextensions.add(cacheTextureArray);\n"],"names":["ExtensionType","Texture","extensions"],"mappings":";;AAIO,MAAM,oBAA4C;AAAA,EACrD,WAAWA,KAAc,cAAA;AAAA,EAEzB,MAAM,CAAC,UAAiB,MAAM,QAAQ,KAAK,KAAK,MAAM,MAAM,CAAC,MAAM,aAAaC,KAAAA,OAAO;AAAA,EAEvF,oBAAoB,CAAC,MAAgB,UACrC;AACI,UAAM,MAA+B,CAAA;AAEhC,WAAA,KAAA,QAAQ,CAAC,QACd;AACU,YAAA,QAAQ,CAAC,MAAe,MAC9B;AACI,YAAI,OAAO,MAAM,IAAI,KAAK,IAAI,EAAE,IAAI;AAAA,MAAA,CACvC;AAAA,IACJ,CAAA,GAEM;AAAA,EACX;AACJ;AAEAC,KAAAA,WAAW,IAAI,iBAAiB;;"}
|
||||
18
resources/app/node_modules/@pixi/assets/lib/cache/parsers/cacheTextureArray.mjs
generated
vendored
Normal file
18
resources/app/node_modules/@pixi/assets/lib/cache/parsers/cacheTextureArray.mjs
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
import { ExtensionType, Texture, extensions } from "@pixi/core";
|
||||
const cacheTextureArray = {
|
||||
extension: ExtensionType.CacheParser,
|
||||
test: (asset) => Array.isArray(asset) && asset.every((t) => t instanceof Texture),
|
||||
getCacheableAssets: (keys, asset) => {
|
||||
const out = {};
|
||||
return keys.forEach((key) => {
|
||||
asset.forEach((item, i) => {
|
||||
out[key + (i === 0 ? "" : i + 1)] = item;
|
||||
});
|
||||
}), out;
|
||||
}
|
||||
};
|
||||
extensions.add(cacheTextureArray);
|
||||
export {
|
||||
cacheTextureArray
|
||||
};
|
||||
//# sourceMappingURL=cacheTextureArray.mjs.map
|
||||
1
resources/app/node_modules/@pixi/assets/lib/cache/parsers/cacheTextureArray.mjs.map
generated
vendored
Normal file
1
resources/app/node_modules/@pixi/assets/lib/cache/parsers/cacheTextureArray.mjs.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"cacheTextureArray.mjs","sources":["../../../src/cache/parsers/cacheTextureArray.ts"],"sourcesContent":["import { extensions, ExtensionType, Texture } from '@pixi/core';\n\nimport type { CacheParser } from '../CacheParser';\n\nexport const cacheTextureArray: CacheParser<Texture[]> = {\n extension: ExtensionType.CacheParser,\n\n test: (asset: any[]) => Array.isArray(asset) && asset.every((t) => t instanceof Texture),\n\n getCacheableAssets: (keys: string[], asset: Texture[]) =>\n {\n const out: Record<string, Texture> = {};\n\n keys.forEach((key: string) =>\n {\n asset.forEach((item: Texture, i: number) =>\n {\n out[key + (i === 0 ? '' : i + 1)] = item;\n });\n });\n\n return out;\n }\n};\n\nextensions.add(cacheTextureArray);\n"],"names":[],"mappings":";AAIO,MAAM,oBAA4C;AAAA,EACrD,WAAW,cAAc;AAAA,EAEzB,MAAM,CAAC,UAAiB,MAAM,QAAQ,KAAK,KAAK,MAAM,MAAM,CAAC,MAAM,aAAa,OAAO;AAAA,EAEvF,oBAAoB,CAAC,MAAgB,UACrC;AACI,UAAM,MAA+B,CAAA;AAEhC,WAAA,KAAA,QAAQ,CAAC,QACd;AACU,YAAA,QAAQ,CAAC,MAAe,MAC9B;AACI,YAAI,OAAO,MAAM,IAAI,KAAK,IAAI,EAAE,IAAI;AAAA,MAAA,CACvC;AAAA,IACJ,CAAA,GAEM;AAAA,EACX;AACJ;AAEA,WAAW,IAAI,iBAAiB;"}
|
||||
4
resources/app/node_modules/@pixi/assets/lib/cache/parsers/index.js
generated
vendored
Normal file
4
resources/app/node_modules/@pixi/assets/lib/cache/parsers/index.js
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
"use strict";
|
||||
var cacheTextureArray = require("./cacheTextureArray.js");
|
||||
exports.cacheTextureArray = cacheTextureArray.cacheTextureArray;
|
||||
//# sourceMappingURL=index.js.map
|
||||
1
resources/app/node_modules/@pixi/assets/lib/cache/parsers/index.js.map
generated
vendored
Normal file
1
resources/app/node_modules/@pixi/assets/lib/cache/parsers/index.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
|
||||
5
resources/app/node_modules/@pixi/assets/lib/cache/parsers/index.mjs
generated
vendored
Normal file
5
resources/app/node_modules/@pixi/assets/lib/cache/parsers/index.mjs
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
import { cacheTextureArray } from "./cacheTextureArray.mjs";
|
||||
export {
|
||||
cacheTextureArray
|
||||
};
|
||||
//# sourceMappingURL=index.mjs.map
|
||||
1
resources/app/node_modules/@pixi/assets/lib/cache/parsers/index.mjs.map
generated
vendored
Normal file
1
resources/app/node_modules/@pixi/assets/lib/cache/parsers/index.mjs.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
||||
Reference in New Issue
Block a user