This commit is contained in:
Akko
2025-08-04 18:57:35 +02:00
parent 8cf6e78a79
commit 9495868c2e
5030 changed files with 518594 additions and 17609 deletions

View File

@@ -0,0 +1,19 @@
/**
* deprecation name for version 8.0.0
* @ignore
*/
export declare const v8_0_0 = "8.0.0";
export declare const v8_3_4 = "8.3.4";
/**
* Helper for warning developers about deprecated features & settings.
* A stack track for warnings is given; useful for tracking-down where
* deprecated methods/properties/classes are being used within the code.
* @memberof utils
* @ignore
* @function deprecation
* @param {string} version - The version where the feature became deprecated
* @param {string} message - Message should include what is deprecated, where, and the new solution
* @param {number} [ignoreDepth=3] - The number of steps to ignore at the top of the error stack
* this is mostly to ignore internal deprecation calls.
*/
export declare function deprecation(version: string, message: string, ignoreDepth?: number): void;

39
node_modules/pixi.js/lib/utils/logging/deprecation.js generated vendored Normal file
View File

@@ -0,0 +1,39 @@
'use strict';
"use strict";
const warnings = {};
const v8_0_0 = "8.0.0";
const v8_3_4 = "8.3.4";
function deprecation(version, message, ignoreDepth = 3) {
if (warnings[message]) {
return;
}
let stack = new Error().stack;
if (typeof stack === "undefined") {
console.warn("PixiJS Deprecation Warning: ", `${message}
Deprecated since v${version}`);
} else {
stack = stack.split("\n").splice(ignoreDepth).join("\n");
if (console.groupCollapsed) {
console.groupCollapsed(
"%cPixiJS Deprecation Warning: %c%s",
"color:#614108;background:#fffbe6",
"font-weight:normal;color:#614108;background:#fffbe6",
`${message}
Deprecated since v${version}`
);
console.warn(stack);
console.groupEnd();
} else {
console.warn("PixiJS Deprecation Warning: ", `${message}
Deprecated since v${version}`);
console.warn(stack);
}
}
warnings[message] = true;
}
exports.deprecation = deprecation;
exports.v8_0_0 = v8_0_0;
exports.v8_3_4 = v8_3_4;
//# sourceMappingURL=deprecation.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"deprecation.js","sources":["../../../src/utils/logging/deprecation.ts"],"sourcesContent":["import type { Dict } from '../types';\n\n// A map of warning messages already fired\nconst warnings: Dict<boolean> = {};\n\n/**\n * deprecation name for version 8.0.0\n * @ignore\n */\nexport const v8_0_0 = '8.0.0';\nexport const v8_3_4 = '8.3.4';\n\n/**\n * Helper for warning developers about deprecated features & settings.\n * A stack track for warnings is given; useful for tracking-down where\n * deprecated methods/properties/classes are being used within the code.\n * @memberof utils\n * @ignore\n * @function deprecation\n * @param {string} version - The version where the feature became deprecated\n * @param {string} message - Message should include what is deprecated, where, and the new solution\n * @param {number} [ignoreDepth=3] - The number of steps to ignore at the top of the error stack\n * this is mostly to ignore internal deprecation calls.\n */\nexport function deprecation(version: string, message: string, ignoreDepth = 3): void\n{\n // Ignore duplicate\n if (warnings[message])\n {\n return;\n }\n\n /* eslint-disable no-console */\n let stack = new Error().stack;\n\n // Handle IE < 10 and Safari < 6\n if (typeof stack === 'undefined')\n {\n console.warn('PixiJS Deprecation Warning: ', `${message}\\nDeprecated since v${version}`);\n }\n else\n {\n // chop off the stack trace which includes PixiJS internal calls\n stack = stack.split('\\n').splice(ignoreDepth).join('\\n');\n\n if (console.groupCollapsed)\n {\n console.groupCollapsed(\n '%cPixiJS Deprecation Warning: %c%s',\n 'color:#614108;background:#fffbe6',\n 'font-weight:normal;color:#614108;background:#fffbe6',\n `${message}\\nDeprecated since v${version}`\n );\n console.warn(stack);\n console.groupEnd();\n }\n else\n {\n console.warn('PixiJS Deprecation Warning: ', `${message}\\nDeprecated since v${version}`);\n console.warn(stack);\n }\n }\n /* eslint-enable no-console */\n\n warnings[message] = true;\n}\n"],"names":[],"mappings":";;;AAGA,MAAM,WAA0B,EAAC,CAAA;AAM1B,MAAM,MAAS,GAAA,QAAA;AACf,MAAM,MAAS,GAAA,QAAA;AAcf,SAAS,WAAY,CAAA,OAAA,EAAiB,OAAiB,EAAA,WAAA,GAAc,CAC5E,EAAA;AAEI,EAAI,IAAA,QAAA,CAAS,OAAO,CACpB,EAAA;AACI,IAAA,OAAA;AAAA,GACJ;AAGA,EAAI,IAAA,KAAA,GAAQ,IAAI,KAAA,EAAQ,CAAA,KAAA,CAAA;AAGxB,EAAI,IAAA,OAAO,UAAU,WACrB,EAAA;AACI,IAAQ,OAAA,CAAA,IAAA,CAAK,8BAAgC,EAAA,CAAA,EAAG,OAAO,CAAA;AAAA,kBAAA,EAAuB,OAAO,CAAE,CAAA,CAAA,CAAA;AAAA,GAG3F,MAAA;AAEI,IAAQ,KAAA,GAAA,KAAA,CAAM,MAAM,IAAI,CAAA,CAAE,OAAO,WAAW,CAAA,CAAE,KAAK,IAAI,CAAA,CAAA;AAEvD,IAAA,IAAI,QAAQ,cACZ,EAAA;AACI,MAAQ,OAAA,CAAA,cAAA;AAAA,QACJ,oCAAA;AAAA,QACA,kCAAA;AAAA,QACA,qDAAA;AAAA,QACA,GAAG,OAAO,CAAA;AAAA,kBAAA,EAAuB,OAAO,CAAA,CAAA;AAAA,OAC5C,CAAA;AACA,MAAA,OAAA,CAAQ,KAAK,KAAK,CAAA,CAAA;AAClB,MAAA,OAAA,CAAQ,QAAS,EAAA,CAAA;AAAA,KAGrB,MAAA;AACI,MAAQ,OAAA,CAAA,IAAA,CAAK,8BAAgC,EAAA,CAAA,EAAG,OAAO,CAAA;AAAA,kBAAA,EAAuB,OAAO,CAAE,CAAA,CAAA,CAAA;AACvF,MAAA,OAAA,CAAQ,KAAK,KAAK,CAAA,CAAA;AAAA,KACtB;AAAA,GACJ;AAGA,EAAA,QAAA,CAAS,OAAO,CAAI,GAAA,IAAA,CAAA;AACxB;;;;;;"}

