API Docs for: 2.0.0
Show:

InteractionData Class

Module: PIXI

Holds all information related to an Interaction event

Constructor

InteractionData

()

Item Index

Methods

getLocalPosition

(
  • displayObject
  • [point]
)
Point

This will return the local coordinates of the specified displayObject for this InteractionData

Parameters:

  • displayObject DisplayObject

    The DisplayObject that you would like the local coords off

  • [point] Point optional

    A Point object in which to store the value, optional (otherwise will create a new point)

Returns:

Point:

A point containing the coordinates of the InteractionData position relative to the DisplayObject

Properties

global

Point

This point stores the global coords of where the touch/mouse event happened

originalEvent

Event

When passed to an event handler, this will be the original DOM Event that was captured

target

Sprite

The target Sprite that was interacted with