Show:

ia.ItemEvent Class

Extends ia.Event
Module: ia

A ia.ItemEvent object.

Constructor

ia.ItemEvent

(
  • eventType
  • item
  • pixelX
  • pixelY
  • dataX
  • dataY
  • pageX
  • pageY
)

Parameters:

  • eventType Object

    The event type.

  • item Object

    The item associated with the event.

  • pixelX Number

    The pixel x coordinate of the mouse.

  • pixelY Number

    The pixel y coordinate of the mouse.

  • dataX Number

    The data x coordinate of the mouse.

  • dataY Number

    The data y coordinate of the mouse.

  • pageX Number

    The page x coordinate in pixels.

  • pageY Number

    The page y coordinate in pixels.

Properties

eventType

String

The type of event.

ITEM_CLICK

String final static

Indicates that the user clicked the mouse button over a canvas item.

Default: "itemClick"

ITEM_MOUSE_DOWN

String final static

Indicates that the user pressed the mouse button over a canvas item.

Default: "itemMouseDown"

ITEM_MOUSE_MOVE

String final static

Indicates that the user moved the mouse pointer while hovering over a canvas.

Default: "itemMouseMove"

ITEM_MOUSE_OUT

String final static

Indicates that the user rolled the mouse pointer out of a canvas item.

Default: "itemMouseOut"

ITEM_MOUSE_OVER

String final static

Indicates that the user rolled the mouse pointer over a canvas item.

Default: "itemMouseOver"

ITEM_MOUSE_UP

String final static

Indicates that the user released the mouse button over a canvas item.

Default: "itemMouseUp"

NONE_ITEM_CLICK

String final static

Indicates that the user clicked the mouse button over a canvas but not over an item.

Default: "noneItemClick"

obj

Object

The object associated with the event.

symbol

String

The pixel y.

Default: ia.Shape.SQUARE

symbol

String

The data x.

Default: ia.Shape.SQUARE

symbol

String

The data y.

Default: ia.Shape.SQUARE

symbol

String

The page x.

Default: ia.Shape.SQUARE

symbol

String

The page y.

Default: ia.Shape.SQUARE

symbol

String

The item.

Default: ia.Shape.SQUARE

symbol

String

The pixel x.

Default: ia.Shape.SQUARE