35
node_modules/pixi.js/lib/utils/logging/deprecation.mjs generated vendored Normal file
View File

@@ -0,0 +1,35 @@
"use strict";
const warnings = {};
const v8_0_0 = "8.0.0";
const v8_3_4 = "8.3.4";
function deprecation(version, message, ignoreDepth = 3) {
if (warnings[message]) {
return;
}
let stack = new Error().stack;
if (typeof stack === "undefined") {
console.warn("PixiJS Deprecation Warning: ", `${message}
Deprecated since v${version}`);
} else {
stack = stack.split("\n").splice(ignoreDepth).join("\n");
if (console.groupCollapsed) {
console.groupCollapsed(
"%cPixiJS Deprecation Warning: %c%s",
"color:#614108;background:#fffbe6",
"font-weight:normal;color:#614108;background:#fffbe6",
`${message}
Deprecated since v${version}`
);
console.warn(stack);
console.groupEnd();
} else {
console.warn("PixiJS Deprecation Warning: ", `${message}
Deprecated since v${version}`);
console.warn(stack);
}
}
warnings[message] = true;
}
export { deprecation, v8_0_0, v8_3_4 };
//# sourceMappingURL=deprecation.mjs.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"deprecation.mjs","sources":["../../../src/utils/logging/deprecation.ts"],"sourcesContent":["import type { Dict } from '../types';\n\n// A map of warning messages already fired\nconst warnings: Dict<boolean> = {};\n\n/**\n * deprecation name for version 8.0.0\n * @ignore\n */\nexport const v8_0_0 = '8.0.0';\nexport const v8_3_4 = '8.3.4';\n\n/**\n * Helper for warning developers about deprecated features & settings.\n * A stack track for warnings is given; useful for tracking-down where\n * deprecated methods/properties/classes are being used within the code.\n * @memberof utils\n * @ignore\n * @function deprecation\n * @param {string} version - The version where the feature became deprecated\n * @param {string} message - Message should include what is deprecated, where, and the new solution\n * @param {number} [ignoreDepth=3] - The number of steps to ignore at the top of the error stack\n * this is mostly to ignore internal deprecation calls.\n */\nexport function deprecation(version: string, message: string, ignoreDepth = 3): void\n{\n // Ignore duplicate\n if (warnings[message])\n {\n return;\n }\n\n /* eslint-disable no-console */\n let stack = new Error().stack;\n\n // Handle IE < 10 and Safari < 6\n if (typeof stack === 'undefined')\n {\n console.warn('PixiJS Deprecation Warning: ', `${message}\\nDeprecated since v${version}`);\n }\n else\n {\n // chop off the stack trace which includes PixiJS internal calls\n stack = stack.split('\\n').splice(ignoreDepth).join('\\n');\n\n if (console.groupCollapsed)\n {\n console.groupCollapsed(\n '%cPixiJS Deprecation Warning: %c%s',\n 'color:#614108;background:#fffbe6',\n 'font-weight:normal;color:#614108;background:#fffbe6',\n `${message}\\nDeprecated since v${version}`\n );\n console.warn(stack);\n console.groupEnd();\n }\n else\n {\n console.warn('PixiJS Deprecation Warning: ', `${message}\\nDeprecated since v${version}`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O,CAAI,GAAA,IAAA,CAAA;AACxB;;;;"}

