new InteractionData()
Holds all information related to an Interaction event
- Source - pixi/InteractionData.js, line 5
Members
-
global :PIXI.Point
-
This point stores the global coords of where the touch/mouse event happened
- Source - pixi/InteractionData.js, line 13
-
originalEvent :PIXI.Event
-
When passed to an event handler, this will be the original DOM Event that was captured
- Source - pixi/InteractionData.js, line 29
-
target :PIXI.Sprite
-
The target Sprite that was interacted with
- Source - pixi/InteractionData.js, line 21
Methods
-
getLocalPosition(displayObject, point) → {PIXI.Point}
-
This will return the local coordinates of the specified displayObject for this InteractionData
Parameters:
Name Type Argument Description displayObject
PIXI.DisplayObject The DisplayObject that you would like the local coords off
point
PIXI.Point <optional>
A Point object in which to store the value, optional (otherwise will create a new point)
Returns:
A point containing the coordinates of the InteractionData position relative to the DisplayObject
- Source - pixi/InteractionData.js, line 38