Extends
Implements
- Renderable
Members
The X-coordinate value of the normalized local X axis, the first column of the local transformation matrix without a scale.
- Default Value:
- 1
The X-coordinate value of the normalized local Y axis, the second column of the local transformation matrix without a scale.
- Default Value:
- 0
_pivot ObservablePoint
The pivot point of the container that it rotates around.
_position ObservablePoint
The coordinate of the object relative to the local coordinates of the parent.
_scale ObservablePoint
The scale factor of the object.
_skew ObservablePoint
The skew amount, on the x and y axis.
The Y-coordinate value of the normalized local X axis, the first column of the local transformation matrix without a scale.
- Default Value:
- 0
The Y-coordinate value of the normalized local Y axis, the second column of the local transformation matrix without a scale.
- Default Value:
- 1
- Default Value:
- 15
Flag for if the object is accessible. If true AccessibilityManager will overlay a shadow div with attributes set
- Default Value:
- false
Setting to false will prevent any children inside this container to be accessible. Defaults to true.
- Default Value:
- true
Sets the aria-label attribute of the shadow div
- Default Value:
- undefined
Specify the pointer-events the accessible div will use Defaults to auto.
- Default Value:
- 'auto'
Sets the title attribute of the shadow div If accessibleTitle AND accessibleHint has not been this will default to 'container [tabIndex]'
- Default Value:
- undefined
Specify the type of div the accessible layer is. Screen readers treat the element differently depending on this type. Defaults to button.
- Default Value:
- 'button'
The angle of the object in degrees. 'rotation' and 'angle' have the same effect on a display object; rotation is in radians, angle is in degrees.
- Default Value:
- false
- Default Value:
- false
Interaction shape. Children will be hit first, then this shape will be checked. Setting this will cause this shape to be checked in hit tests rather than the container's bounds.
- Default Value:
- undefined
Example
import { Rectangle, Sprite } from 'pixi.js';
const sprite = new Sprite(texture);
sprite.interactive = true;
sprite.hitArea = new Rectangle(0, 0, 100, 100);
- Default Value:
- true
Determines if the children to the container can be clicked/touched
Setting this to false allows PixiJS to bypass a recursive hitTest function
- Default Value:
- true
- Default Value:
- false
- Default Value:
- true
layerBlendMode BLEND_MODES
- Default Value:
- "normal"
- Default Value:
- 4294967295
layerGroup LayerGroup
- Default Value:
- undefined
- Default Value:
- 3
localBlendMode BLEND_MODES
- Default Value:
- "inherit"
- Default Value:
- 4294967295
- Default Value:
- 3
- Default Value:
- true
Property-based event handler for the click event.
- Default Value:
- null
Example
this.onclick = (event) => {
//some function here that happens on click
}
Property-based event handler for the globalmousemove event.
- Default Value:
- null
Example
this.onglobalmousemove = (event) => {
//some function here that happens on globalmousemove
}
Property-based event handler for the globalpointermove event.
- Default Value:
- null
Example
this.onglobalpointermove = (event) => {
//some function here that happens on globalpointermove
}
Property-based event handler for the globaltouchmove event.
- Default Value:
- null
Example
this.onglobaltouchmove = (event) => {
//some function here that happens on globaltouchmove
}
Property-based event handler for the mousedown event.
- Default Value:
- null
Example
this.onmousedown = (event) => {
//some function here that happens on mousedown
}
Property-based event handler for the mouseenter event.
- Default Value:
- null
Example
this.onmouseenter = (event) => {
//some function here that happens on mouseenter
}
Property-based event handler for the mouseleave event.
- Default Value:
- null
Example
this.onmouseleave = (event) => {
//some function here that happens on mouseleave
}
Property-based event handler for the mousemove event.
- Default Value:
- null
Example
this.onmousemove = (event) => {
//some function here that happens on mousemove
}
Property-based event handler for the mouseout event.
- Default Value:
- null
Example
this.onmouseout = (event) => {
//some function here that happens on mouseout
}
Property-based event handler for the mouseover event.
- Default Value:
- null
Example
this.onmouseover = (event) => {
//some function here that happens on mouseover
}
Property-based event handler for the mouseup event.
- Default Value:
- null
Example
this.onmouseup = (event) => {
//some function here that happens on mouseup
}
Property-based event handler for the mouseupoutside event.
- Default Value:
- null
Example
this.onmouseupoutside = (event) => {
//some function here that happens on mouseupoutside
}
Property-based event handler for the pointercancel event.
- Default Value:
- null
Example
this.onpointercancel = (event) => {
//some function here that happens on pointercancel
}
Property-based event handler for the pointerdown event.
- Default Value:
- null
Example
this.onpointerdown = (event) => {
//some function here that happens on pointerdown
}
Property-based event handler for the pointerenter event.
- Default Value:
- null
Example
this.onpointerenter = (event) => {
//some function here that happens on pointerenter
}
Property-based event handler for the pointerleave event.
- Default Value:
- null
Example
this.onpointerleave = (event) => {
//some function here that happens on pointerleave
}
Property-based event handler for the pointermove event.
- Default Value:
- null
Example
this.onpointermove = (event) => {
//some function here that happens on pointermove
}
Property-based event handler for the pointerout event.
- Default Value:
- null
Example
this.onpointerout = (event) => {
//some function here that happens on pointerout
}
Property-based event handler for the pointerover event.
- Default Value:
- null
Example
this.onpointerover = (event) => {
//some function here that happens on pointerover
}
Property-based event handler for the pointertap event.
- Default Value:
- null
Example
this.onpointertap = (event) => {
//some function here that happens on pointertap
}
Property-based event handler for the pointerup event.
- Default Value:
- null
Example
this.onpointerup = (event) => {
//some function here that happens on pointerup
}
Property-based event handler for the pointerupoutside event.
- Default Value:
- null
Example
this.onpointerupoutside = (event) => {
//some function here that happens on pointerupoutside
}
Property-based event handler for the rightclick event.
- Default Value:
- null
Example
this.onrightclick = (event) => {
//some function here that happens on rightclick
}
Property-based event handler for the rightdown event.
- Default Value:
- null
Example
this.onrightdown = (event) => {
//some function here that happens on rightdown
}
Property-based event handler for the rightup event.
- Default Value:
- null
Example
this.onrightup = (event) => {
//some function here that happens on rightup
}
Property-based event handler for the rightupoutside event.
- Default Value:
- null
Example
this.onrightupoutside = (event) => {
//some function here that happens on rightupoutside
}
Property-based event handler for the tap event.
- Default Value:
- null
Example
this.ontap = (event) => {
//some function here that happens on tap
}
Property-based event handler for the touchcancel event.
- Default Value:
- null
Example
this.ontouchcancel = (event) => {
//some function here that happens on touchcancel
}
Property-based event handler for the touchend event.
- Default Value:
- null
Example
this.ontouchend = (event) => {
//some function here that happens on touchend
}
Property-based event handler for the touchendoutside event.
- Default Value:
- null
Example
this.ontouchendoutside = (event) => {
//some function here that happens on touchendoutside
}
Property-based event handler for the touchmove event.
- Default Value:
- null
Example
this.ontouchmove = (event) => {
//some function here that happens on touchmove
}
Property-based event handler for the touchstart event.
- Default Value:
- null
Example
this.ontouchstart = (event) => {
//some function here that happens on touchstart
}
Property-based event handler for the wheel event.
- Default Value:
- null
Example
this.onwheel = (event) => {
//some function here that happens on wheel
}
- Default Value:
- 0
The rotation of the object in radians. 'rotation' and 'angle' have the same effect on a display object; rotation is in radians, angle is in degrees.
- Default Value:
- 0
- TODO
-
- Needs docs.
- Default Value:
- -1
The position of the container on the x axis relative to the local coordinates of the parent. An alias to position.x
The position of the container on the y axis relative to the local coordinates of the parent. An alias to position.y
Methods
Mixes all enumerable properties and methods from a source object to Container.
| Name | Type | Description |
|---|---|---|
source |
Dict<any> |
The source of properties and methods to mix in. |
addChild (…children) Container
Adds one or more children to the container.
Multiple items can be added like so: myContainer.addChild(thingOne, thingTwo, thingThree)
| Name | Type | Description |
|---|---|---|
children |
Container |
The Container(s) to add to the container |
Returns:
| Type | Description |
|---|---|
| Container |
|
addChildAt (child, index) Container
Adds a child to the container at a specified index. If the index is out of bounds an error will be thrown. If the child is already in this container, it will be moved to the specified index.
| Name | Type | Description |
|---|---|---|
child |
Container |
The child to add. |
index |
number |
The absolute index where the child will be positioned at the end of the operation. |
Returns:
| Type | Description |
|---|---|
| Container | The child that was added. |
Unlike on or addListener which are methods from EventEmitter, addEventListener
seeks to be compatible with the DOM's addEventListener with support for options.
IMPORTANT: Only available if using the @pixi/events package.
| Name | Type | Attributes | Description |
|---|---|---|---|
type |
string |
The type of event to listen to. |
|
listener |
EventListenerOrEventListenerObject |
The listener callback or object. |
|
options |
AddListenerOptions |
<optional> |
Listener options, used for capture phase. |
Example
// Tell the user whether they did a single, double, triple, or nth click.
button.addEventListener('click', {
handleEvent(e): {
let prefix;
switch (e.detail) {
case 1: prefix = 'single'; break;
case 2: prefix = 'double'; break;
case 3: prefix = 'triple'; break;
default: prefix = e.detail + 'th'; break;
}
console.log('That was a ' + prefix + 'click');
}
});
// But skip the first click!
button.parent.addEventListener('click', function blockClickOnce(e) {
e.stopImmediatePropagation();
button.parent.removeEventListener('click', blockClickOnce, true);
}, {
capture: true,
});
Removes all internal references and listeners as well as removes children from the display list.
Do not use a Container after calling destroy.
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
options |
DestroyOptions | false |
Options parameter. A boolean will act as if all options have been set to that value |
|
options.children |
boolean |
<optional> |
false |
if set to true, all the children will have their destroy method called as well. 'options' will be passed on to those calls. |
options.texture |
boolean |
<optional> |
false |
Only used for children with textures e.g. Sprites. If options.children is set to true it should destroy the texture of the child sprite |
options.textureSource |
boolean |
<optional> |
false |
Only used for children with textures e.g. Sprites. If options.children is set to true it should destroy the texture source of the child sprite |
options.context |
boolean |
<optional> |
false |
Only used for children with graphicsContexts e.g. Graphics. If options.children is set to true it should destroy the context of the child graphics |
Dispatch the event on this Container using the event's EventBoundary.
The target of the event is set to this and the defaultPrevented flag is cleared before dispatch.
IMPORTANT: Only available if using the @pixi/events package.
| Name | Type | Description |
|---|---|---|
e |
Event |
The event to dispatch. |
Returns:
| Type | Description |
|---|---|
| boolean | Whether the preventDefault() method was not invoked. |
Example
// Reuse a click event!
button.dispatchEvent(clickEvent);
Enable interaction events for the Container. Touch, pointer and mouse.
This now replaces the interactive property.
There are 5 types of interaction settings:
'none': Ignores all interaction events, even on its children.'passive': Does not emit events and ignores all hit testing on itself and non-interactive children. Interactive children will still emit events.'auto': Does not emit events but is hit tested if parent is interactive. Same asinteractive = falsein v7'static': Emit events and is hit tested. Same asinteraction = truein v7'dynamic': Emits events and is hit tested but will also receive mock interaction events fired from a ticker to allow for interaction when the mouse isn't moving
- Since:
- 7.2.0
Example
import { Sprite } from 'pixi.js';
const sprite = new Sprite(texture);
sprite.eventMode = 'static';
sprite.on('tap', (event) => {
// Handle event
});
Returns the child at the specified index
| Name | Type | Description |
|---|---|---|
index |
number |
The index to get the child at |
Returns:
| Type | Description |
|---|---|
| U |
|
getChildByLabel (label, deep) Container
Returns the first child in the container with the specified label.
Recursive searches are done in a pre-order traversal.
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
label |
string | RegExp |
Instance label. |
||
deep |
boolean |
<optional> |
false |
Whether to search recursively |
Returns:
| Type | Description |
|---|---|
| Container | The child with the specified label. |
getChildByName (name, deep) Container Deprecated`` : since 8.0.0
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
name |
string |
Instance name. |
||
deep |
boolean |
<optional> |
false |
Whether to search recursively |
Returns:
| Type | Description |
|---|---|
| Container | The child with the specified name. |
Returns the index position of a child Container instance
| Name | Type | Description |
|---|---|---|
child |
Container |
The Container instance to identify |
Returns:
| Type | Description |
|---|---|
| number |
|
getChildrenByLabel (label, deep, out) Array<Container>
Returns all children in the container with the specified label.
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
label |
string | RegExp |
Instance label. |
||
deep |
boolean |
<optional> |
false |
Whether to search recursively |
out |
Array<Container> |
<optional> |
[] |
The array to store matching children in. |
Returns:
| Type | Description |
|---|---|
| Array<Container> | An array of children with the specified label. |
getGlobalPosition (point, skipUpdate) Point
Returns the global position of the container.
| Name | Type | Default | Description |
|---|---|---|---|
point |
Point |
The optional point to write the global value to. |
|
skipUpdate |
boolean | false |
Should we skip the update transform. |
Returns:
| Type | Description |
|---|---|
| Point |
|
Enable interaction events for the Container. Touch, pointer and mouse
Determines if the container is interactive or not
- Since:
- 7.2.0
Returns:
| Type | Description |
|---|---|
| boolean | Whether the container is interactive or not |
Example
import { Sprite } from 'pixi.js';
const sprite = new Sprite(texture);
sprite.eventMode = 'static';
sprite.isInteractive(); // true
sprite.eventMode = 'dynamic';
sprite.isInteractive(); // true
sprite.eventMode = 'none';
sprite.isInteractive(); // false
sprite.eventMode = 'passive';
sprite.isInteractive(); // false
sprite.eventMode = 'auto';
sprite.isInteractive(); // false
| Name | Type | Attributes | Description |
|---|---|---|---|
point |
ObservablePoint |
<optional> |
removeChild (…children) Container
Removes one or more children from the container.
| Name | Type | Description |
|---|---|---|
children |
Container |
The Container(s) to remove |
Returns:
| Type | Description |
|---|---|
| Container | The first child that was removed. |
Removes a child from the specified index position.
| Name | Type | Description |
|---|---|---|
index |
number |
The index to get the child from |
Returns:
| Type | Description |
|---|---|
| U | The child that was removed. |
removeChildren (beginIndex, endIndex) Container[]
Removes all children from this container that are within the begin and end indexes.
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
beginIndex |
number | 0 |
The beginning position. |
|
endIndex |
number |
<optional> |
The ending position. Default value is size of the container. |
Returns:
| Type | Description |
|---|---|
| Container[] |
|
Unlike off or removeListener which are methods from EventEmitter, removeEventListener
seeks to be compatible with the DOM's removeEventListener with support for options.
IMPORTANT: Only available if using the @pixi/events package.
| Name | Type | Attributes | Description |
|---|---|---|---|
type |
string |
The type of event the listener is bound to. |
|
listener |
EventListenerOrEventListenerObject |
The listener callback or object. |
|
options |
RemoveListenerOptions |
<optional> |
The original listener options. This is required to deregister a capture phase listener. |
Changes the position of an existing child in the container container
| Name | Type | Description |
|---|---|---|
child |
Container |
The child Container instance for which you want to change the index number |
index |
number |
The resulting index number for the child container |
Calculates the global position of the container.
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
position |
PointData |
The world origin to calculate from. |
||
point |
P |
<optional> |
A Point object in which to store the value, optional (otherwise will create a new Point). |
|
skipUpdate |
boolean | false |
Should we skip the update transform. |
Returns:
| Type | Description |
|---|---|
| P |
|
Calculates the local position of the container relative to another point.
| Name | Type | Attributes | Description |
|---|---|---|---|
position |
PointData |
The world origin to calculate from. |
|
from |
Container |
<optional> |
The Container to calculate the global position from. |
point |
P |
<optional> |
A Point object in which to store the value, optional (otherwise will create a new Point). |
skipUpdate |
boolean |
<optional> |
Should we skip the update transform |
Returns:
| Type | Description |
|---|---|
| P |
|
Events
Fired when a pointer device button (usually a mouse left-button) is pressed and released on
the container. Container's eventMode property must be set to static or 'dynamic' to fire event.
A click event fires after the pointerdown and pointerup events, in that
order. If the mouse is moved over another Container after the pointerdown event, the
click event is fired on the most specific common ancestor of the two target Containers.
The detail property of the event is the number of clicks that occurred within a 200ms
window of each other upto the current click. For example, it will be 2 for a double click.
These events are propagating from the EventSystem in @pixi/events.
| Name | Type | Description |
|---|---|---|
event |
FederatedPointerEvent |
Event |
Capture phase equivalent of click.
These events are propagating from the EventSystem in @pixi/events.
| Name | Type | Description |
|---|---|---|
event |
FederatedPointerEvent |
Event |
Fired when a pointer device (usually a mouse) is moved globally over the scene.
Container's eventMode property must be set to static or 'dynamic' to fire event.
These events are propagating from the EventSystem in @pixi/events.
| Name | Type | Description |
|---|---|---|
event |
FederatedPointerEvent |
Event |
Fired when a pointer device is moved globally over the scene.
Container's eventMode property must be set to static or 'dynamic' to fire event.
These events are propagating from the EventSystem in @pixi/events.
| Name | Type | Description |
|---|---|---|
event |
FederatedPointerEvent |
Event |
Fired when a touch point is moved globally over the scene.
Container's eventMode property must be set to static or 'dynamic' to fire event.
These events are propagating from the EventSystem in @pixi/events.
| Name | Type | Description |
|---|---|---|
event |
FederatedPointerEvent |
Event |
Fired when a mouse button (usually a mouse left-button) is pressed on the container.
Container's eventMode property must be set to static or 'dynamic' to fire event.
These events are propagating from the EventSystem in @pixi/events.
| Name | Type | Description |
|---|---|---|
event |
FederatedPointerEvent |
The mousedown event. |
Capture phase equivalent of mousedown.
These events are propagating from the EventSystem in @pixi/events.
| Name | Type | Description |
|---|---|---|
event |
FederatedPointerEvent |
The capture phase mousedown. |
Fired when the mouse pointer is moved over a Container and its descendant's hit testing boundaries.
These events are propagating from the EventSystem in @pixi/events.
| Name | Type | Description |
|---|---|---|
event |
FederatedPointerEvent |
Event |
Capture phase equivalent of mouseenter
These events are propagating from the EventSystem in @pixi/events.
| Name | Type | Description |
|---|---|---|
event |
FederatedPointerEvent |
Event |
Fired when the mouse pointer exits a Container and its descendants.
These events are propagating from the EventSystem in @pixi/events.
| Name | Type | Description |
|---|---|---|
event |
FederatedPointerEvent |
Capture phase equivalent of mouseleave.
These events are propagating from the EventSystem in @pixi/events.
| Name | Type | Description |
|---|---|---|
event |
FederatedPointerEvent |
Event |
Fired when a pointer device (usually a mouse) is moved while over the container.
Container's eventMode property must be set to static or 'dynamic' to fire event.
These events are propagating from the EventSystem in @pixi/events.
| Name | Type | Description |
|---|---|---|
event |
FederatedPointerEvent |
Event |
Capture phase equivalent of mousemove.
These events are propagating from the EventSystem in @pixi/events.
| Name | Type | Description |
|---|---|---|
event |
FederatedPointerEvent |
Event |
Fired when a pointer device (usually a mouse) is moved off the container.
Container's eventMode property must be set to static or 'dynamic' to fire event.
This may be fired on a Container that was removed from the scene graph immediately after
a mouseover event.
These events are propagating from the EventSystem in @pixi/events.
| Name | Type | Description |
|---|---|---|
event |
FederatedPointerEvent |
Event |
Capture phase equivalent of mouseout.
These events are propagating from the EventSystem in @pixi/events.
| Name | Type | Description |
|---|---|---|
event |
FederatedPointerEvent |
Event |
Fired when a pointer device (usually a mouse) is moved onto the container.
Container's eventMode property must be set to static or 'dynamic' to fire event.
These events are propagating from the EventSystem in @pixi/events.
| Name | Type | Description |
|---|---|---|
event |
FederatedPointerEvent |
Event |
Capture phase equivalent of mouseover.
These events are propagating from the EventSystem in @pixi/events.
| Name | Type | Description |
|---|---|---|
event |
FederatedPointerEvent |
Event |
Fired when a pointer device button (usually a mouse left-button) is released over the container.
Container's eventMode property must be set to static or 'dynamic' to fire event.
These events are propagating from the EventSystem in @pixi/events.
| Name | Type | Description |
|---|---|---|
event |
FederatedPointerEvent |
Event |
Capture phase equivalent of mouseup.
These events are propagating from the EventSystem in @pixi/events.
| Name | Type | Description |
|---|---|---|
event |
FederatedPointerEvent |
Event |
Fired when a pointer device button (usually a mouse left-button) is released outside the
container that initially registered a
mousedown.
Container's eventMode property must be set to static or 'dynamic' to fire event.
This event is specific to the Federated Events API. It does not have a capture phase, unlike most of the
other events. It only bubbles to the most specific ancestor of the targets of the corresponding pointerdown
and pointerup events, i.e. the target of the click event.
These events are propagating from the EventSystem in @pixi/events.
| Name | Type | Description |
|---|---|---|
event |
FederatedPointerEvent |
Event |
Capture phase equivalent of mouseupoutside.
These events are propagating from the EventSystem in @pixi/events.
| Name | Type | Description |
|---|---|---|
event |
FederatedPointerEvent |
Event |
Fired when the operating system cancels a pointer event.
Container's eventMode property must be set to static or 'dynamic' to fire event.
These events are propagating from the EventSystem in @pixi/events.
| Name | Type | Description |
|---|---|---|
event |
FederatedPointerEvent |
Event |
Capture phase equivalent of pointercancel.
These events are propagating from the EventSystem in @pixi/events.
| Name | Type | Description |
|---|---|---|
event |
FederatedPointerEvent |
Event |
Fired when a pointer device button is pressed on the container.
Container's eventMode property must be set to static or 'dynamic' to fire event.
These events are propagating from the EventSystem in @pixi/events.
| Name | Type | Description |
|---|---|---|
event |
FederatedPointerEvent |
Event |
Capture phase equivalent of pointerdown.
These events are propagating from the EventSystem in @pixi/events.
| Name | Type | Description |
|---|---|---|
event |
FederatedPointerEvent |
Event |
Fired when the pointer is moved over a Container and its descendant's hit testing boundaries.
These events are propagating from the EventSystem in @pixi/events.
| Name | Type | Description |
|---|---|---|
event |
FederatedPointerEvent |
Event |
Capture phase equivalent of pointerenter
These events are propagating from the EventSystem in @pixi/events.
| Name | Type | Description |
|---|---|---|
event |
FederatedPointerEvent |
Event |
Fired when the pointer leaves the hit testing boundaries of a Container and its descendants.
This event notifies only the target and does not bubble.
These events are propagating from the EventSystem in @pixi/events.
| Name | Type | Description |
|---|---|---|
event |
FederatedPointerEvent |
The |
Capture phase equivalent of pointerleave.
These events are propagating from the EventSystem in @pixi/events.
| Name | Type | Description |
|---|---|---|
event |
FederatedPointerEvent |
Event |
Fired when a pointer device is moved while over the container.
Container's eventMode property must be set to static or 'dynamic' to fire event.
These events are propagating from the EventSystem in @pixi/events.
| Name | Type | Description |
|---|---|---|
event |
FederatedPointerEvent |
Event |
Capture phase equivalent of pointermove.
These events are propagating from the EventSystem in @pixi/events.
| Name | Type | Description |
|---|---|---|
event |
FederatedPointerEvent |
Event |
Fired when a pointer device is moved off the container.
Container's eventMode property must be set to static or 'dynamic' to fire event.
These events are propagating from the EventSystem in @pixi/events.
| Name | Type | Description |
|---|---|---|
event |
FederatedPointerEvent |
Event |
Capture phase equivalent of pointerout.
These events are propagating from the EventSystem in @pixi/events.
| Name | Type | Description |
|---|---|---|
event |
FederatedPointerEvent |
Event |
Fired when a pointer device is moved onto the container.
Container's eventMode property must be set to static or 'dynamic' to fire event.
These events are propagating from the EventSystem in @pixi/events.
| Name | Type | Description |
|---|---|---|
event |
FederatedPointerEvent |
Event |
Capture phase equivalent of pointerover.
These events are propagating from the EventSystem in @pixi/events.
| Name | Type | Description |
|---|---|---|
event |
FederatedPointerEvent |
Event |
Fired when a pointer device button is pressed and released on the container.
Container's eventMode property must be set to static or 'dynamic' to fire event.
These events are propagating from the EventSystem in @pixi/events.
| Name | Type | Description |
|---|---|---|
event |
FederatedPointerEvent |
Event |
Capture phase equivalent of pointertap.
These events are propagating from the EventSystem in @pixi/events.
| Name | Type | Description |
|---|---|---|
event |
FederatedPointerEvent |
Event |
Fired when a pointer device button is released over the container.
Container's eventMode property must be set to static or 'dynamic' to fire event.
These events are propagating from the EventSystem in @pixi/events.
| Name | Type | Description |
|---|---|---|
event |
FederatedPointerEvent |
Event |
Capture phase equivalent of pointerup.
These events are propagating from the EventSystem in @pixi/events.
| Name | Type | Description |
|---|---|---|
event |
FederatedPointerEvent |
Event |
Fired when a pointer device button is released outside the container that initially
registered a pointerdown.
Container's eventMode property must be set to static or 'dynamic' to fire event.
This event is specific to the Federated Events API. It does not have a capture phase, unlike most of the
other events. It only bubbles to the most specific ancestor of the targets of the corresponding pointerdown
and pointerup events, i.e. the target of the click event.
These events are propagating from the EventSystem in @pixi/events.
| Name | Type | Description |
|---|---|---|
event |
FederatedPointerEvent |
Event |
Capture phase equivalent of pointerupoutside.
These events are propagating from the EventSystem in @pixi/events.
| Name | Type | Description |
|---|---|---|
event |
FederatedPointerEvent |
Event |
Fired when a pointer device secondary button (usually a mouse right-button) is pressed
and released on the container. Container's eventMode
property must be set to static or 'dynamic' to fire event.
This event follows the semantics of click.
These events are propagating from the EventSystem in @pixi/events.
| Name | Type | Description |
|---|---|---|
event |
FederatedPointerEvent |
Event |
Capture phase equivalent of rightclick.
These events are propagating from the EventSystem in @pixi/events.
| Name | Type | Description |
|---|---|---|
event |
FederatedPointerEvent |
Event |
Fired when a pointer device secondary button (usually a mouse right-button) is pressed
on the container. Container's eventMode property must be set to static or 'dynamic' to fire event.
These events are propagating from the EventSystem in @pixi/events.
| Name | Type | Description |
|---|---|---|
event |
FederatedPointerEvent |
Event |
Capture phase equivalent of rightdown.
These events are propagating from the EventSystem in @pixi/events.
| Name | Type | Description |
|---|---|---|
event |
FederatedPointerEvent |
The rightdowncapture event. |
Fired when a pointer device secondary button (usually a mouse right-button) is released
over the container. Container's eventMode property must be set to static or 'dynamic' to fire event.
These events are propagating from the EventSystem in @pixi/events.
| Name | Type | Description |
|---|---|---|
event |
FederatedPointerEvent |
Event |
Capture phase equivalent of rightup.
These events are propagating from the EventSystem in @pixi/events.
| Name | Type | Description |
|---|---|---|
event |
FederatedPointerEvent |
Event |
Fired when a pointer device secondary button (usually a mouse right-button) is released
outside the container that initially registered a
rightdown.
Container's eventMode property must be set to static or 'dynamic' to fire event.
These events are propagating from the EventSystem in @pixi/events.
| Name | Type | Description |
|---|---|---|
event |
FederatedPointerEvent |
Event |
Capture phase equivalent of rightupoutside.
These events are propagating from the EventSystem in @pixi/events.
| Name | Type | Description |
|---|---|---|
event |
FederatedPointerEvent |
Event |
Fired when a touch point is placed and removed from the container.
Container's eventMode property must be set to static or 'dynamic' to fire event.
These events are propagating from the EventSystem in @pixi/events.
| Name | Type | Description |
|---|---|---|
event |
FederatedPointerEvent |
Event |
Capture phase equivalent of tap.
These events are propagating from the EventSystem in @pixi/events.
| Name | Type | Description |
|---|---|---|
event |
FederatedPointerEvent |
Event |
Fired when the operating system cancels a touch.
Container's eventMode property must be set to static or 'dynamic' to fire event.
These events are propagating from the EventSystem in @pixi/events.
| Name | Type | Description |
|---|---|---|
event |
FederatedPointerEvent |
Event |
Capture phase equivalent of touchcancel.
These events are propagating from the EventSystem in @pixi/events.
| Name | Type | Description |
|---|---|---|
event |
FederatedPointerEvent |
Event |
Fired when a touch point is removed from the container.
Container's eventMode property must be set to static or 'dynamic' to fire event.
These events are propagating from the EventSystem in @pixi/events.
| Name | Type | Description |
|---|---|---|
event |
FederatedPointerEvent |
Event |
Capture phase equivalent of touchend.
These events are propagating from the EventSystem in @pixi/events.
| Name | Type | Description |
|---|---|---|
event |
FederatedPointerEvent |
Event |
Fired when a touch point is removed outside of the container that initially
registered a touchstart.
Container's eventMode property must be set to static or 'dynamic' to fire event.
These events are propagating from the EventSystem in @pixi/events.
| Name | Type | Description |
|---|---|---|
event |
FederatedPointerEvent |
Event |
Capture phase equivalent of touchendoutside.
These events are propagating from the EventSystem in @pixi/events.
| Name | Type | Description |
|---|---|---|
event |
FederatedPointerEvent |
Event |
Fired when a touch point is moved along the container.
Container's eventMode property must be set to static or 'dynamic' to fire event.
These events are propagating from the EventSystem in @pixi/events.
| Name | Type | Description |
|---|---|---|
event |
FederatedPointerEvent |
Event |
Capture phase equivalent of touchmove.
These events are propagating from the EventSystem in @pixi/events.
| Name | Type | Description |
|---|---|---|
event |
FederatedPointerEvent |
Event |
Fired when a touch point is placed on the container.
Container's eventMode property must be set to static or 'dynamic' to fire event.
These events are propagating from the EventSystem in @pixi/events.
| Name | Type | Description |
|---|---|---|
event |
FederatedPointerEvent |
Event |
Capture phase equivalent of touchstart.
These events are propagating from the EventSystem in @pixi/events.
| Name | Type | Description |
|---|---|---|
event |
FederatedPointerEvent |
Event |
Fired when a the user scrolls with the mouse cursor over a Container.
These events are propagating from the EventSystem in @pixi/events.
Type:
Capture phase equivalent of wheel.
These events are propagating from the EventSystem in @pixi/events.