View File

@@ -0,0 +1,11 @@
import type { Texture } from '../../rendering/renderers/shared/texture/Texture';
import type { Renderer } from '../../rendering/renderers/types';
/**
* Logs a texture to the console as a base64 image.
* This can be very useful for debugging issues with rendering.
* @param texture - The texture to log
* @param renderer - The renderer to use
* @param size - The size of the texture to log in the console
* @ignore
*/
export declare function logDebugTexture(texture: Texture, renderer: Renderer, size?: number): Promise<void>;

View File

@@ -0,0 +1,19 @@
'use strict';
"use strict";
async function logDebugTexture(texture, renderer, size = 200) {
const base64 = await renderer.extract.base64(texture);
await renderer.encoder.commandFinished;
const width = size;
console.log(`logging texture ${texture.source.width}px ${texture.source.height}px`);
const style = [
"font-size: 1px;",
`padding: ${width}px ${300}px;`,
`background: url(${base64}) no-repeat;`,
"background-size: contain;"
].join(" ");
console.log("%c ", style);
}
exports.logDebugTexture = logDebugTexture;
//# sourceMappingURL=logDebugTexture.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"logDebugTexture.js","sources":["../../../src/utils/logging/logDebugTexture.ts"],"sourcesContent":["import type { Texture } from '../../rendering/renderers/shared/texture/Texture';\nimport type { Renderer } from '../../rendering/renderers/types';\n\n/**\n * Logs a texture to the console as a base64 image.\n * This can be very useful for debugging issues with rendering.\n * @param texture - The texture to log\n * @param renderer - The renderer to use\n * @param size - The size of the texture to log in the console\n * @ignore\n */\nexport async function logDebugTexture(texture: Texture, renderer: Renderer, size = 200)\n{\n const base64 = await renderer.extract.base64(texture);\n\n await renderer.encoder.commandFinished;\n\n const width = size;\n\n // eslint-disable-next-line no-console\n console.log(`logging texture ${texture.source.width}px ${texture.source.height}px`);\n\n const style = [\n 'font-size: 1px;',\n `padding: ${width}px ${300}px;`,\n `background: url(${base64}) no-repeat;`,\n 'background-size: contain;',\n ].join(' ');\n\n // eslint-disable-next-line no-console\n console.log('%c ', style);\n}\n"],"names":[],"mappings":";;;AAWA,eAAsB,eAAgB,CAAA,OAAA,EAAkB,QAAoB,EAAA,IAAA,GAAO,GACnF,EAAA;AACI,EAAA,MAAM,MAAS,GAAA,MAAM,QAAS,CAAA,OAAA,CAAQ,OAAO,OAAO,CAAA,CAAA;AAEpD,EAAA,MAAM,SAAS,OAAQ,CAAA,eAAA,CAAA;AAEvB,EAAA,MAAM,KAAQ,GAAA,IAAA,CAAA;AAGd,EAAQ,OAAA,CAAA,GAAA,CAAI,mBAAmB,OAAQ,CAAA,MAAA,CAAO,KAAK,CAAM,GAAA,EAAA,OAAA,CAAQ,MAAO,CAAA,MAAM,CAAI,EAAA,CAAA,CAAA,CAAA;AAElF,EAAA,MAAM,KAAQ,GAAA;AAAA,IACV,iBAAA;AAAA,IACA,CAAA,SAAA,EAAY,KAAK,CAAA,GAAA,EAAM,GAAG,CAAA,GAAA,CAAA;AAAA,IAC1B,mBAAmB,MAAM,CAAA,YAAA,CAAA;AAAA,IACzB,2BAAA;AAAA,GACJ,CAAE,KAAK,GAAG,CAAA,CAAA;AAGV,EAAQ,OAAA,CAAA,GAAA,CAAI,OAAO,KAAK,CAAA,CAAA;AAC5B;;;;"}

