PIXI.extensions
namespace extensions
Global registration of all PixiJS extensions. One-stop-shop for extensibility.
Summary
Methods from extensions
PIXI.extensions |
|
PIXI.extensions |
|
PIXI.extensions |
|
PIXI.extensions |
|
PIXI.extensions |
|
Public Methods
add(extensions: Array<PIXI.ExtensionFormatLoose | any>) → {PIXI.extensions}
Register new extensions with PixiJS.
Name | Type | Description |
---|---|---|
extensions | Array<PIXI.ExtensionFormatLoose | any> |
The spread of extensions to add to PixiJS. |
Type | Description |
---|---|
PIXI.extensions |
For chaining. |
handle(type: PIXI.ExtensionType, onAdd: ExtensionHandler, onRemove: ExtensionHandler) → {PIXI.extensions}
Internal method to handle extensions by name.
Name | Type | Description |
---|---|---|
type | PIXI.ExtensionType |
The extension type. |
onAdd | ExtensionHandler |
Function for handling when extensions are added/registered passes PIXI.ExtensionFormat. |
onRemove | ExtensionHandler |
Function for handling when extensions are removed/unregistered passes PIXI.ExtensionFormat. |
Type | Description |
---|---|
PIXI.extensions |
For chaining. |
handleByList(type: PIXI.ExtensionType, list: any[]) → {PIXI.extensions}
Handle a type, but using a list of extensions.
Name | Type | Description |
---|---|---|
type | PIXI.ExtensionType |
Type of extension to handle. |
list | any[] |
The list of extensions. |
Type | Description |
---|---|
PIXI.extensions |
For chaining. |
handleByMap(type: PIXI.ExtensionType, map: Record<string, any>) → {PIXI.extensions}
Handle a type, but using a map by name
property.
Name | Type | Description |
---|---|---|
type | PIXI.ExtensionType |
Type of extension to handle. |
map | Record<string, any> |
The object map of named extensions. |
Type | Description |
---|---|
PIXI.extensions |
For chaining. |
remove(extensions: Array<PIXI.ExtensionFormatLoose | any>) → {PIXI.extensions}
Remove extensions from PixiJS.
Name | Type | Description |
---|---|---|
extensions | Array<PIXI.ExtensionFormatLoose | any> |
Extensions to be removed. |
Type | Description |
---|---|
PIXI.extensions |
For chaining. |