pixi.js
Version:
<p align="center"> <a href="https://pixijs.com" target="_blank" rel="noopener noreferrer"> <img height="150" src="https://files.pixijs.download/branding/pixijs-logo-transparent-dark.svg?v=1" alt="PixiJS logo"> </a> </p> <br/> <p align="center">
74 lines (73 loc) • 3.3 kB
TypeScript
import { CustomRenderPipe } from '../../../../scene/container/CustomRenderPipe';
import { RenderGroupPipe } from '../../../../scene/container/RenderGroupPipe';
import { RenderGroupSystem } from '../../../../scene/container/RenderGroupSystem';
import { SpritePipe } from '../../../../scene/sprite/SpritePipe';
import { RendererInitHook } from '../../../../utils/global/globalHooks';
import { BatcherPipe } from '../../../batcher/shared/BatcherPipe';
import { AlphaMaskPipe } from '../../../mask/alpha/AlphaMaskPipe';
import { ColorMaskPipe } from '../../../mask/color/ColorMaskPipe';
import { StencilMaskPipe } from '../../../mask/stencil/StencilMaskPipe';
import { BackgroundSystem } from '../background/BackgroundSystem';
import { BlendModePipe } from '../blendModes/BlendModePipe';
import { ExtractSystem } from '../extract/ExtractSystem';
import { GenerateTextureSystem } from '../extract/GenerateTextureSystem';
import { GlobalUniformSystem } from '../renderTarget/GlobalUniformSystem';
import { SchedulerSystem } from '../SchedulerSystem';
import { HelloSystem } from '../startup/HelloSystem';
import { RenderableGCSystem } from '../texture/RenderableGCSystem';
import { TextureGCSystem } from '../texture/TextureGCSystem';
import { ViewSystem } from '../view/ViewSystem';
import type { ExtractRendererOptions } from './utils/typeUtils';
/**
* Shared systems for the renderer.
* @category rendering
* @internal
*/
export declare const SharedSystems: (typeof BackgroundSystem | typeof GenerateTextureSystem | typeof GlobalUniformSystem | typeof HelloSystem | typeof ViewSystem | typeof RenderGroupSystem | typeof TextureGCSystem | typeof ExtractSystem | typeof RendererInitHook | typeof RenderableGCSystem | typeof SchedulerSystem)[];
/**
* Shared render pipes for the renderer.
* @category rendering
* @internal
*/
export declare const SharedRenderPipes: (typeof BlendModePipe | typeof BatcherPipe | typeof SpritePipe | typeof RenderGroupPipe | typeof AlphaMaskPipe | typeof StencilMaskPipe | typeof ColorMaskPipe | typeof CustomRenderPipe)[];
/**
* Options for the shared systems of a renderer.
* @category rendering
* @advanced
*/
export interface SharedRendererOptions extends ExtractRendererOptions<typeof SharedSystems>, PixiMixins.RendererOptions {
/**
* Whether to stop PixiJS from dynamically importing default extensions for the renderer.
* It is false by default, and means PixiJS will load all the default extensions, based
* on the environment e.g browser/webworker.
* If you set this to true, then you will need to manually import the systems and extensions you need.
*
* e.g.
* ```js
* import 'accessibility';
* import 'app';
* import 'events';
* import 'spritesheet';
* import 'graphics';
* import 'mesh';
* import 'text';
* import 'text-bitmap';
* import 'text-html';
* import { autoDetectRenderer } from 'pixi.js';
*
* const renderer = await autoDetectRenderer({
* width: 800,
* height: 600,
* skipExtensionImports: true,
* });
* ```
* @default false
*/
skipExtensionImports?: boolean;
/**
* @default true
* @deprecated since 8.1.6
* @see `skipExtensionImports`
*/
manageImports?: boolean;
}