UNPKG

848 BTypeScriptView Raw
1import type { ExtensionMetadata } from '@pixi/extensions';
2import type { IRenderer } from '../IRenderer';
3import type { ISystem } from '../system/ISystem';
4export interface IRendererPlugins extends GlobalMixins.IRendererPlugins {
5 [key: string]: any;
6}
7/**
8 * Manages the functionality that allows users to extend pixi functionality via additional plugins.
9 * @memberof PIXI
10 */
11export declare class PluginSystem implements ISystem {
12 /** @ignore */
13 static extension: ExtensionMetadata;
14 /** @ignore */
15 rendererPlugins: IRendererPlugins;
16 /**
17 * Collection of plugins.
18 * @readonly
19 * @member {object}
20 */
21 readonly plugins: IRendererPlugins;
22 private renderer;
23 constructor(renderer: IRenderer);
24 /**
25 * Initialize the plugins.
26 * @protected
27 */
28 init(): void;
29 destroy(): void;
30}