View File

@@ -0,0 +1,17 @@
"use strict";
async function logDebugTexture(texture, renderer, size = 200) {
const base64 = await renderer.extract.base64(texture);
await renderer.encoder.commandFinished;
const width = size;
console.log(`logging texture ${texture.source.width}px ${texture.source.height}px`);
const style = [
"font-size: 1px;",
`padding: ${width}px ${300}px;`,
`background: url(${base64}) no-repeat;`,
"background-size: contain;"
].join(" ");
console.log("%c ", style);
}
export { logDebugTexture };
//# sourceMappingURL=logDebugTexture.mjs.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"logDebugTexture.mjs","sources":["../../../src/utils/logging/logDebugTexture.ts"],"sourcesContent":["import type { Texture } from '../../rendering/renderers/shared/texture/Texture';\nimport type { Renderer } from '../../rendering/renderers/types';\n\n/**\n * Logs a texture to the console as a base64 image.\n * This can be very useful for debugging issues with rendering.\n * @param texture - The texture to log\n * @param renderer - The renderer to use\n * @param size - The size of the texture to log in the console\n * @ignore\n */\nexport async function logDebugTexture(texture: Texture, renderer: Renderer, size = 200)\n{\n const base64 = await renderer.extract.base64(texture);\n\n await renderer.encoder.commandFinished;\n\n const width = size;\n\n // eslint-disable-next-line no-console\n console.log(`logging texture ${texture.source.width}px ${texture.source.height}px`);\n\n const style = [\n 'font-size: 1px;',\n `padding: ${width}px ${300}px;`,\n `background: url(${base64}) no-repeat;`,\n 'background-size: contain;',\n ].join(' ');\n\n // eslint-disable-next-line no-console\n console.log('%c ', style);\n}\n"],"names":[],"mappings":";AAWA,eAAsB,eAAgB,CAAA,OAAA,EAAkB,QAAoB,EAAA,IAAA,GAAO,GACnF,EAAA;AACI,EAAA,MAAM,MAAS,GAAA,MAAM,QAAS,CAAA,OAAA,CAAQ,OAAO,OAAO,CAAA,CAAA;AAEpD,EAAA,MAAM,SAAS,OAAQ,CAAA,eAAA,CAAA;AAEvB,EAAA,MAAM,KAAQ,GAAA,IAAA,CAAA;AAGd,EAAQ,OAAA,CAAA,GAAA,CAAI,mBAAmB,OAAQ,CAAA,MAAA,CAAO,KAAK,CAAM,GAAA,EAAA,OAAA,CAAQ,MAAO,CAAA,MAAM,CAAI,EAAA,CAAA,CAAA,CAAA;AAElF,EAAA,MAAM,KAAQ,GAAA;AAAA,IACV,iBAAA;AAAA,IACA,CAAA,SAAA,EAAY,KAAK,CAAA,GAAA,EAAM,GAAG,CAAA,GAAA,CAAA;AAAA,IAC1B,mBAAmB,MAAM,CAAA,YAAA,CAAA;AAAA,IACzB,2BAAA;AAAA,GACJ,CAAE,KAAK,GAAG,CAAA,CAAA;AAGV,EAAQ,OAAA,CAAA,GAAA,CAAI,OAAO,KAAK,CAAA,CAAA;AAC5B;;;;"}

9
node_modules/pixi.js/lib/utils/logging/logScene.d.ts generated vendored Normal file
View File

@@ -0,0 +1,9 @@
import type { Container } from '../../scene/container/Container';
import type { RenderGroup } from '../../scene/container/RenderGroup';
export declare function logScene(container: Container, depth?: number, data?: {
color?: string;
}): void;
export declare function logRenderGroupScene(renderGroup: RenderGroup, depth?: number, data?: {
index: number;
color?: string;
}): void;

71
node_modules/pixi.js/lib/utils/logging/logScene.js generated vendored Normal file
View File

