PIXI.FederatedEvent
class FederatedEvent implements UIEvent
An DOM-compatible synthetic event implementation that is "forwarded" on behalf of an original FederatedEvent or native Event.
Constructor
new PIXI.FederatedEvent(manager: PIXI.EventBoundary) → {}
Name | Type | Description |
---|---|---|
manager | PIXI.EventBoundary |
The event boundary which manages this event. Propagation can only occur within the boundary's jurisdiction. |
Summary
Properties from FederatedEvent
boolean |
Flags whether this event bubbles. This will take effect only if it is set before propagation. |
boolean |
|
boolean |
|
boolean |
|
PIXI.FederatedEventTarget |
The listeners of the event target that are being notified. |
this |
|
boolean |
Flags whether the default response of the user agent was prevent through this event. |
number |
Event-specific detail |
|
|
boolean |
Flags whether this is a user-trusted event |
PIXI.Point |
The coordinates of the evnet relative to the nearest DOM layer. This is a non-standard property. |
number |
|
number |
|
PIXI.EventBoundary |
The EventBoundary that manages this event. Null for root events. |
N |
The native event that caused the foremost original event. |
PIXI.FederatedEvent<N> |
The original event that caused this event, if any. |
PIXI.Point |
The coordinates of the event relative to the DOM document. This is a non-standard property. |
number |
|
number |
|
PIXI.FederatedEventTarget[] |
The composed path of the event's propagation. The |
boolean |
Flags whether propagation was immediately stopped. |
boolean |
Flags whether propagation was stopped. |
boolean |
|
EventTarget |
|
PIXI.FederatedEventTarget |
The event target that this will be dispatched to. |
number |
The timestamp of when the event was created. |
string |
The type of event, e.g. |
WindowProxy |
The global Window object. |
number |
|
Methods from FederatedEvent
PIXI.FederatedEventTarget[] |
The propagation path for this event. Alias for EventBoundary.propagationPath. |
void |
|
void |
Prevent default behavior of PixiJS and the user agent. |
void |
|
void |
|
Public Properties
bubbles: boolean = true
Flags whether this event bubbles. This will take effect only if it is set before propagation.
cancelable: boolean = false
Flags whether this event can be canceled using FederatedEvent.preventDefault. This is always false (for now).
cancelBubble: boolean = true
composed: boolean = false
Flag added for compatibility with DOM Event
. It is not used in the Federated Events
API.
currentTarget: PIXI.FederatedEventTarget
The listeners of the event target that are being notified.
data: this
Fallback for the deprecated PIXI.InteractionEvent.data.
defaultPrevented: boolean = false
Flags whether the default response of the user agent was prevent through this event.
layer: PIXI.Point
The coordinates of the evnet relative to the nearest DOM layer. This is a non-standard property.
layerX: number
layerY: number
manager: PIXI.EventBoundary
The EventBoundary that manages this event. Null for root events.
nativeEvent: N
The native event that caused the foremost original event.
originalEvent: PIXI.FederatedEvent<N>
The original event that caused this event, if any.
page: PIXI.Point
The coordinates of the event relative to the DOM document. This is a non-standard property.
pageX: number
pageY: number
path: PIXI.FederatedEventTarget[]
The composed path of the event's propagation. The target
is at the end.
propagationImmediatelyStopped: boolean = false
Flags whether propagation was immediately stopped.
propagationStopped: boolean = false
Flags whether propagation was stopped.
returnValue: boolean
srcElement: EventTarget
target: PIXI.FederatedEventTarget
The event target that this will be dispatched to.
Public Methods
composedPath() → {PIXI.FederatedEventTarget[]}
The propagation path for this event. Alias for EventBoundary.propagationPath.
Type | Description |
---|---|
PIXI.FederatedEventTarget[] |
initEvent(_type: string, _bubbles: boolean, _cancelable: boolean) → {void}
Unimplemented method included for implementing the DOM interface Event
. It will throw an Error
.
Name | Type | Attributes | Description |
---|---|---|---|
_type | string | ||
_bubbles | boolean |
<optional> |
|
_cancelable | boolean |
<optional> |
Type | Description |
---|---|
void |
preventDefault() → {void}
Prevent default behavior of PixiJS and the user agent.
Type | Description |
---|---|
void |
stopImmediatePropagation() → {void}
Stop this event from propagating to any addition listeners, including on the currentTarget and also the following event targets on the propagation path.
Type | Description |
---|---|
void |
stopPropagation() → {void}
Stop this event from propagating to the next FederatedEventTarget. The rest of the listeners on the currentTarget will still be notified.
Type | Description |
---|---|
void |