The event boundary which manages this event. Propagation can only occur within the boundary's jurisdiction.
The angle in radians of a pointer or stylus measuring the vertical angle between the device's surface to the pointer or stylus. A stylus at 0 degrees would be directly parallel whereas at π/2 degrees it would be perpendicular.
Whether the "alt" key was pressed when this mouse event occurred.
Readonly
Advanced
AT_The event propagation phase AT_TARGET that indicates that the event is at the target.
The angle in radians of a pointer or stylus measuring an arc from the X axis of the device to the pointer or stylus projected onto the screen's plane. A stylus at 0 degrees would be pointing to the "0 o'clock" whereas at π/2 degrees it would be pointing at "6 o'clock".
Flags whether this event bubbles. This will take effect only if it is set before propagation.
Readonly
Advanced
BUBBLING_The event propagation phase BUBBLING_PHASE that indicates that the event is in the bubbling phase.
The specific button that was pressed in this mouse event.
The button depressed when this event occurred.
Readonly
cancelableFlags whether this event can be canceled using FederatedEvent.preventDefault. This is always false (for now).
Readonly
Advanced
CAPTURING_The event propagation phase CAPTURING_PHASE that indicates that the event is in the capturing phase.
The coordinates of the mouse event relative to the canvas.
Whether the "control" key was pressed when this mouse event occurred.
The listeners of the event target that are being notified.
Flags whether the default response of the user agent was prevent through this event.
This is the number of clicks that occurs in 200ms/click of each other.
The propagation phase.
The pointer coordinates in world space.
The height of the pointer's contact along the y-axis, measured in CSS pixels. radiusY of TouchEvents will be represented by this value.
Indicates whether or not the pointer device that created the event is the primary pointer.
Flags whether this is a user-trusted event
The coordinates of the event relative to the nearest DOM layer. This is a non-standard property.
Readonly
managerThe EventBoundary that manages this event. Null for root events.
Whether the "meta" key was pressed when this mouse event occurred.
The movement in this pointer relative to the last mousemove
event.
The native event that caused the foremost original event.
Readonly
Advanced
NONEThe event propagation phase NONE that indicates that the event is not in any phase.
The offset of the pointer coordinates w.r.t. target Container in world space. This is not supported at the moment.
The original event that caused this event, if any.
The coordinates of the event relative to the DOM document. This is a non-standard property.
The composed path of the event's propagation. The target
is at the end.
The unique identifier of the pointer.
The type of pointer that triggered the event.
Pressure applied by the pointing device during the event. s A Touch's force property will be represented by this value.
Flags whether propagation was immediately stopped.
Flags whether propagation was stopped.
This is currently not implemented in the Federated Events API.
The pointer coordinates in the renderer's screen. This has slightly different semantics than native PointerEvent screenX/screenY.
Whether the "shift" key was pressed when this mouse event occurred.
Barrel pressure on a stylus pointer.
The event target that this will be dispatched to.
The angle, in degrees, between the pointer device and the screen.
The angle, in degrees, between the pointer device and the screen.
The timestamp of when the event was created.
Twist of a stylus pointer.
The type of event, e.g. "mouseup"
.
The global Window object.
The width of the pointer's contact along the x-axis, measured in CSS pixels. radiusX of TouchEvents will be represented by this value.
The pointer coordinates in the renderer's screen. Alias for screen.x
.
The pointer coordinates in the renderer's screen. Alias for screen.y
.
Alias for this.clientX.
Alias for this.clientY.
Advanced
The propagation path for this event. Alias for EventBoundary.propagationPath.
Converts global coordinates into container-local coordinates.
This method transforms coordinates from world space to a container's local space, useful for precise positioning and hit testing.
The local coordinates as a Point object
// Basic usage - get local coordinates relative to a container
sprite.on('pointermove', (event: FederatedMouseEvent) => {
// Get position relative to the sprite
const localPos = event.getLocalPosition(sprite);
console.log('Local position:', localPos.x, localPos.y);
});
// Using custom global coordinates
const customGlobal = new Point(100, 100);
sprite.on('pointermove', (event: FederatedMouseEvent) => {
// Transform custom coordinates
const localPos = event.getLocalPosition(sprite, undefined, customGlobal);
console.log('Custom local position:', localPos.x, localPos.y);
});
Whether the modifier key was pressed when this event natively occurred.
The modifier key.
Prevent default behavior of both PixiJS and the user agent.
Stop this event from propagating to any additional listeners, including those on the current target and any following targets in the propagation path.
Stop this event from propagating to the next target in the propagation path. The rest of the listeners on the current target will still be notified.
A specialized event class for pointer interactions in PixiJS applications. Extends FederatedMouseEvent to provide advanced pointer-specific features while maintaining compatibility with the DOM PointerEvent interface.
Key features:
Example
See