@@ -0,0 +1,71 @@
'use strict';
var Sprite = require('../../scene/sprite/Sprite.js');
"use strict";
const colors = [
"#000080",
// Navy Blue
"#228B22",
// Forest Green
"#8B0000",
// Dark Red
"#4169E1",
// Royal Blue
"#008080",
// Teal
"#800000",
// Maroon
"#9400D3",
// Dark Violet
"#FF8C00",
// Dark Orange
"#556B2F",
// Olive Green
"#8B008B"
// Dark Magenta
];
let colorTick = 0;
function logScene(container, depth = 0, data = { color: "#000000" }) {
if (container.renderGroup) {
data.color = colors[colorTick++];
}
let spaces = "";
for (let i = 0; i < depth; i++) {
spaces += " ";
}
let label = container.label;
if (!label && container instanceof Sprite.Sprite) {
label = `sprite:${container.texture.label}`;
}
let output = `%c ${spaces}|- ${label} (worldX:${container.worldTransform.tx}, relativeRenderX:${container.relativeGroupTransform.tx}, renderX:${container.groupTransform.tx}, localX:${container.x})`;
if (container.renderGroup) {
output += " (RenderGroup)";
}
if (container.filters) {
output += "(*filters)";
}
console.log(output, `color:${data.color}; font-weight:bold;`);
depth++;
for (let i = 0; i < container.children.length; i++) {
const child = container.children[i];
logScene(child, depth, { ...data });
}
}
function logRenderGroupScene(renderGroup, depth = 0, data = { index: 0, color: "#000000" }) {
let spaces = "";
for (let i = 0; i < depth; i++) {
spaces += " ";
}
const output = `%c ${spaces}- ${data.index}: ${renderGroup.root.label} worldX:${renderGroup.worldTransform.tx}`;
console.log(output, `color:${data.color}; font-weight:bold;`);
depth++;
for (let i = 0; i < renderGroup.renderGroupChildren.length; i++) {
const child = renderGroup.renderGroupChildren[i];
logRenderGroupScene(child, depth, { ...data, index: i });
}
}
exports.logRenderGroupScene = logRenderGroupScene;
exports.logScene = logScene;
//# sourceMappingURL=logScene.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"logScene.js","sources":["../../../src/utils/logging/logScene.ts"],"sourcesContent":["/* eslint-disable no-console */\n\nimport { Sprite } from '../../scene/sprite/Sprite';\n\nimport type { Container } from '../../scene/container/Container';\nimport type { RenderGroup } from '../../scene/container/RenderGroup';\n\nconst colors = [\n '#000080', // Navy Blue\n '#228B22', // Forest Green\n '#8B0000', // Dark Red\n '#4169E1', // Royal Blue\n '#008080', // Teal\n '#800000', // Maroon\n '#9400D3', // Dark Violet\n '#FF8C00', // Dark Orange\n '#556B2F', // Olive Green\n '#8B008B' // Dark Magenta\n];\n\nlet colorTick = 0;\n\nexport function logScene(container: Container, depth = 0, data: {color?: string} = { color: '#000000' })\n{\n if (container.renderGroup)\n {\n data.color = colors[colorTick++];\n }\n\n // turn depth into number of spaces:\n let spaces = '';\n\n for (let i = 0; i < depth; i++)\n {\n spaces += ' ';\n }\n\n let label = container.label;\n\n if (!label && container instanceof Sprite)\n {\n label = `sprite:${container.texture.label}`;\n }\n\n // eslint-disable-next-line max-len\n let output = `%c ${spaces}|- ${label} (worldX:${container.worldTransform.tx}, relativeRenderX:${container.relativeGroupTransform.tx}, renderX:${container.groupTransform.tx}, localX:${container.x})`;\n\n if (container.renderGroup)\n {\n output += ' (RenderGroup)';\n }\n\n if (container.filters)\n {\n output += '(*filters)';\n }\n\n console.log(output, `color:${data.color}; font-weight:bold;`);\n\n depth++;\n\n for (let i = 0; i < container.children.length; i++)\n {\n const child = container.children[i];\n\n logScene(child, depth, { ...data });\n }\n}\n\nexport function logRenderGroupScene(\n renderGroup: RenderGroup, depth = 0,\n data: {index: number, color?: string} = { index: 0, color: '#000000' }\n)\n{\n // turn depth into number of spaces:\n let spaces = '';\n\n for (let i = 0; i < depth; i++)\n {\n spaces += ' ';\n }\n\n const output = `%c ${spaces}- ${data.index}: ${renderGroup.root.label} worldX:${renderGroup.worldTransform.tx}`;\n\n console.log(output, `color:${data.color}; font-weight:bold;`);\n\n depth++;\n\n for (let i = 0; i < renderGroup.renderGroupChildren.length; i++)\n {\n const child = renderGroup.renderGroupChildren[i];\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AA,EAAA,CAAA;AAEA,EAAA,KAAA,IAAS,IAAI,CAAG,EAAA,CAAA,GAAI,WAAY,CAAA,mBAAA,CAAoB,QAAQ,CAC5D,EAAA,EAAA;AACI,IAAM,MAAA,KAAA,GAAQ,WAAY,CAAA,mBAAA,CAAoB,CAAC,CAAA,CAAA;AAE/C,IAAA,mBAAA,CAAoB,OAAO,KAAO,EAAA,EAAE,GAAG,IAAM,EAAA,KAAA,EAAO,GAAG,CAAA,CAAA;AAAA,GAC3D;AACJ;;;;;"}

