sdfsdfs
This commit is contained in:
6
node_modules/pixi.js/lib/assets/detections/parsers/detectAvif.d.ts
generated
vendored
Normal file
6
node_modules/pixi.js/lib/assets/detections/parsers/detectAvif.d.ts
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
import type { FormatDetectionParser } from '../types';
|
||||
/**
|
||||
* Detects if the browser supports the AVIF image format.
|
||||
* @memberof assets
|
||||
*/
|
||||
export declare const detectAvif: FormatDetectionParser;
|
21
node_modules/pixi.js/lib/assets/detections/parsers/detectAvif.js
generated
vendored
Normal file
21
node_modules/pixi.js/lib/assets/detections/parsers/detectAvif.js
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
'use strict';
|
||||
|
||||
var Extensions = require('../../../extensions/Extensions.js');
|
||||
var testImageFormat = require('../utils/testImageFormat.js');
|
||||
|
||||
"use strict";
|
||||
const detectAvif = {
|
||||
extension: {
|
||||
type: Extensions.ExtensionType.DetectionParser,
|
||||
priority: 1
|
||||
},
|
||||
test: async () => testImageFormat.testImageFormat(
|
||||
// eslint-disable-next-line max-len
|
||||
"data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAAB0AAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAIAAAACAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQ0MAAAAABNjb2xybmNseAACAAIAAYAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAACVtZGF0EgAKCBgANogQEAwgMg8f8D///8WfhwB8+ErK42A="
|
||||
),
|
||||
add: async (formats) => [...formats, "avif"],
|
||||
remove: async (formats) => formats.filter((f) => f !== "avif")
|
||||
};
|
||||
|
||||
exports.detectAvif = detectAvif;
|
||||
//# sourceMappingURL=detectAvif.js.map
|
1
node_modules/pixi.js/lib/assets/detections/parsers/detectAvif.js.map
generated
vendored
Normal file
1
node_modules/pixi.js/lib/assets/detections/parsers/detectAvif.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"detectAvif.js","sources":["../../../../src/assets/detections/parsers/detectAvif.ts"],"sourcesContent":["import { ExtensionType } from '../../../extensions/Extensions';\nimport { testImageFormat } from '../utils/testImageFormat';\n\nimport type { FormatDetectionParser } from '../types';\n\n/**\n * Detects if the browser supports the AVIF image format.\n * @memberof assets\n */\nexport const detectAvif: FormatDetectionParser = {\n extension: {\n type: ExtensionType.DetectionParser,\n priority: 1,\n },\n test: async (): Promise<boolean> => testImageFormat(\n // eslint-disable-next-line max-len\n 'data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAAB0AAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAIAAAACAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQ0MAAAAABNjb2xybmNseAACAAIAAYAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAACVtZGF0EgAKCBgANogQEAwgMg8f8D///8WfhwB8+ErK42A='\n ),\n add: async (formats) => [...formats, 'avif'],\n remove: async (formats) => formats.filter((f) => f !== 'avif'),\n};\n"],"names":["ExtensionType","testImageFormat"],"mappings":";;;;;;AASO,MAAM,UAAoC,GAAA;AAAA,EAC7C,SAAW,EAAA;AAAA,IACP,MAAMA,wBAAc,CAAA,eAAA;AAAA,IACpB,QAAU,EAAA,CAAA;AAAA,GACd;AAAA,EACA,MAAM,YAA8BC,+BAAA;AAAA;AAAA,IAEhC,ybAAA;AAAA,GACJ;AAAA,EACA,KAAK,OAAO,OAAA,KAAY,CAAC,GAAG,SAAS,MAAM,CAAA;AAAA,EAC3C,MAAA,EAAQ,OAAO,OAAY,KAAA,OAAA,CAAQ,OAAO,CAAC,CAAA,KAAM,MAAM,MAAM,CAAA;AACjE;;;;"}
|
19
node_modules/pixi.js/lib/assets/detections/parsers/detectAvif.mjs
generated
vendored
Normal file
19
node_modules/pixi.js/lib/assets/detections/parsers/detectAvif.mjs
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
import { ExtensionType } from '../../../extensions/Extensions.mjs';
|
||||
import { testImageFormat } from '../utils/testImageFormat.mjs';
|
||||
|
||||
"use strict";
|
||||
const detectAvif = {
|
||||
extension: {
|
||||
type: ExtensionType.DetectionParser,
|
||||
priority: 1
|
||||
},
|
||||
test: async () => testImageFormat(
|
||||
// eslint-disable-next-line max-len
|
||||
"data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAAB0AAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAIAAAACAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQ0MAAAAABNjb2xybmNseAACAAIAAYAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAACVtZGF0EgAKCBgANogQEAwgMg8f8D///8WfhwB8+ErK42A="
|
||||
),
|
||||
add: async (formats) => [...formats, "avif"],
|
||||
remove: async (formats) => formats.filter((f) => f !== "avif")
|
||||
};
|
||||
|
||||
export { detectAvif };
|
||||
//# sourceMappingURL=detectAvif.mjs.map
|
1
node_modules/pixi.js/lib/assets/detections/parsers/detectAvif.mjs.map
generated
vendored
Normal file
1
node_modules/pixi.js/lib/assets/detections/parsers/detectAvif.mjs.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"detectAvif.mjs","sources":["../../../../src/assets/detections/parsers/detectAvif.ts"],"sourcesContent":["import { ExtensionType } from '../../../extensions/Extensions';\nimport { testImageFormat } from '../utils/testImageFormat';\n\nimport type { FormatDetectionParser } from '../types';\n\n/**\n * Detects if the browser supports the AVIF image format.\n * @memberof assets\n */\nexport const detectAvif: FormatDetectionParser = {\n extension: {\n type: ExtensionType.DetectionParser,\n priority: 1,\n },\n test: async (): Promise<boolean> => testImageFormat(\n // eslint-disable-next-line max-len\n 'data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAAB0AAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAIAAAACAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQ0MAAAAABNjb2xybmNseAACAAIAAYAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAACVtZGF0EgAKCBgANogQEAwgMg8f8D///8WfhwB8+ErK42A='\n ),\n add: async (formats) => [...formats, 'avif'],\n remove: async (formats) => formats.filter((f) => f !== 'avif'),\n};\n"],"names":[],"mappings":";;;;AASO,MAAM,UAAoC,GAAA;AAAA,EAC7C,SAAW,EAAA;AAAA,IACP,MAAM,aAAc,CAAA,eAAA;AAAA,IACpB,QAAU,EAAA,CAAA;AAAA,GACd;AAAA,EACA,MAAM,YAA8B,eAAA;AAAA;AAAA,IAEhC,ybAAA;AAAA,GACJ;AAAA,EACA,KAAK,OAAO,OAAA,KAAY,CAAC,GAAG,SAAS,MAAM,CAAA;AAAA,EAC3C,MAAA,EAAQ,OAAO,OAAY,KAAA,OAAA,CAAQ,OAAO,CAAC,CAAA,KAAM,MAAM,MAAM,CAAA;AACjE;;;;"}
|
6
node_modules/pixi.js/lib/assets/detections/parsers/detectDefaults.d.ts
generated
vendored
Normal file
6
node_modules/pixi.js/lib/assets/detections/parsers/detectDefaults.d.ts
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
import type { FormatDetectionParser } from '../types';
|
||||
/**
|
||||
* Adds some default image formats to the detection parser
|
||||
* @memberof assets
|
||||
*/
|
||||
export declare const detectDefaults: FormatDetectionParser;
|
18
node_modules/pixi.js/lib/assets/detections/parsers/detectDefaults.js
generated
vendored
Normal file
18
node_modules/pixi.js/lib/assets/detections/parsers/detectDefaults.js
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
'use strict';
|
||||
|
||||
var Extensions = require('../../../extensions/Extensions.js');
|
||||
|
||||
"use strict";
|
||||
const imageFormats = ["png", "jpg", "jpeg"];
|
||||
const detectDefaults = {
|
||||
extension: {
|
||||
type: Extensions.ExtensionType.DetectionParser,
|
||||
priority: -1
|
||||
},
|
||||
test: () => Promise.resolve(true),
|
||||
add: async (formats) => [...formats, ...imageFormats],
|
||||
remove: async (formats) => formats.filter((f) => !imageFormats.includes(f))
|
||||
};
|
||||
|
||||
exports.detectDefaults = detectDefaults;
|
||||
//# sourceMappingURL=detectDefaults.js.map
|
1
node_modules/pixi.js/lib/assets/detections/parsers/detectDefaults.js.map
generated
vendored
Normal file
1
node_modules/pixi.js/lib/assets/detections/parsers/detectDefaults.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"detectDefaults.js","sources":["../../../../src/assets/detections/parsers/detectDefaults.ts"],"sourcesContent":["import { ExtensionType } from '../../../extensions/Extensions';\n\nimport type { FormatDetectionParser } from '../types';\n\nconst imageFormats = ['png', 'jpg', 'jpeg'];\n\n/**\n * Adds some default image formats to the detection parser\n * @memberof assets\n */\nexport const detectDefaults = {\n extension: {\n type: ExtensionType.DetectionParser,\n priority: -1,\n },\n test: (): Promise<boolean> => Promise.resolve(true),\n add: async (formats) => [...formats, ...imageFormats],\n remove: async (formats) => formats.filter((f) => !imageFormats.includes(f)),\n} as FormatDetectionParser;\n"],"names":["ExtensionType"],"mappings":";;;;;AAIA,MAAM,YAAe,GAAA,CAAC,KAAO,EAAA,KAAA,EAAO,MAAM,CAAA,CAAA;AAMnC,MAAM,cAAiB,GAAA;AAAA,EAC1B,SAAW,EAAA;AAAA,IACP,MAAMA,wBAAc,CAAA,eAAA;AAAA,IACpB,QAAU,EAAA,CAAA,CAAA;AAAA,GACd;AAAA,EACA,IAAM,EAAA,MAAwB,OAAQ,CAAA,OAAA,CAAQ,IAAI,CAAA;AAAA,EAClD,KAAK,OAAO,OAAA,KAAY,CAAC,GAAG,OAAA,EAAS,GAAG,YAAY,CAAA;AAAA,EACpD,MAAA,EAAQ,OAAO,OAAA,KAAY,OAAQ,CAAA,MAAA,CAAO,CAAC,CAAA,KAAM,CAAC,YAAA,CAAa,QAAS,CAAA,CAAC,CAAC,CAAA;AAC9E;;;;"}
|
16
node_modules/pixi.js/lib/assets/detections/parsers/detectDefaults.mjs
generated
vendored
Normal file
16
node_modules/pixi.js/lib/assets/detections/parsers/detectDefaults.mjs
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
import { ExtensionType } from '../../../extensions/Extensions.mjs';
|
||||
|
||||
"use strict";
|
||||
const imageFormats = ["png", "jpg", "jpeg"];
|
||||
const detectDefaults = {
|
||||
extension: {
|
||||
type: ExtensionType.DetectionParser,
|
||||
priority: -1
|
||||
},
|
||||
test: () => Promise.resolve(true),
|
||||
add: async (formats) => [...formats, ...imageFormats],
|
||||
remove: async (formats) => formats.filter((f) => !imageFormats.includes(f))
|
||||
};
|
||||
|
||||
export { detectDefaults };
|
||||
//# sourceMappingURL=detectDefaults.mjs.map
|
1
node_modules/pixi.js/lib/assets/detections/parsers/detectDefaults.mjs.map
generated
vendored
Normal file
1
node_modules/pixi.js/lib/assets/detections/parsers/detectDefaults.mjs.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"detectDefaults.mjs","sources":["../../../../src/assets/detections/parsers/detectDefaults.ts"],"sourcesContent":["import { ExtensionType } from '../../../extensions/Extensions';\n\nimport type { FormatDetectionParser } from '../types';\n\nconst imageFormats = ['png', 'jpg', 'jpeg'];\n\n/**\n * Adds some default image formats to the detection parser\n * @memberof assets\n */\nexport const detectDefaults = {\n extension: {\n type: ExtensionType.DetectionParser,\n priority: -1,\n },\n test: (): Promise<boolean> => Promise.resolve(true),\n add: async (formats) => [...formats, ...imageFormats],\n remove: async (formats) => formats.filter((f) => !imageFormats.includes(f)),\n} as FormatDetectionParser;\n"],"names":[],"mappings":";;;AAIA,MAAM,YAAe,GAAA,CAAC,KAAO,EAAA,KAAA,EAAO,MAAM,CAAA,CAAA;AAMnC,MAAM,cAAiB,GAAA;AAAA,EAC1B,SAAW,EAAA;AAAA,IACP,MAAM,aAAc,CAAA,eAAA;AAAA,IACpB,QAAU,EAAA,CAAA,CAAA;AAAA,GACd;AAAA,EACA,IAAM,EAAA,MAAwB,OAAQ,CAAA,OAAA,CAAQ,IAAI,CAAA;AAAA,EAClD,KAAK,OAAO,OAAA,KAAY,CAAC,GAAG,OAAA,EAAS,GAAG,YAAY,CAAA;AAAA,EACpD,MAAA,EAAQ,OAAO,OAAA,KAAY,OAAQ,CAAA,MAAA,CAAO,CAAC,CAAA,KAAM,CAAC,YAAA,CAAa,QAAS,CAAA,CAAC,CAAC,CAAA;AAC9E;;;;"}
|
6
node_modules/pixi.js/lib/assets/detections/parsers/detectMp4.d.ts
generated
vendored
Normal file
6
node_modules/pixi.js/lib/assets/detections/parsers/detectMp4.d.ts
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
import type { FormatDetectionParser } from '../types';
|
||||
/**
|
||||
* Detects if the browser supports the MP4 video format.
|
||||
* @memberof assets
|
||||
*/
|
||||
export declare const detectMp4: FormatDetectionParser;
|
18
node_modules/pixi.js/lib/assets/detections/parsers/detectMp4.js
generated
vendored
Normal file
18
node_modules/pixi.js/lib/assets/detections/parsers/detectMp4.js
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
'use strict';
|
||||
|
||||
var Extensions = require('../../../extensions/Extensions.js');
|
||||
var testVideoFormat = require('../utils/testVideoFormat.js');
|
||||
|
||||
"use strict";
|
||||
const detectMp4 = {
|
||||
extension: {
|
||||
type: Extensions.ExtensionType.DetectionParser,
|
||||
priority: 0
|
||||
},
|
||||
test: async () => testVideoFormat.testVideoFormat("video/mp4"),
|
||||
add: async (formats) => [...formats, "mp4", "m4v"],
|
||||
remove: async (formats) => formats.filter((f) => f !== "mp4" && f !== "m4v")
|
||||
};
|
||||
|
||||
exports.detectMp4 = detectMp4;
|
||||
//# sourceMappingURL=detectMp4.js.map
|
1
node_modules/pixi.js/lib/assets/detections/parsers/detectMp4.js.map
generated
vendored
Normal file
1
node_modules/pixi.js/lib/assets/detections/parsers/detectMp4.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"detectMp4.js","sources":["../../../../src/assets/detections/parsers/detectMp4.ts"],"sourcesContent":["import { ExtensionType } from '../../../extensions/Extensions';\nimport { testVideoFormat } from '../utils/testVideoFormat';\n\nimport type { FormatDetectionParser } from '../types';\n\n/**\n * Detects if the browser supports the MP4 video format.\n * @memberof assets\n */\nexport const detectMp4 = {\n extension: {\n type: ExtensionType.DetectionParser,\n priority: 0,\n },\n test: async (): Promise<boolean> => testVideoFormat('video/mp4'),\n add: async (formats) => [...formats, 'mp4', 'm4v'],\n remove: async (formats) => formats.filter((f) => f !== 'mp4' && f !== 'm4v'),\n} as FormatDetectionParser;\n"],"names":["ExtensionType","testVideoFormat"],"mappings":";;;;;;AASO,MAAM,SAAY,GAAA;AAAA,EACrB,SAAW,EAAA;AAAA,IACP,MAAMA,wBAAc,CAAA,eAAA;AAAA,IACpB,QAAU,EAAA,CAAA;AAAA,GACd;AAAA,EACA,IAAA,EAAM,YAA8BC,+BAAA,CAAgB,WAAW,CAAA;AAAA,EAC/D,KAAK,OAAO,OAAA,KAAY,CAAC,GAAG,OAAA,EAAS,OAAO,KAAK,CAAA;AAAA,EACjD,MAAA,EAAQ,OAAO,OAAA,KAAY,OAAQ,CAAA,MAAA,CAAO,CAAC,CAAM,KAAA,CAAA,KAAM,KAAS,IAAA,CAAA,KAAM,KAAK,CAAA;AAC/E;;;;"}
|
16
node_modules/pixi.js/lib/assets/detections/parsers/detectMp4.mjs
generated
vendored
Normal file
16
node_modules/pixi.js/lib/assets/detections/parsers/detectMp4.mjs
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
import { ExtensionType } from '../../../extensions/Extensions.mjs';
|
||||
import { testVideoFormat } from '../utils/testVideoFormat.mjs';
|
||||
|
||||
"use strict";
|
||||
const detectMp4 = {
|
||||
extension: {
|
||||
type: ExtensionType.DetectionParser,
|
||||
priority: 0
|
||||
},
|
||||
test: async () => testVideoFormat("video/mp4"),
|
||||
add: async (formats) => [...formats, "mp4", "m4v"],
|
||||
remove: async (formats) => formats.filter((f) => f !== "mp4" && f !== "m4v")
|
||||
};
|
||||
|
||||
export { detectMp4 };
|
||||
//# sourceMappingURL=detectMp4.mjs.map
|
1
node_modules/pixi.js/lib/assets/detections/parsers/detectMp4.mjs.map
generated
vendored
Normal file
1
node_modules/pixi.js/lib/assets/detections/parsers/detectMp4.mjs.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"detectMp4.mjs","sources":["../../../../src/assets/detections/parsers/detectMp4.ts"],"sourcesContent":["import { ExtensionType } from '../../../extensions/Extensions';\nimport { testVideoFormat } from '../utils/testVideoFormat';\n\nimport type { FormatDetectionParser } from '../types';\n\n/**\n * Detects if the browser supports the MP4 video format.\n * @memberof assets\n */\nexport const detectMp4 = {\n extension: {\n type: ExtensionType.DetectionParser,\n priority: 0,\n },\n test: async (): Promise<boolean> => testVideoFormat('video/mp4'),\n add: async (formats) => [...formats, 'mp4', 'm4v'],\n remove: async (formats) => formats.filter((f) => f !== 'mp4' && f !== 'm4v'),\n} as FormatDetectionParser;\n"],"names":[],"mappings":";;;;AASO,MAAM,SAAY,GAAA;AAAA,EACrB,SAAW,EAAA;AAAA,IACP,MAAM,aAAc,CAAA,eAAA;AAAA,IACpB,QAAU,EAAA,CAAA;AAAA,GACd;AAAA,EACA,IAAA,EAAM,YAA8B,eAAA,CAAgB,WAAW,CAAA;AAAA,EAC/D,KAAK,OAAO,OAAA,KAAY,CAAC,GAAG,OAAA,EAAS,OAAO,KAAK,CAAA;AAAA,EACjD,MAAA,EAAQ,OAAO,OAAA,KAAY,OAAQ,CAAA,MAAA,CAAO,CAAC,CAAM,KAAA,CAAA,KAAM,KAAS,IAAA,CAAA,KAAM,KAAK,CAAA;AAC/E;;;;"}
|
6
node_modules/pixi.js/lib/assets/detections/parsers/detectOgv.d.ts
generated
vendored
Normal file
6
node_modules/pixi.js/lib/assets/detections/parsers/detectOgv.d.ts
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
import type { FormatDetectionParser } from '../types';
|
||||
/**
|
||||
* Detects if the browser supports the OGV video format.
|
||||
* @memberof assets
|
||||
*/
|
||||
export declare const detectOgv: FormatDetectionParser;
|
18
node_modules/pixi.js/lib/assets/detections/parsers/detectOgv.js
generated
vendored
Normal file
18
node_modules/pixi.js/lib/assets/detections/parsers/detectOgv.js
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
'use strict';
|
||||
|
||||
var Extensions = require('../../../extensions/Extensions.js');
|
||||
var testVideoFormat = require('../utils/testVideoFormat.js');
|
||||
|
||||
"use strict";
|
||||
const detectOgv = {
|
||||
extension: {
|
||||
type: Extensions.ExtensionType.DetectionParser,
|
||||
priority: 0
|
||||
},
|
||||
test: async () => testVideoFormat.testVideoFormat("video/ogg"),
|
||||
add: async (formats) => [...formats, "ogv"],
|
||||
remove: async (formats) => formats.filter((f) => f !== "ogv")
|
||||
};
|
||||
|
||||
exports.detectOgv = detectOgv;
|
||||
//# sourceMappingURL=detectOgv.js.map
|
1
node_modules/pixi.js/lib/assets/detections/parsers/detectOgv.js.map
generated
vendored
Normal file
1
node_modules/pixi.js/lib/assets/detections/parsers/detectOgv.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"detectOgv.js","sources":["../../../../src/assets/detections/parsers/detectOgv.ts"],"sourcesContent":["import { ExtensionType } from '../../../extensions/Extensions';\nimport { testVideoFormat } from '../utils/testVideoFormat';\n\nimport type { FormatDetectionParser } from '../types';\n\n/**\n * Detects if the browser supports the OGV video format.\n * @memberof assets\n */\nexport const detectOgv = {\n extension: {\n type: ExtensionType.DetectionParser,\n priority: 0,\n },\n test: async (): Promise<boolean> => testVideoFormat('video/ogg'),\n add: async (formats) => [...formats, 'ogv'],\n remove: async (formats) => formats.filter((f) => f !== 'ogv'),\n} as FormatDetectionParser;\n"],"names":["ExtensionType","testVideoFormat"],"mappings":";;;;;;AASO,MAAM,SAAY,GAAA;AAAA,EACrB,SAAW,EAAA;AAAA,IACP,MAAMA,wBAAc,CAAA,eAAA;AAAA,IACpB,QAAU,EAAA,CAAA;AAAA,GACd;AAAA,EACA,IAAA,EAAM,YAA8BC,+BAAA,CAAgB,WAAW,CAAA;AAAA,EAC/D,KAAK,OAAO,OAAA,KAAY,CAAC,GAAG,SAAS,KAAK,CAAA;AAAA,EAC1C,MAAA,EAAQ,OAAO,OAAY,KAAA,OAAA,CAAQ,OAAO,CAAC,CAAA,KAAM,MAAM,KAAK,CAAA;AAChE;;;;"}
|
16
node_modules/pixi.js/lib/assets/detections/parsers/detectOgv.mjs
generated
vendored
Normal file
16
node_modules/pixi.js/lib/assets/detections/parsers/detectOgv.mjs
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
import { ExtensionType } from '../../../extensions/Extensions.mjs';
|
||||
import { testVideoFormat } from '../utils/testVideoFormat.mjs';
|
||||
|
||||
"use strict";
|
||||
const detectOgv = {
|
||||
extension: {
|
||||
type: ExtensionType.DetectionParser,
|
||||
priority: 0
|
||||
},
|
||||
test: async () => testVideoFormat("video/ogg"),
|
||||
add: async (formats) => [...formats, "ogv"],
|
||||
remove: async (formats) => formats.filter((f) => f !== "ogv")
|
||||
};
|
||||
|
||||
export { detectOgv };
|
||||
//# sourceMappingURL=detectOgv.mjs.map
|
1
node_modules/pixi.js/lib/assets/detections/parsers/detectOgv.mjs.map
generated
vendored
Normal file
1
node_modules/pixi.js/lib/assets/detections/parsers/detectOgv.mjs.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"detectOgv.mjs","sources":["../../../../src/assets/detections/parsers/detectOgv.ts"],"sourcesContent":["import { ExtensionType } from '../../../extensions/Extensions';\nimport { testVideoFormat } from '../utils/testVideoFormat';\n\nimport type { FormatDetectionParser } from '../types';\n\n/**\n * Detects if the browser supports the OGV video format.\n * @memberof assets\n */\nexport const detectOgv = {\n extension: {\n type: ExtensionType.DetectionParser,\n priority: 0,\n },\n test: async (): Promise<boolean> => testVideoFormat('video/ogg'),\n add: async (formats) => [...formats, 'ogv'],\n remove: async (formats) => formats.filter((f) => f !== 'ogv'),\n} as FormatDetectionParser;\n"],"names":[],"mappings":";;;;AASO,MAAM,SAAY,GAAA;AAAA,EACrB,SAAW,EAAA;AAAA,IACP,MAAM,aAAc,CAAA,eAAA;AAAA,IACpB,QAAU,EAAA,CAAA;AAAA,GACd;AAAA,EACA,IAAA,EAAM,YAA8B,eAAA,CAAgB,WAAW,CAAA;AAAA,EAC/D,KAAK,OAAO,OAAA,KAAY,CAAC,GAAG,SAAS,KAAK,CAAA;AAAA,EAC1C,MAAA,EAAQ,OAAO,OAAY,KAAA,OAAA,CAAQ,OAAO,CAAC,CAAA,KAAM,MAAM,KAAK,CAAA;AAChE;;;;"}
|
6
node_modules/pixi.js/lib/assets/detections/parsers/detectWebm.d.ts
generated
vendored
Normal file
6
node_modules/pixi.js/lib/assets/detections/parsers/detectWebm.d.ts
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
import type { FormatDetectionParser } from '../types';
|
||||
/**
|
||||
* Detects if the browser supports the WebM video format.
|
||||
* @memberof assets
|
||||
*/
|
||||
export declare const detectWebm: FormatDetectionParser;
|
18
node_modules/pixi.js/lib/assets/detections/parsers/detectWebm.js
generated
vendored
Normal file
18
node_modules/pixi.js/lib/assets/detections/parsers/detectWebm.js
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
'use strict';
|
||||
|
||||
var Extensions = require('../../../extensions/Extensions.js');
|
||||
var testVideoFormat = require('../utils/testVideoFormat.js');
|
||||
|
||||
"use strict";
|
||||
const detectWebm = {
|
||||
extension: {
|
||||
type: Extensions.ExtensionType.DetectionParser,
|
||||
priority: 0
|
||||
},
|
||||
test: async () => testVideoFormat.testVideoFormat("video/webm"),
|
||||
add: async (formats) => [...formats, "webm"],
|
||||
remove: async (formats) => formats.filter((f) => f !== "webm")
|
||||
};
|
||||
|
||||
exports.detectWebm = detectWebm;
|
||||
//# sourceMappingURL=detectWebm.js.map
|
1
node_modules/pixi.js/lib/assets/detections/parsers/detectWebm.js.map
generated
vendored
Normal file
1
node_modules/pixi.js/lib/assets/detections/parsers/detectWebm.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"detectWebm.js","sources":["../../../../src/assets/detections/parsers/detectWebm.ts"],"sourcesContent":["import { ExtensionType } from '../../../extensions/Extensions';\nimport { testVideoFormat } from '../utils/testVideoFormat';\n\nimport type { FormatDetectionParser } from '../types';\n\n/**\n * Detects if the browser supports the WebM video format.\n * @memberof assets\n */\nexport const detectWebm = {\n extension: {\n type: ExtensionType.DetectionParser,\n priority: 0,\n },\n test: async (): Promise<boolean> => testVideoFormat('video/webm'),\n add: async (formats) => [...formats, 'webm'],\n remove: async (formats) => formats.filter((f) => f !== 'webm'),\n} as FormatDetectionParser;\n"],"names":["ExtensionType","testVideoFormat"],"mappings":";;;;;;AASO,MAAM,UAAa,GAAA;AAAA,EACtB,SAAW,EAAA;AAAA,IACP,MAAMA,wBAAc,CAAA,eAAA;AAAA,IACpB,QAAU,EAAA,CAAA;AAAA,GACd;AAAA,EACA,IAAA,EAAM,YAA8BC,+BAAA,CAAgB,YAAY,CAAA;AAAA,EAChE,KAAK,OAAO,OAAA,KAAY,CAAC,GAAG,SAAS,MAAM,CAAA;AAAA,EAC3C,MAAA,EAAQ,OAAO,OAAY,KAAA,OAAA,CAAQ,OAAO,CAAC,CAAA,KAAM,MAAM,MAAM,CAAA;AACjE;;;;"}
|
16
node_modules/pixi.js/lib/assets/detections/parsers/detectWebm.mjs
generated
vendored
Normal file
16
node_modules/pixi.js/lib/assets/detections/parsers/detectWebm.mjs
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
import { ExtensionType } from '../../../extensions/Extensions.mjs';
|
||||
import { testVideoFormat } from '../utils/testVideoFormat.mjs';
|
||||
|
||||
"use strict";
|
||||
const detectWebm = {
|
||||
extension: {
|
||||
type: ExtensionType.DetectionParser,
|
||||
priority: 0
|
||||
},
|
||||
test: async () => testVideoFormat("video/webm"),
|
||||
add: async (formats) => [...formats, "webm"],
|
||||
remove: async (formats) => formats.filter((f) => f !== "webm")
|
||||
};
|
||||
|
||||
export { detectWebm };
|
||||
//# sourceMappingURL=detectWebm.mjs.map
|
1
node_modules/pixi.js/lib/assets/detections/parsers/detectWebm.mjs.map
generated
vendored
Normal file
1
node_modules/pixi.js/lib/assets/detections/parsers/detectWebm.mjs.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"detectWebm.mjs","sources":["../../../../src/assets/detections/parsers/detectWebm.ts"],"sourcesContent":["import { ExtensionType } from '../../../extensions/Extensions';\nimport { testVideoFormat } from '../utils/testVideoFormat';\n\nimport type { FormatDetectionParser } from '../types';\n\n/**\n * Detects if the browser supports the WebM video format.\n * @memberof assets\n */\nexport const detectWebm = {\n extension: {\n type: ExtensionType.DetectionParser,\n priority: 0,\n },\n test: async (): Promise<boolean> => testVideoFormat('video/webm'),\n add: async (formats) => [...formats, 'webm'],\n remove: async (formats) => formats.filter((f) => f !== 'webm'),\n} as FormatDetectionParser;\n"],"names":[],"mappings":";;;;AASO,MAAM,UAAa,GAAA;AAAA,EACtB,SAAW,EAAA;AAAA,IACP,MAAM,aAAc,CAAA,eAAA;AAAA,IACpB,QAAU,EAAA,CAAA;AAAA,GACd;AAAA,EACA,IAAA,EAAM,YAA8B,eAAA,CAAgB,YAAY,CAAA;AAAA,EAChE,KAAK,OAAO,OAAA,KAAY,CAAC,GAAG,SAAS,MAAM,CAAA;AAAA,EAC3C,MAAA,EAAQ,OAAO,OAAY,KAAA,OAAA,CAAQ,OAAO,CAAC,CAAA,KAAM,MAAM,MAAM,CAAA;AACjE;;;;"}
|
6
node_modules/pixi.js/lib/assets/detections/parsers/detectWebp.d.ts
generated
vendored
Normal file
6
node_modules/pixi.js/lib/assets/detections/parsers/detectWebp.d.ts
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
import type { FormatDetectionParser } from '../types';
|
||||
/**
|
||||
* Detects if the browser supports the WebP image format.
|
||||
* @memberof assets
|
||||
*/
|
||||
export declare const detectWebp: FormatDetectionParser;
|
20
node_modules/pixi.js/lib/assets/detections/parsers/detectWebp.js
generated
vendored
Normal file
20
node_modules/pixi.js/lib/assets/detections/parsers/detectWebp.js
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
'use strict';
|
||||
|
||||
var Extensions = require('../../../extensions/Extensions.js');
|
||||
var testImageFormat = require('../utils/testImageFormat.js');
|
||||
|
||||
"use strict";
|
||||
const detectWebp = {
|
||||
extension: {
|
||||
type: Extensions.ExtensionType.DetectionParser,
|
||||
priority: 0
|
||||
},
|
||||
test: async () => testImageFormat.testImageFormat(
|
||||
"data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAAAAAAfQ//73v/+BiOh/AAA="
|
||||
),
|
||||
add: async (formats) => [...formats, "webp"],
|
||||
remove: async (formats) => formats.filter((f) => f !== "webp")
|
||||
};
|
||||
|
||||
exports.detectWebp = detectWebp;
|
||||
//# sourceMappingURL=detectWebp.js.map
|
1
node_modules/pixi.js/lib/assets/detections/parsers/detectWebp.js.map
generated
vendored
Normal file
1
node_modules/pixi.js/lib/assets/detections/parsers/detectWebp.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"detectWebp.js","sources":["../../../../src/assets/detections/parsers/detectWebp.ts"],"sourcesContent":["import { ExtensionType } from '../../../extensions/Extensions';\nimport { testImageFormat } from '../utils/testImageFormat';\n\nimport type { FormatDetectionParser } from '../types';\n\n/**\n * Detects if the browser supports the WebP image format.\n * @memberof assets\n */\nexport const detectWebp = {\n extension: {\n type: ExtensionType.DetectionParser,\n priority: 0,\n },\n test: async (): Promise<boolean> => testImageFormat(\n 'data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAAAAAAfQ//73v/+BiOh/AAA='\n ),\n add: async (formats) => [...formats, 'webp'],\n remove: async (formats) => formats.filter((f) => f !== 'webp'),\n} as FormatDetectionParser;\n"],"names":["ExtensionType","testImageFormat"],"mappings":";;;;;;AASO,MAAM,UAAa,GAAA;AAAA,EACtB,SAAW,EAAA;AAAA,IACP,MAAMA,wBAAc,CAAA,eAAA;AAAA,IACpB,QAAU,EAAA,CAAA;AAAA,GACd;AAAA,EACA,MAAM,YAA8BC,+BAAA;AAAA,IAChC,6EAAA;AAAA,GACJ;AAAA,EACA,KAAK,OAAO,OAAA,KAAY,CAAC,GAAG,SAAS,MAAM,CAAA;AAAA,EAC3C,MAAA,EAAQ,OAAO,OAAY,KAAA,OAAA,CAAQ,OAAO,CAAC,CAAA,KAAM,MAAM,MAAM,CAAA;AACjE;;;;"}
|
18
node_modules/pixi.js/lib/assets/detections/parsers/detectWebp.mjs
generated
vendored
Normal file
18
node_modules/pixi.js/lib/assets/detections/parsers/detectWebp.mjs
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
import { ExtensionType } from '../../../extensions/Extensions.mjs';
|
||||
import { testImageFormat } from '../utils/testImageFormat.mjs';
|
||||
|
||||
"use strict";
|
||||
const detectWebp = {
|
||||
extension: {
|
||||
type: ExtensionType.DetectionParser,
|
||||
priority: 0
|
||||
},
|
||||
test: async () => testImageFormat(
|
||||
"data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAAAAAAfQ//73v/+BiOh/AAA="
|
||||
),
|
||||
add: async (formats) => [...formats, "webp"],
|
||||
remove: async (formats) => formats.filter((f) => f !== "webp")
|
||||
};
|
||||
|
||||
export { detectWebp };
|
||||
//# sourceMappingURL=detectWebp.mjs.map
|
1
node_modules/pixi.js/lib/assets/detections/parsers/detectWebp.mjs.map
generated
vendored
Normal file
1
node_modules/pixi.js/lib/assets/detections/parsers/detectWebp.mjs.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"detectWebp.mjs","sources":["../../../../src/assets/detections/parsers/detectWebp.ts"],"sourcesContent":["import { ExtensionType } from '../../../extensions/Extensions';\nimport { testImageFormat } from '../utils/testImageFormat';\n\nimport type { FormatDetectionParser } from '../types';\n\n/**\n * Detects if the browser supports the WebP image format.\n * @memberof assets\n */\nexport const detectWebp = {\n extension: {\n type: ExtensionType.DetectionParser,\n priority: 0,\n },\n test: async (): Promise<boolean> => testImageFormat(\n 'data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAAAAAAfQ//73v/+BiOh/AAA='\n ),\n add: async (formats) => [...formats, 'webp'],\n remove: async (formats) => formats.filter((f) => f !== 'webp'),\n} as FormatDetectionParser;\n"],"names":[],"mappings":";;;;AASO,MAAM,UAAa,GAAA;AAAA,EACtB,SAAW,EAAA;AAAA,IACP,MAAM,aAAc,CAAA,eAAA;AAAA,IACpB,QAAU,EAAA,CAAA;AAAA,GACd;AAAA,EACA,MAAM,YAA8B,eAAA;AAAA,IAChC,6EAAA;AAAA,GACJ;AAAA,EACA,KAAK,OAAO,OAAA,KAAY,CAAC,GAAG,SAAS,MAAM,CAAA;AAAA,EAC3C,MAAA,EAAQ,OAAO,OAAY,KAAA,OAAA,CAAQ,OAAO,CAAC,CAAA,KAAM,MAAM,MAAM,CAAA;AACjE;;;;"}
|
24
node_modules/pixi.js/lib/assets/detections/types.d.ts
generated
vendored
Normal file
24
node_modules/pixi.js/lib/assets/detections/types.d.ts
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
import type { ExtensionMetadata } from '../../extensions/Extensions';
|
||||
/**
|
||||
* Format detection is useful for detecting feature support on the current platform.
|
||||
* @memberof assets
|
||||
*/
|
||||
export interface FormatDetectionParser {
|
||||
/** Should be ExtensionType.DetectionParser */
|
||||
extension?: ExtensionMetadata;
|
||||
/** Browser/platform feature detection supported if return true */
|
||||
test: () => Promise<boolean>;
|
||||
/**
|
||||
* Add formats (file extensions) to the existing list of formats.
|
||||
* Return an new array with added formats, do not mutate the formats argument.
|
||||
* @returns {Promise<string[]>} - Promise that resolves to the new formats array.
|
||||
*/
|
||||
add: (formats: string[]) => Promise<string[]>;
|
||||
/**
|
||||
* Remove formats (file extensions) from the list of supported formats.
|
||||
* This is used when uninstalling this DetectionParser.
|
||||
* Return an new array with filtered formats, do not mutate the formats argument.
|
||||
* @returns {Promise<string[]>} - Promise that resolves to the new formats array.
|
||||
*/
|
||||
remove: (formats: string[]) => Promise<string[]>;
|
||||
}
|
4
node_modules/pixi.js/lib/assets/detections/types.js
generated
vendored
Normal file
4
node_modules/pixi.js/lib/assets/detections/types.js
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
'use strict';
|
||||
|
||||
"use strict";
|
||||
//# sourceMappingURL=types.js.map
|
1
node_modules/pixi.js/lib/assets/detections/types.js.map
generated
vendored
Normal file
1
node_modules/pixi.js/lib/assets/detections/types.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"types.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
2
node_modules/pixi.js/lib/assets/detections/types.mjs
generated
vendored
Normal file
2
node_modules/pixi.js/lib/assets/detections/types.mjs
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
"use strict";
|
||||
//# sourceMappingURL=types.mjs.map
|
1
node_modules/pixi.js/lib/assets/detections/types.mjs.map
generated
vendored
Normal file
1
node_modules/pixi.js/lib/assets/detections/types.mjs.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"types.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
1
node_modules/pixi.js/lib/assets/detections/utils/testImageFormat.d.ts
generated
vendored
Normal file
1
node_modules/pixi.js/lib/assets/detections/utils/testImageFormat.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export declare function testImageFormat(imageData: string): Promise<boolean>;
|
30
node_modules/pixi.js/lib/assets/detections/utils/testImageFormat.js
generated
vendored
Normal file
30
node_modules/pixi.js/lib/assets/detections/utils/testImageFormat.js
generated
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
'use strict';
|
||||
|
||||
"use strict";
|
||||
async function testImageFormat(imageData) {
|
||||
if ("Image" in globalThis) {
|
||||
return new Promise((resolve) => {
|
||||
const image = new Image();
|
||||
image.onload = () => {
|
||||
resolve(true);
|
||||
};
|
||||
image.onerror = () => {
|
||||
resolve(false);
|
||||
};
|
||||
image.src = imageData;
|
||||
});
|
||||
}
|
||||
if ("createImageBitmap" in globalThis && "fetch" in globalThis) {
|
||||
try {
|
||||
const blob = await (await fetch(imageData)).blob();
|
||||
await createImageBitmap(blob);
|
||||
} catch (e) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
exports.testImageFormat = testImageFormat;
|
||||
//# sourceMappingURL=testImageFormat.js.map
|
1
node_modules/pixi.js/lib/assets/detections/utils/testImageFormat.js.map
generated
vendored
Normal file
1
node_modules/pixi.js/lib/assets/detections/utils/testImageFormat.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"testImageFormat.js","sources":["../../../../src/assets/detections/utils/testImageFormat.ts"],"sourcesContent":["export async function testImageFormat(imageData: string): Promise<boolean>\n{\n // Some browsers currently do not support createImageBitmap with Blob, so new Image() is preferred when exist.\n // See https://caniuse.com/createimagebitmap for more information.\n\n if ('Image' in globalThis)\n {\n return new Promise<boolean>((resolve) =>\n {\n const image = new Image();\n\n image.onload = () =>\n {\n resolve(true);\n };\n image.onerror = () =>\n {\n resolve(false);\n };\n image.src = imageData;\n });\n }\n\n if ('createImageBitmap' in globalThis && 'fetch' in globalThis)\n {\n try\n {\n const blob = await (await fetch(imageData)).blob();\n\n await createImageBitmap(blob);\n }\n catch (e)\n {\n return false;\n }\n\n return true;\n }\n\n return false;\n}\n"],"names":[],"mappings":";;;AAAA,eAAsB,gBAAgB,SACtC,EAAA;AAII,EAAA,IAAI,WAAW,UACf,EAAA;AACI,IAAO,OAAA,IAAI,OAAiB,CAAA,CAAC,OAC7B,KAAA;AACI,MAAM,MAAA,KAAA,GAAQ,IAAI,KAAM,EAAA,CAAA;AAExB,MAAA,KAAA,CAAM,SAAS,MACf;AACI,QAAA,OAAA,CAAQ,IAAI,CAAA,CAAA;AAAA,OAChB,CAAA;AACA,MAAA,KAAA,CAAM,UAAU,MAChB;AACI,QAAA,OAAA,CAAQ,KAAK,CAAA,CAAA;AAAA,OACjB,CAAA;AACA,MAAA,KAAA,CAAM,GAAM,GAAA,SAAA,CAAA;AAAA,KACf,CAAA,CAAA;AAAA,GACL;AAEA,EAAI,IAAA,mBAAA,IAAuB,UAAc,IAAA,OAAA,IAAW,UACpD,EAAA;AACI,IACA,IAAA;AACI,MAAA,MAAM,OAAO,MAAO,CAAA,MAAM,KAAM,CAAA,SAAS,GAAG,IAAK,EAAA,CAAA;AAEjD,MAAA,MAAM,kBAAkB,IAAI,CAAA,CAAA;AAAA,aAEzB,CACP,EAAA;AACI,MAAO,OAAA,KAAA,CAAA;AAAA,KACX;AAEA,IAAO,OAAA,IAAA,CAAA;AAAA,GACX;AAEA,EAAO,OAAA,KAAA,CAAA;AACX;;;;"}
|
28
node_modules/pixi.js/lib/assets/detections/utils/testImageFormat.mjs
generated
vendored
Normal file
28
node_modules/pixi.js/lib/assets/detections/utils/testImageFormat.mjs
generated
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
"use strict";
|
||||
async function testImageFormat(imageData) {
|
||||
if ("Image" in globalThis) {
|
||||
return new Promise((resolve) => {
|
||||
const image = new Image();
|
||||
image.onload = () => {
|
||||
resolve(true);
|
||||
};
|
||||
image.onerror = () => {
|
||||
resolve(false);
|
||||
};
|
||||
image.src = imageData;
|
||||
});
|
||||
}
|
||||
if ("createImageBitmap" in globalThis && "fetch" in globalThis) {
|
||||
try {
|
||||
const blob = await (await fetch(imageData)).blob();
|
||||
await createImageBitmap(blob);
|
||||
} catch (e) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
export { testImageFormat };
|
||||
//# sourceMappingURL=testImageFormat.mjs.map
|
1
node_modules/pixi.js/lib/assets/detections/utils/testImageFormat.mjs.map
generated
vendored
Normal file
1
node_modules/pixi.js/lib/assets/detections/utils/testImageFormat.mjs.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"testImageFormat.mjs","sources":["../../../../src/assets/detections/utils/testImageFormat.ts"],"sourcesContent":["export async function testImageFormat(imageData: string): Promise<boolean>\n{\n // Some browsers currently do not support createImageBitmap with Blob, so new Image() is preferred when exist.\n // See https://caniuse.com/createimagebitmap for more information.\n\n if ('Image' in globalThis)\n {\n return new Promise<boolean>((resolve) =>\n {\n const image = new Image();\n\n image.onload = () =>\n {\n resolve(true);\n };\n image.onerror = () =>\n {\n resolve(false);\n };\n image.src = imageData;\n });\n }\n\n if ('createImageBitmap' in globalThis && 'fetch' in globalThis)\n {\n try\n {\n const blob = await (await fetch(imageData)).blob();\n\n await createImageBitmap(blob);\n }\n catch (e)\n {\n return false;\n }\n\n return true;\n }\n\n return false;\n}\n"],"names":[],"mappings":";AAAA,eAAsB,gBAAgB,SACtC,EAAA;AAII,EAAA,IAAI,WAAW,UACf,EAAA;AACI,IAAO,OAAA,IAAI,OAAiB,CAAA,CAAC,OAC7B,KAAA;AACI,MAAM,MAAA,KAAA,GAAQ,IAAI,KAAM,EAAA,CAAA;AAExB,MAAA,KAAA,CAAM,SAAS,MACf;AACI,QAAA,OAAA,CAAQ,IAAI,CAAA,CAAA;AAAA,OAChB,CAAA;AACA,MAAA,KAAA,CAAM,UAAU,MAChB;AACI,QAAA,OAAA,CAAQ,KAAK,CAAA,CAAA;AAAA,OACjB,CAAA;AACA,MAAA,KAAA,CAAM,GAAM,GAAA,SAAA,CAAA;AAAA,KACf,CAAA,CAAA;AAAA,GACL;AAEA,EAAI,IAAA,mBAAA,IAAuB,UAAc,IAAA,OAAA,IAAW,UACpD,EAAA;AACI,IACA,IAAA;AACI,MAAA,MAAM,OAAO,MAAO,CAAA,MAAM,KAAM,CAAA,SAAS,GAAG,IAAK,EAAA,CAAA;AAEjD,MAAA,MAAM,kBAAkB,IAAI,CAAA,CAAA;AAAA,aAEzB,CACP,EAAA;AACI,MAAO,OAAA,KAAA,CAAA;AAAA,KACX;AAEA,IAAO,OAAA,IAAA,CAAA;AAAA,GACX;AAEA,EAAO,OAAA,KAAA,CAAA;AACX;;;;"}
|
1
node_modules/pixi.js/lib/assets/detections/utils/testVideoFormat.d.ts
generated
vendored
Normal file
1
node_modules/pixi.js/lib/assets/detections/utils/testVideoFormat.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export declare function testVideoFormat(mimeType: string): boolean;
|
14
node_modules/pixi.js/lib/assets/detections/utils/testVideoFormat.js
generated
vendored
Normal file
14
node_modules/pixi.js/lib/assets/detections/utils/testVideoFormat.js
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
'use strict';
|
||||
|
||||
"use strict";
|
||||
const inWorker = "WorkerGlobalScope" in globalThis && globalThis instanceof globalThis.WorkerGlobalScope;
|
||||
function testVideoFormat(mimeType) {
|
||||
if (inWorker) {
|
||||
return false;
|
||||
}
|
||||
const video = document.createElement("video");
|
||||
return video.canPlayType(mimeType) !== "";
|
||||
}
|
||||
|
||||
exports.testVideoFormat = testVideoFormat;
|
||||
//# sourceMappingURL=testVideoFormat.js.map
|
1
node_modules/pixi.js/lib/assets/detections/utils/testVideoFormat.js.map
generated
vendored
Normal file
1
node_modules/pixi.js/lib/assets/detections/utils/testVideoFormat.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"testVideoFormat.js","sources":["../../../../src/assets/detections/utils/testVideoFormat.ts"],"sourcesContent":["const inWorker = 'WorkerGlobalScope' in globalThis\n && globalThis instanceof (globalThis as any).WorkerGlobalScope;\n\nexport function testVideoFormat(mimeType: string): boolean\n{\n if (inWorker)\n {\n return false;\n }\n\n const video = document.createElement('video');\n\n return video.canPlayType(mimeType) !== '';\n}\n"],"names":[],"mappings":";;;AAAA,MAAM,QAAW,GAAA,mBAAA,IAAuB,UACjC,IAAA,UAAA,YAAuB,UAAmB,CAAA,iBAAA,CAAA;AAE1C,SAAS,gBAAgB,QAChC,EAAA;AACI,EAAA,IAAI,QACJ,EAAA;AACI,IAAO,OAAA,KAAA,CAAA;AAAA,GACX;AAEA,EAAM,MAAA,KAAA,GAAQ,QAAS,CAAA,aAAA,CAAc,OAAO,CAAA,CAAA;AAE5C,EAAO,OAAA,KAAA,CAAM,WAAY,CAAA,QAAQ,CAAM,KAAA,EAAA,CAAA;AAC3C;;;;"}
|
12
node_modules/pixi.js/lib/assets/detections/utils/testVideoFormat.mjs
generated
vendored
Normal file
12
node_modules/pixi.js/lib/assets/detections/utils/testVideoFormat.mjs
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
"use strict";
|
||||
const inWorker = "WorkerGlobalScope" in globalThis && globalThis instanceof globalThis.WorkerGlobalScope;
|
||||
function testVideoFormat(mimeType) {
|
||||
if (inWorker) {
|
||||
return false;
|
||||
}
|
||||
const video = document.createElement("video");
|
||||
return video.canPlayType(mimeType) !== "";
|
||||
}
|
||||
|
||||
export { testVideoFormat };
|
||||
//# sourceMappingURL=testVideoFormat.mjs.map
|
1
node_modules/pixi.js/lib/assets/detections/utils/testVideoFormat.mjs.map
generated
vendored
Normal file
1
node_modules/pixi.js/lib/assets/detections/utils/testVideoFormat.mjs.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"testVideoFormat.mjs","sources":["../../../../src/assets/detections/utils/testVideoFormat.ts"],"sourcesContent":["const inWorker = 'WorkerGlobalScope' in globalThis\n && globalThis instanceof (globalThis as any).WorkerGlobalScope;\n\nexport function testVideoFormat(mimeType: string): boolean\n{\n if (inWorker)\n {\n return false;\n }\n\n const video = document.createElement('video');\n\n return video.canPlayType(mimeType) !== '';\n}\n"],"names":[],"mappings":";AAAA,MAAM,QAAW,GAAA,mBAAA,IAAuB,UACjC,IAAA,UAAA,YAAuB,UAAmB,CAAA,iBAAA,CAAA;AAE1C,SAAS,gBAAgB,QAChC,EAAA;AACI,EAAA,IAAI,QACJ,EAAA;AACI,IAAO,OAAA,KAAA,CAAA;AAAA,GACX;AAEA,EAAM,MAAA,KAAA,GAAQ,QAAS,CAAA,aAAA,CAAc,OAAO,CAAA,CAAA;AAE5C,EAAO,OAAA,KAAA,CAAM,WAAY,CAAA,QAAQ,CAAM,KAAA,EAAA,CAAA;AAC3C;;;;"}
|
Reference in New Issue
Block a user