PIXI.FederatedPointerEvent

class FederatedPointerEvent extends PIXI.FederatedMouseEvent implements PointerEvent

A PIXI.FederatedEvent for pointer events.

Constructor


new PIXI.FederatedPointerEvent() → {}

Summary


Properties from FederatedPointerEvent

number
detail

This is the number of clicks that occurs in 200ms/click of each other.

number
height = 0
boolean
isPrimary = false
number
pointerId
string
pointerType
number
pressure
number
tangentialPressure
number
tiltX
number
tiltY
number
twist
number
width = 0

Properties inherited from FederatedMouseEvent

boolean
altKey

Whether the "alt" key was pressed when this mouse event occurred.

number
button

The specific button that was pressed in this mouse event.

number
buttons

The button depressed when this event occurred.

PIXI.Point
client

The coordinates of the mouse event relative to the canvas.

number
clientX
number
clientY
boolean
ctrlKey

Whether the "control" key was pressed when this mouse event occurred.

PIXI.Point
global

The pointer coordinates in world space.

number
globalX
number
globalY
boolean
metaKey

Whether the "meta" key was pressed when this mouse event occurred.

PIXI.Point
movement

The movement in this pointer relative to the last mousemove event.

number
movementX
number
movementY
PIXI.Point
offset
number
offsetX
number
offsetY
EventTarget
relatedTarget

This is currently not implemented in the Federated Events API.

PIXI.Point
screen
number
screenX
number
screenY
boolean
shiftKey

Whether the "shift" key was pressed when this mouse event occurred.

number
x
number
y

Properties inherited from FederatedEvent

boolean
bubbles = true

Flags whether this event bubbles. This will take effect only if it is set before propagation.

boolean
cancelable = false
boolean
cancelBubble = true
boolean
composed = false
PIXI.FederatedEventTarget
currentTarget

The listeners of the event target that are being notified.

this
data
boolean
defaultPrevented = false

Flags whether the default response of the user agent was prevent through this event.

eventPhase = FederatedEvent.NONE
boolean
isTrusted

Flags whether this is a user-trusted event

PIXI.Point
layer

The coordinates of the evnet relative to the nearest DOM layer. This is a non-standard property.

number
layerX
number
layerY
PIXI.EventBoundary
manager

The EventBoundary that manages this event. Null for root events.

N
nativeEvent

The native event that caused the foremost original event.

PIXI.FederatedEvent<N>
originalEvent

The original event that caused this event, if any.

PIXI.Point
page

The coordinates of the event relative to the DOM document. This is a non-standard property.

number
pageX
number
pageY
PIXI.FederatedEventTarget[]
path

The composed path of the event's propagation. The target is at the end.

boolean
propagationImmediatelyStopped = false

Flags whether propagation was immediately stopped.

boolean
propagationStopped = false

Flags whether propagation was stopped.

boolean
returnValue
EventTarget
srcElement
PIXI.FederatedEventTarget
target

The event target that this will be dispatched to.

number
timeStamp

The timestamp of when the event was created.

string
type

The type of event, e.g. "mouseup".

WindowProxy
view

The global Window object.

number
which

Methods inherited from FederatedEvent

PIXI.FederatedEventTarget[]
composedPath()

The propagation path for this event. Alias for EventBoundary.propagationPath.

void
initEvent(_type: string, _bubbles: boolean, _cancelable: boolean)
void
preventDefault()

Prevent default behavior of PixiJS and the user agent.

void
stopImmediatePropagation()
void
stopPropagation()

Public Properties


detail FederatedPointerEvent.ts:73
detail: number

This is the number of clicks that occurs in 200ms/click of each other.

height FederatedPointerEvent.ts:22
height: number = 0

The height of the pointer's contact along the y-axis, measured in CSS pixels. radiusY of TouchEvents will be represented by this value.

See: https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/height
isPrimary FederatedPointerEvent.ts:29
isPrimary: boolean = false

Indicates whether or not the pointer device that created the event is the primary pointer.

See: https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/isPrimary
pointerId FederatedPointerEvent.ts:9
pointerId: number

The unique identifier of the pointer.

See: https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/pointerId
pointerType FederatedPointerEvent.ts:35
pointerType: string

The type of pointer that triggered the event.

See: https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/pointerType
pressure FederatedPointerEvent.ts:41
pressure: number

Pressure applied by the pointing device during the event. s A Touch's force property will be represented by this value.

See: https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/pressure
tangentialPressure FederatedPointerEvent.ts:49
tangentialPressure: number

Barrel pressure on a stylus pointer.

See: https://w3c.github.io/pointerevents/#pointerevent-interface
tiltX FederatedPointerEvent.ts:55
tiltX: number

The angle, in degrees, between the pointer device and the screen.

See: https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/tiltX
tiltY FederatedPointerEvent.ts:61
tiltY: number

The angle, in degrees, between the pointer device and the screen.

See: https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/tiltY
width FederatedPointerEvent.ts:15
width: number = 0

The width of the pointer's contact along the x-axis, measured in CSS pixels. radiusX of TouchEvents will be represented by this value.

See: https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/width

Powered by webdoc!