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

34
node_modules/pixi.js/lib/utils/global/globalHooks.d.ts generated vendored Normal file
View File

@@ -0,0 +1,34 @@
import { type ExtensionMetadata, ExtensionType } from '../../extensions/Extensions';
import type { Application } from '../../app/Application';
import type { System } from '../../rendering/renderers/shared/system/System';
import type { Renderer } from '../../rendering/renderers/types';
declare global {
var __PIXI_APP_INIT__: undefined | ((arg: Application | Renderer, version: string) => void);
var __PIXI_RENDERER_INIT__: undefined | ((arg: Application | Renderer, version: string) => void);
}
/**
* Calls global __PIXI_APP_INIT__ hook with the application instance, after the application is initialized.
* @memberof app
*/
export declare class ApplicationInitHook {
/** @ignore */
static extension: ExtensionMetadata;
static init(): void;
static destroy(): void;
}
/**
* Calls global __PIXI_RENDERER_INIT__ hook with the renderer instance, after the renderer is initialized.
* @memberof rendering
*/
export declare class RendererInitHook implements System {
/** @ignore */
static extension: {
readonly type: readonly [ExtensionType.WebGLSystem, ExtensionType.WebGPUSystem];
readonly name: "initHook";
readonly priority: -10;
};
private _renderer;
constructor(renderer: Renderer);
init(): void;
destroy(): void;
}

39
node_modules/pixi.js/lib/utils/global/globalHooks.js generated vendored Normal file
View File

@@ -0,0 +1,39 @@
'use strict';
var Extensions = require('../../extensions/Extensions.js');
var _const = require('../const.js');
"use strict";
class ApplicationInitHook {
static init() {
globalThis.__PIXI_APP_INIT__?.(this, _const.VERSION);
}
static destroy() {
}
}
/** @ignore */
ApplicationInitHook.extension = Extensions.ExtensionType.Application;
class RendererInitHook {
constructor(renderer) {
this._renderer = renderer;
}
init() {
globalThis.__PIXI_RENDERER_INIT__?.(this._renderer, _const.VERSION);
}
destroy() {
this._renderer = null;
}
}
/** @ignore */
RendererInitHook.extension = {
type: [
Extensions.ExtensionType.WebGLSystem,
Extensions.ExtensionType.WebGPUSystem
],
name: "initHook",
priority: -10
};
exports.ApplicationInitHook = ApplicationInitHook;
exports.RendererInitHook = RendererInitHook;
//# sourceMappingURL=globalHooks.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"globalHooks.js","sources":["../../../src/utils/global/globalHooks.ts"],"sourcesContent":["import { type ExtensionMetadata, ExtensionType } from '../../extensions/Extensions';\nimport { VERSION } from '../const';\n\nimport type { Application } from '../../app/Application';\nimport type { System } from '../../rendering/renderers/shared/system/System';\nimport type { Renderer } from '../../rendering/renderers/types';\n\ndeclare global\n{\n /* eslint-disable no-var */\n var __PIXI_APP_INIT__: undefined | ((arg: Application | Renderer, version: string) => void);\n var __PIXI_RENDERER_INIT__: undefined | ((arg: Application | Renderer, version: string) => void);\n /* eslint-enable no-var */\n}\n\n/**\n * Calls global __PIXI_APP_INIT__ hook with the application instance, after the application is initialized.\n * @memberof app\n */\nexport class ApplicationInitHook\n{\n /** @ignore */\n public static extension: ExtensionMetadata = ExtensionType.Application;\n public static init(): void\n {\n globalThis.__PIXI_APP_INIT__?.(this as unknown as Application, VERSION);\n }\n public static destroy(): void\n {\n // nothing to do\n }\n}\n\n/**\n * Calls global __PIXI_RENDERER_INIT__ hook with the renderer instance, after the renderer is initialized.\n * @memberof rendering\n */\nexport class RendererInitHook implements System\n{\n /** @ignore */\n public static extension = {\n type: [\n ExtensionType.WebGLSystem,\n ExtensionType.WebGPUSystem,\n ],\n name: 'initHook',\n priority: -10,\n } as const;\n\n private _renderer: Renderer;\n\n constructor(renderer: Renderer)\n {\n this._renderer = renderer;\n }\n public init(): void\n {\n globalThis.__PIXI_RENDERER_INIT__?.(this._renderer, VERSION);\n }\n public destroy(): void\n {\n this._renderer = null;\n }\n}\n"],"names":["VERSION","ExtensionType"],"mappings":";;;;;;AAmBO,MAAM,mBACb,CAAA;AAAA,EAGI,OAAc,IACd,GAAA;AACI,IAAW,UAAA,CAAA,iBAAA,GAAoB,MAAgCA,cAAO,CAAA,CAAA;AAAA,GAC1E;AAAA,EACA,OAAc,OACd,GAAA;AAAA,GAEA;AACJ,CAAA;AAAA;AAZa,mBAAA,CAGK,YAA+BC,wBAAc,CAAA,WAAA,CAAA;AAexD,MAAM,gBACb,CAAA;AAAA,EAaI,YAAY,QACZ,EAAA;AACI,IAAA,IAAA,CAAK,SAAY,GAAA,QAAA,CAAA;AAAA,GACrB;AAAA,EACO,IACP,GAAA;AACI,IAAW,UAAA,CAAA,sBAAA,GAAyB,IAAK,CAAA,SAAA,EAAWD,cAAO,CAAA,CAAA;AAAA,GAC/D;AAAA,EACO,OACP,GAAA;AACI,IAAA,IAAA,CAAK,SAAY,GAAA,IAAA,CAAA;AAAA,GACrB;AACJ,CAAA;AAAA;AA1Ba,gBAAA,CAGK,SAAY,GAAA;AAAA,EACtB,IAAM,EAAA;AAAA,IACFC,wBAAc,CAAA,WAAA;AAAA,IACdA,wBAAc,CAAA,YAAA;AAAA,GAClB;AAAA,EACA,IAAM,EAAA,UAAA;AAAA,EACN,QAAU,EAAA,CAAA,EAAA;AACd,CAAA;;;;;"}