68
node_modules/pixi.js/lib/utils/logging/logScene.mjs generated vendored Normal file
View File

@@ -0,0 +1,68 @@
import { Sprite } from '../../scene/sprite/Sprite.mjs';
"use strict";
const colors = [
"#000080",
// Navy Blue
"#228B22",
// Forest Green
"#8B0000",
// Dark Red
"#4169E1",
// Royal Blue
"#008080",
// Teal
"#800000",
// Maroon
"#9400D3",
// Dark Violet
"#FF8C00",
// Dark Orange
"#556B2F",
// Olive Green
"#8B008B"
// Dark Magenta
];
let colorTick = 0;
function logScene(container, depth = 0, data = { color: "#000000" }) {
if (container.renderGroup) {
data.color = colors[colorTick++];
}
let spaces = "";
for (let i = 0; i < depth; i++) {
spaces += " ";
}
let label = container.label;
if (!label && container instanceof Sprite) {
label = `sprite:${container.texture.label}`;
}
let output = `%c ${spaces}|- ${label} (worldX:${container.worldTransform.tx}, relativeRenderX:${container.relativeGroupTransform.tx}, renderX:${container.groupTransform.tx}, localX:${container.x})`;
if (container.renderGroup) {
output += " (RenderGroup)";
}
if (container.filters) {
output += "(*filters)";
}
console.log(output, `color:${data.color}; font-weight:bold;`);
depth++;
for (let i = 0; i < container.children.length; i++) {
const child = container.children[i];
logScene(child, depth, { ...data });
}
}
function logRenderGroupScene(renderGroup, depth = 0, data = { index: 0, color: "#000000" }) {
let spaces = "";
for (let i = 0; i < depth; i++) {
spaces += " ";
}
const output = `%c ${spaces}- ${data.index}: ${renderGroup.root.label} worldX:${renderGroup.worldTransform.tx}`;
console.log(output, `color:${data.color}; font-weight:bold;`);
depth++;
for (let i = 0; i < renderGroup.renderGroupChildren.length; i++) {
const child = renderGroup.renderGroupChildren[i];
logRenderGroupScene(child, depth, { ...data, index: i });
}
}
export { logRenderGroupScene, logScene };
//# sourceMappingURL=logScene.mjs.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"logScene.mjs","sources":["../../../src/utils/logging/logScene.ts"],"sourcesContent":["/* eslint-disable no-console */\n\nimport { Sprite } from '../../scene/sprite/Sprite';\n\nimport type { Container } from '../../scene/container/Container';\nimport type { RenderGroup } from '../../scene/container/RenderGroup';\n\nconst colors = [\n '#000080', // Navy Blue\n '#228B22', // Forest Green\n '#8B0000', // Dark Red\n '#4169E1', // Royal Blue\n '#008080', // Teal\n '#800000', // Maroon\n '#9400D3', // Dark Violet\n '#FF8C00', // Dark Orange\n '#556B2F', // Olive Green\n '#8B008B' // Dark Magenta\n];\n\nlet colorTick = 0;\n\nexport function logScene(container: Container, depth = 0, data: {color?: string} = { color: '#000000' })\n{\n if (container.renderGroup)\n {\n data.color = colors[colorTick++];\n }\n\n // turn depth into number of spaces:\n let spaces = '';\n\n for (let i = 0; i < depth; i++)\n {\n spaces += ' ';\n }\n\n let label = container.label;\n\n if (!label && container instanceof Sprite)\n {\n label = `sprite:${container.texture.label}`;\n }\n\n // eslint-disable-next-line max-len\n let output = `%c ${spaces}|- ${label} (worldX:${container.worldTransform.tx}, relativeRenderX:${container.relativeGroupTransform.tx}, renderX:${container.groupTransform.tx}, localX:${container.x})`;\n\n if (container.renderGroup)\n {\n output += ' (RenderGroup)';\n }\n\n if (container.filters)\n {\n output += '(*filters)';\n }\n\n console.log(output, `color:${data.color}; font-weight:bold;`);\n\n depth++;\n\n for (let i = 0; i < container.children.length; i++)\n {\n const child = container.children[i];\n\n logScene(child, depth, { ...data });\n }\n}\n\nexport function logRenderGroupScene(\n renderGroup: RenderGroup, depth = 0,\n data: {index: number, color?: string} = { index: 0, color: '#000000' }\n)\n{\n // turn depth into number of spaces:\n let spaces = '';\n\n for (let i = 0; i < depth; i++)\n {\n spaces += ' ';\n }\n\n const output = `%c ${spaces}- ${data.index}: ${renderGroup.root.label} worldX:${renderGroup.worldTransform.tx}`;\n\n console.log(output, `color:${data.color}; font-weight:bold;`);\n\n depth++;\n\n for (let i = 0; i < renderGroup.renderGroupChildren.length; i++)\n {\n const child = renderGroup.renderGroupChildren[i];\n\n logRenderGroupScene(child, depth, { ...data, index: i });\n }\n}\n"],"names":[],"mappings":";;;AAOA,MAAM,MAAS,GAAA;AAAA,EACX,SAAA;AAAA;AAAA,EACA,SAAA;AAAA;AAAA,EACA,SAAA;AAAA;AAAA,EACA,SAAA;AAAA;AAAA,EACA,SAAA;AAAA;AAAA,EACA,SAAA;AAAA;AAAA,EACA,SAAA;AAAA;AAAA,EACA,SAAA;AAAA;AAAA,EACA,SAAA;AAAA;AAAA,EACA,SAAA;AAAA;AACJ,CAAA,CAAA;AAEA,IAAI,SAAY,GAAA,CAAA,CAAA;AAEA,SAAA,QAAA,CAAS,WAAsB,KAAQ,GAAA,CAAA,EAAG,OAAyB,EAAE,KAAA,EAAO,WAC5F,EAAA;AACI,EAAA,IAAI,UAAU,WACd,EAAA;AACI,IAAK,IAAA,CAAA,KAAA,GAAQ,OAAO,SAAW,EAAA,CAAA,CAAA;AAAA,GACnC;AAGA,EAAA,IAAI,MAAS,GAAA,EAAA,CAAA;AAEb,EAAA,KAAA,IAAS,CAAI,GAAA,CAAA,EAAG,CAAI,GAAA,KAAA,EAAO,CAC3B,EAAA,EAAA;AACI,IAAU,MAAA,IAAA,MAAA,CAAA;AAAA,GACd;AAEA,EAAA,IAAI,QAAQ,SAAU,CAAA,KAAA,CAAA;AAEtB,EAAI,IAAA,CAAC,KAAS,IAAA,SAAA,YAAqB,MACnC,EAAA;AACI,IAAQ,KAAA,GAAA,CAAA,OAAA,EAAU,SAAU,CAAA,OAAA,CAAQ,KAAK,CAAA,CAAA,CAAA;AAAA,GAC7C;AAGA,EAAA,IAAI,SAAS,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A,WAAA,CAAY,IAAK,CAAA,KAAK,CAAW,QAAA,EAAA,WAAA,CAAY,eAAe,EAAE,CAAA,CAAA,CAAA;AAE7G,EAAA,OAAA,CAAQ,GAAI,CAAA,MAAA,EAAQ,CAAS,MAAA,EAAA,IAAA,CAAK,KAAK,CAAqB,mBAAA,CAAA,CAAA,CAAA;AAE5D,EAAA,KAAA,EAAA,CAAA;AAEA,EAAA,KAAA,IAAS,IAAI,CAAG,EAAA,CAAA,GAAI,WAAY,CAAA,mBAAA,CAAoB,QAAQ,CAC5D,EAAA,EAAA;AACI,IAAM,MAAA,KAAA,GAAQ,WAAY,CAAA,mBAAA,CAAoB,CAAC,CAAA,CAAA;AAE/C,IAAA,mBAAA,CAAoB,OAAO,KAAO,EAAA,EAAE,GAAG,IAAM,EAAA,KAAA,EAAO,GAAG,CAAA,CAAA;AAAA,GAC3D;AACJ;;;;"}

