ViewerEventData
If a script implements the OnViewerEvent event, it receives a ViewerEventData object whenever certain events occur in a standalone image viewer.
Property Name | Return Type | Description |
---|---|---|
event | string | Returns a string indicating the event that occurred. The events currently defined are:
|
item | object:Item | For the load event, returns an Item object representing the newly loaded image. |
viewer | object:Viewer | Returns a Viewer object representing the viewer the event occurred in. |
x | int | For the click events, returns the x coordinate within the viewer window that the click occurred. |
y | int | For the click events, returns the y coordinate within the viewer window that the click occurred. |
w | int | For the click events, returns the width of the viewer window. |
h | int | For the click events, returns the height of the viewer window. |
最后更新于