36
node_modules/pixi.js/lib/utils/global/globalHooks.mjs generated vendored Normal file
View File

@@ -0,0 +1,36 @@
import { ExtensionType } from '../../extensions/Extensions.mjs';
import { VERSION } from '../const.mjs';
"use strict";
class ApplicationInitHook {
static init() {
globalThis.__PIXI_APP_INIT__?.(this, VERSION);
}
static destroy() {
}
}
/** @ignore */
ApplicationInitHook.extension = ExtensionType.Application;
class RendererInitHook {
constructor(renderer) {
this._renderer = renderer;
}
init() {
globalThis.__PIXI_RENDERER_INIT__?.(this._renderer, VERSION);
}
destroy() {
this._renderer = null;
}
}
/** @ignore */
RendererInitHook.extension = {
type: [
ExtensionType.WebGLSystem,
ExtensionType.WebGPUSystem
],
name: "initHook",
priority: -10
};
export { ApplicationInitHook, RendererInitHook };
//# sourceMappingURL=globalHooks.mjs.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"globalHooks.mjs","sources":["../../../src/utils/global/globalHooks.ts"],"sourcesContent":["import { type ExtensionMetadata, ExtensionType } from '../../extensions/Extensions';\nimport { VERSION } from '../const';\n\nimport type { Application } from '../../app/Application';\nimport type { System } from '../../rendering/renderers/shared/system/System';\nimport type { Renderer } from '../../rendering/renderers/types';\n\ndeclare global\n{\n /* eslint-disable no-var */\n var __PIXI_APP_INIT__: undefined | ((arg: Application | Renderer, version: string) => void);\n var __PIXI_RENDERER_INIT__: undefined | ((arg: Application | Renderer, version: string) => void);\n /* eslint-enable no-var */\n}\n\n/**\n * Calls global __PIXI_APP_INIT__ hook with the application instance, after the application is initialized.\n * @memberof app\n */\nexport class ApplicationInitHook\n{\n /** @ignore */\n public static extension: ExtensionMetadata = ExtensionType.Application;\n public static init(): void\n {\n globalThis.__PIXI_APP_INIT__?.(this as unknown as Application, VERSION);\n }\n public static destroy(): void\n {\n // nothing to do\n }\n}\n\n/**\n * Calls global __PIXI_RENDERER_INIT__ hook with the renderer instance, after the renderer is initialized.\n * @memberof rendering\n */\nexport class RendererInitHook implements System\n{\n /** @ignore */\n public static extension = {\n type: [\n ExtensionType.WebGLSystem,\n ExtensionType.WebGPUSystem,\n ],\n name: 'initHook',\n priority: -10,\n } as const;\n\n private _renderer: Renderer;\n\n constructor(renderer: Renderer)\n {\n this._renderer = renderer;\n }\n public init(): void\n {\n globalThis.__PIXI_RENDERER_INIT__?.(this._renderer, VERSION);\n }\n public destroy(): void\n {\n this._renderer = null;\n }\n}\n"],"names":[],"mappings":";;;;AAmBO,MAAM,mBACb,CAAA;AAAA,EAGI,OAAc,IACd,GAAA;AACI,IAAW,UAAA,CAAA,iBAAA,GAAoB,MAAgC,OAAO,CAAA,CAAA;AAAA,GAC1E;AAAA,EACA,OAAc,OACd,GAAA;AAAA,GAEA;AACJ,CAAA;AAAA;AAZa,mBAAA,CAGK,YAA+B,aAAc,CAAA,WAAA,CAAA;AAexD,MAAM,gBACb,CAAA;AAAA,EAaI,YAAY,QACZ,EAAA;AACI,IAAA,IAAA,CAAK,SAAY,GAAA,QAAA,CAAA;AAAA,GACrB;AAAA,EACO,IACP,GAAA;AACI,IAAW,UAAA,CAAA,sBAAA,GAAyB,IAAK,CAAA,SAAA,EAAW,OAAO,CAAA,CAAA;AAAA,GAC/D;AAAA,EACO,OACP,GAAA;AACI,IAAA,IAAA,CAAK,SAAY,GAAA,IAAA,CAAA;AAAA,GACrB;AACJ,CAAA;AAAA;AA1Ba,gBAAA,CAGK,SAAY,GAAA;AAAA,EACtB,IAAM,EAAA;AAAA,IACF,aAAc,CAAA,WAAA;AAAA,IACd,aAAc,CAAA,YAAA;AAAA,GAClB;AAAA,EACA,IAAM,EAAA,UAAA;AAAA,EACN,QAAU,EAAA,CAAA,EAAA;AACd,CAAA;;;;"}