8
node_modules/pixi.js/lib/utils/logging/warn.d.ts generated vendored Normal file
View File

@@ -0,0 +1,8 @@
/**
* Logs a PixiJS warning message to the console. Stops logging after 500 warnings have been logged.
* @param args - The warning message(s) to log
* @returns {void}
* @memberof utils
* @ignore
*/
export declare function warn(...args: any[]): void;

18
node_modules/pixi.js/lib/utils/logging/warn.js generated vendored Normal file
View File

@@ -0,0 +1,18 @@
'use strict';
"use strict";
let warnCount = 0;
const maxWarnings = 500;
function warn(...args) {
if (warnCount === maxWarnings)
return;
warnCount++;
if (warnCount === maxWarnings) {
console.warn("PixiJS Warning: too many warnings, no more warnings will be reported to the console by PixiJS.");
} else {
console.warn("PixiJS Warning: ", ...args);
}
}
exports.warn = warn;
//# sourceMappingURL=warn.js.map

1
node_modules/pixi.js/lib/utils/logging/warn.js.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"warn.js","sources":["../../../src/utils/logging/warn.ts"],"sourcesContent":["let warnCount = 0;\nconst maxWarnings = 500;\n\n/**\n * Logs a PixiJS warning message to the console. Stops logging after 500 warnings have been logged.\n * @param args - The warning message(s) to log\n * @returns {void}\n * @memberof utils\n * @ignore\n */\nexport function warn(...args: any[])\n{\n if (warnCount === maxWarnings) return;\n\n warnCount++;\n\n if (warnCount === maxWarnings)\n {\n console.warn('PixiJS Warning: too many warnings, no more warnings will be reported to the console by PixiJS.');\n }\n else\n {\n console.warn('PixiJS Warning: ', ...args);\n }\n}\n"],"names":[],"mappings":";;;AAAA,IAAI,SAAY,GAAA,CAAA,CAAA;AAChB,MAAM,WAAc,GAAA,GAAA,CAAA;AASb,SAAS,QAAQ,IACxB,EAAA;AACI,EAAA,IAAI,SAAc,KAAA,WAAA;AAAa,IAAA,OAAA;AAE/B,EAAA,SAAA,EAAA,CAAA;AAEA,EAAA,IAAI,cAAc,WAClB,EAAA;AACI,IAAA,OAAA,CAAQ,KAAK,gGAAgG,CAAA,CAAA;AAAA,GAGjH,MAAA;AACI,IAAQ,OAAA,CAAA,IAAA,CAAK,kBAAoB,EAAA,GAAG,IAAI,CAAA,CAAA;AAAA,GAC5C;AACJ;;;;"}

