Class: Container

Container

Extends

Implements

  • Renderable

Members

_cx number

The X-coordinate value of the normalized local X axis, the first column of the local transformation matrix without a scale.

Default Value:
  • 1

_cy number

The X-coordinate value of the normalized local Y axis, the second column of the local transformation matrix without a scale.

Default Value:
  • 0

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.

The scale factor of the object.

The skew amount, on the x and y axis.

_sx number

The Y-coordinate value of the normalized local X axis, the first column of the local transformation matrix without a scale.

Default Value:
  • 0

_sy number

The Y-coordinate value of the normalized local Y axis, the second column of the local transformation matrix without a scale.

Default Value:
  • 1

_updateFlags number

Default Value:
  • 15

accessible boolean

Flag for if the object is accessible. If true AccessibilityManager will overlay a shadow div with attributes set

Default Value:
  • false

accessibleChildren boolean

Setting to false will prevent any children inside this container to be accessible. Defaults to true.

Default Value:
  • true

accessibleHint string

Sets the aria-label attribute of the shadow div

Default Value:
  • undefined

accessiblePointerEvents PointerEvents

Specify the pointer-events the accessible div will use Defaults to auto.

Default Value:
  • 'auto'

accessibleTitle string

Sets the title attribute of the shadow div If accessibleTitle AND accessibleHint has not been this will default to 'container [tabIndex]'

Default Value:
  • undefined

accessibleType string

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'

angle number

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.

didChange boolean

Default Value:
  • false

didViewUpdate boolean

Default Value:
  • false

hitArea IHitArea

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);

includeInBuild boolean

Default Value:
  • true

interactiveChildren boolean

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

isLayerRoot boolean

Default Value:
  • false

isSimple boolean

Default Value:
  • true

layerBlendMode BLEND_MODES

Default Value:
  • "normal"

layerColor number

Default Value:
  • 4294967295

layerGroup LayerGroup

Default Value:
  • undefined

layerVisibleRenderable number

Default Value:
  • 3

localBlendMode BLEND_MODES

Default Value:
  • "inherit"

localColor number

Default Value:
  • 4294967295

localVisibleRenderable number

Default Value:
  • 3

measurable boolean

Default Value:
  • true

onclick

Property-based event handler for the click event.

Default Value:
  • null
Example
this.onclick = (event) => {
 //some function here that happens on click
}

onglobalmousemove

Property-based event handler for the globalmousemove event.

Default Value:
  • null
Example
this.onglobalmousemove = (event) => {
 //some function here that happens on globalmousemove
}

onglobalpointermove

Property-based event handler for the globalpointermove event.

Default Value:
  • null
Example
this.onglobalpointermove = (event) => {
 //some function here that happens on globalpointermove
}

onglobaltouchmove

Property-based event handler for the globaltouchmove event.

Default Value:
  • null
Example
this.onglobaltouchmove = (event) => {
 //some function here that happens on globaltouchmove
}

onmousedown

Property-based event handler for the mousedown event.

Default Value:
  • null
Example
this.onmousedown = (event) => {
 //some function here that happens on mousedown
}

onmouseenter

Property-based event handler for the mouseenter event.

Default Value:
  • null
Example
this.onmouseenter = (event) => {
 //some function here that happens on mouseenter
}

onmouseleave

Property-based event handler for the mouseleave event.

Default Value:
  • null
Example
this.onmouseleave = (event) => {
 //some function here that happens on mouseleave
}

onmousemove

Property-based event handler for the mousemove event.

Default Value:
  • null
Example
this.onmousemove = (event) => {
 //some function here that happens on mousemove
}

onmouseout

Property-based event handler for the mouseout event.

Default Value:
  • null
Example
this.onmouseout = (event) => {
 //some function here that happens on mouseout
}

onmouseover

Property-based event handler for the mouseover event.

Default Value:
  • null
Example
this.onmouseover = (event) => {
 //some function here that happens on mouseover
}

onmouseup

Property-based event handler for the mouseup event.

Default Value:
  • null
Example
this.onmouseup = (event) => {
 //some function here that happens on mouseup
}

onmouseupoutside

Property-based event handler for the mouseupoutside event.

Default Value:
  • null
Example
this.onmouseupoutside = (event) => {
 //some function here that happens on mouseupoutside
}

onpointercancel

Property-based event handler for the pointercancel event.

Default Value:
  • null
Example
this.onpointercancel = (event) => {
 //some function here that happens on pointercancel
}

onpointerdown

Property-based event handler for the pointerdown event.

Default Value:
  • null
Example
this.onpointerdown = (event) => {
 //some function here that happens on pointerdown
}

onpointerenter

Property-based event handler for the pointerenter event.

Default Value:
  • null
Example
this.onpointerenter = (event) => {
 //some function here that happens on pointerenter
}

onpointerleave

Property-based event handler for the pointerleave event.

Default Value:
  • null
Example
this.onpointerleave = (event) => {
 //some function here that happens on pointerleave
}

onpointermove

Property-based event handler for the pointermove event.

Default Value:
  • null
Example
this.onpointermove = (event) => {
 //some function here that happens on pointermove
}

onpointerout

Property-based event handler for the pointerout event.

Default Value:
  • null
Example
this.onpointerout = (event) => {
 //some function here that happens on pointerout
}

onpointerover

Property-based event handler for the pointerover event.

Default Value:
  • null
Example
this.onpointerover = (event) => {
 //some function here that happens on pointerover
}

onpointertap

