Methods
add (…extensions) extensions
Register new extensions with PixiJS.
| Name | Type | Description |
|---|---|---|
extensions |
Array<ExtensionFormatLoose | any> |
The spread of extensions to add to PixiJS. |
Returns:
| Type | Description |
|---|---|
| extensions | For chaining. |
handle (type, onAdd, onRemove) extensions
Internal method to handle extensions by name.
| Name | Type | Description |
|---|---|---|
type |
ExtensionType |
The extension type. |
onAdd |
ExtensionHandler |
Function for handling when extensions are added/registered passes ExtensionFormat. |
onRemove |
ExtensionHandler |
Function for handling when extensions are removed/unregistered passes ExtensionFormat. |
Returns:
| Type | Description |
|---|---|
| extensions | For chaining. |
handleByList (type, list, defaultPriority) extensions
Handle a type, but using a list of extensions.
| Name | Type | Default | Description |
|---|---|---|---|
type |
ExtensionType |
Type of extension to handle. |
|
list |
any[] |
The list of extensions. |
|
defaultPriority |
number | -1 |
The default priority to use if none is specified. |
Returns:
| Type | Description |
|---|---|
| extensions | For chaining. |
handleByMap (type, map) extensions
Handle a type, but using a map by name property.
| Name | Type | Description |
|---|---|---|
type |
ExtensionType |
Type of extension to handle. |
map |
Record<string, any> |
The object map of named extensions. |
Returns:
| Type | Description |
|---|---|
| extensions | For chaining. |
handleByNamedList (type, map, defaultPriority) extensions
Handle a type, but using a list of extensions with a name property.
| Name | Type | Default | Description |
|---|---|---|---|
type |
ExtensionType |
Type of extension to handle. |
|
map |
{ name : string, value : any }[] |
The array of named extensions. |
|
defaultPriority |
number | -1 |
Fallback priority if none is defined. |
Returns:
| Type | Description |
|---|---|
| extensions | For chaining. |
remove (…extensions) extensions
Remove extensions from PixiJS.
| Name | Type | Description |
|---|---|---|
extensions |
Array<ExtensionFormatLoose | any> |
Extensions to be removed. |
Returns:
| Type | Description |
|---|---|
| extensions | For chaining. |