16
node_modules/pixi.js/lib/utils/logging/warn.mjs generated vendored Normal file
View File

@@ -0,0 +1,16 @@
"use strict";
let warnCount = 0;
const maxWarnings = 500;
function warn(...args) {
if (warnCount === maxWarnings)
return;
warnCount++;
if (warnCount === maxWarnings) {
console.warn("PixiJS Warning: too many warnings, no more warnings will be reported to the console by PixiJS.");
} else {
console.warn("PixiJS Warning: ", ...args);
}
}
export { warn };
//# sourceMappingURL=warn.mjs.map

1
node_modules/pixi.js/lib/utils/logging/warn.mjs.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"warn.mjs","sources":["../../../src/utils/logging/warn.ts"],"sourcesContent":["let warnCount = 0;\nconst maxWarnings = 500;\n\n/**\n * Logs a PixiJS warning message to the console. Stops logging after 500 warnings have been logged.\n * @param args - The warning message(s) to log\n * @returns {void}\n * @memberof utils\n * @ignore\n */\nexport function warn(...args: any[])\n{\n if (warnCount === maxWarnings) return;\n\n warnCount++;\n\n if (warnCount === maxWarnings)\n {\n console.warn('PixiJS Warning: too many warnings, no more warnings will be reported to the console by PixiJS.');\n }\n else\n {\n console.warn('PixiJS Warning: ', ...args);\n }\n}\n"],"names":[],"mappings":";AAAA,IAAI,SAAY,GAAA,CAAA,CAAA;AAChB,MAAM,WAAc,GAAA,GAAA,CAAA;AASb,SAAS,QAAQ,IACxB,EAAA;AACI,EAAA,IAAI,SAAc,KAAA,WAAA;AAAa,IAAA,OAAA;AAE/B,EAAA,SAAA,EAAA,CAAA;AAEA,EAAA,IAAI,cAAc,WAClB,EAAA;AACI,IAAA,OAAA,CAAQ,KAAK,gGAAgG,CAAA,CAAA;AAAA,GAGjH,MAAA;AACI,IAAQ,OAAA,CAAA,IAAA,CAAK,kBAAoB,EAAA,GAAG,IAAI,CAAA,CAAA;AAAA,GAC5C;AACJ;;;;"}