Property-based event handler for the pointertap event.

Default Value:
  • null
Example
this.onpointertap = (event) => {
 //some function here that happens on pointertap
}

onpointerup

Property-based event handler for the pointerup event.

Default Value:
  • null
Example
this.onpointerup = (event) => {
 //some function here that happens on pointerup
}

onpointerupoutside

Property-based event handler for the pointerupoutside event.

Default Value:
  • null
Example
this.onpointerupoutside = (event) => {
 //some function here that happens on pointerupoutside
}

onrightclick

Property-based event handler for the rightclick event.

Default Value:
  • null
Example
this.onrightclick = (event) => {
 //some function here that happens on rightclick
}

onrightdown

Property-based event handler for the rightdown event.

Default Value:
  • null
Example
this.onrightdown = (event) => {
 //some function here that happens on rightdown
}

onrightup

Property-based event handler for the rightup event.

Default Value:
  • null
Example
this.onrightup = (event) => {
 //some function here that happens on rightup
}

onrightupoutside

Property-based event handler for the rightupoutside event.

Default Value:
  • null
Example
this.onrightupoutside = (event) => {
 //some function here that happens on rightupoutside
}

ontap

Property-based event handler for the tap event.

Default Value:
  • null
Example
this.ontap = (event) => {
 //some function here that happens on tap
}

ontouchcancel

Property-based event handler for the touchcancel event.

Default Value:
  • null
Example
this.ontouchcancel = (event) => {
 //some function here that happens on touchcancel
}

ontouchend

Property-based event handler for the touchend event.

Default Value:
  • null
Example
this.ontouchend = (event) => {
 //some function here that happens on touchend
}

ontouchendoutside

Property-based event handler for the touchendoutside event.

Default Value:
  • null
Example
this.ontouchendoutside = (event) => {
 //some function here that happens on touchendoutside
}

ontouchmove

Property-based event handler for the touchmove event.

Default Value:
  • null
Example
this.ontouchmove = (event) => {
 //some function here that happens on touchmove
}

ontouchstart

Property-based event handler for the touchstart event.

Default Value:
  • null
Example
this.ontouchstart = (event) => {
 //some function here that happens on touchstart
}

onwheel

Property-based event handler for the wheel event.

Default Value:
  • null
Example
this.onwheel = (event) => {
 //some function here that happens on wheel
}

relativeLayerDepth number

Default Value:
  • 0

rotation number

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.

tabIndex number

Default Value:
  • 0
TODO
  • Needs docs.

uid number

updateTick number

Default Value:
  • -1

x number

The position of the container on the x axis relative to the local coordinates of the parent. An alias to position.x

y number

The position of the container on the y axis relative to the local coordinates of the parent. An alias to position.y

Methods

Container.mixin (source) void static

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
  • The first child that was added.

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.

addEventListener (type, listener, options)

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,
 });

destroy (options) void

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

dispatchEvent (e) boolean

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 as interactive = false in v7
  • 'static': Emit events and is hit tested. Same as interaction = true in 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
 });

getChildAt (index) U

Returns the child at the specified index

Name Type Description
index number

The index to get the child at

Returns:
Type Description
U
  • The child at the given index, if any.

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

See:
Returns:
Type Description
Container The child with the specified name.

getChildIndex (child) number

Returns the index position of a child Container instance

Name Type Description
child Container

The Container instance to identify

Returns:
Type Description
number
  • The index position of the child container to identify

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
  • The updated point.

Enable interaction events for the Container. Touch, pointer and mouse

isInteractive () boolean

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

onUpdate (point)

Name Type Attributes Description
point ObservablePoint <optional>

onViewUpdate ()

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.

removeChildAt (index) U

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[]
  • List of removed children

removeEventListener (type, listener, options)

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.

setChildIndex (child, index) void

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

toGlobal (position, point, skipUpdate) P

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
  • A point object representing the position of this object.

toLocal (position, from, point, skipUpdate) 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
  • A point object representing the position of this object

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

globalmousemove

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

globalpointermove

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

globaltouchmove

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.

mousedowncapture

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

mouseentercapture

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

mouseleavecapture

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

mousemovecapture

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

mouseoutcapture

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

mouseovercapture

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

mouseupcapture

Capture phase equivalent of mouseup.

These events are propagating from the EventSystem in @pixi/events.

Name Type Description
event FederatedPointerEvent

Event

mouseupoutside

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

mouseupoutsidecapture

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

pointercancelcapture

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

pointerdowncapture

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

pointerentercapture

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 pointerleave event.

pointerleavecapture

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

pointermovecapture

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

pointeroutcapture

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

pointerovercapture

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

pointertapcapture

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

pointerupcapture

Capture phase equivalent of pointerup.

These events are propagating from the EventSystem in @pixi/events.

Name Type Description
event FederatedPointerEvent

Event

pointerupoutside

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

pointerupoutsidecapture

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

rightclickcapture

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

rightdowncapture

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

rightupcapture

Capture phase equivalent of rightup.

These events are propagating from the EventSystem in @pixi/events.

Name Type Description
event FederatedPointerEvent

Event

rightupoutside

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

rightupoutsidecapture

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

touchcancelcapture

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

touchendcapture

Capture phase equivalent of touchend.

These events are propagating from the EventSystem in @pixi/events.

Name Type Description
event FederatedPointerEvent

Event

touchendoutside

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

touchendoutsidecapture

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

touchmovecapture

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

touchstartcapture

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.

Type: