Class pwlib.appEvent.imageCrop
Extends
pwlib.appEvent.
Image crop event. This event is cancelable.
Defined in: lib.js.
Constructor Attributes | Constructor Name and Description |
---|---|
pwlib.appEvent.imageCrop(x, y, width, height)
|
Field Attributes | Field Name and Description |
---|---|
The cropped image height.
|
|
The cropped image width.
|
|
The crop start position the x-axis.
|
|
The crop start position the y-axis.
|
- Fields borrowed from class pwlib.appEvent:
- cancelable, defaultPrevented, target, type
- Methods borrowed from class pwlib.appEvent:
- preventDefault, stopPropagation, toString
Class Detail
pwlib.appEvent.imageCrop(x, y, width, height)
- Parameters:
- {Number} x
- The crop start position on the x-axis.
- {Number} y
- The crop start position on the y-axis.
- {Number} width
- The cropped image width.
- {Number} height
- The cropped image height.
- Throws:
- {TypeError}
- If any of the arguments are not numbers.
Field Detail
{Number}
height
The cropped image height.
{Number}
width
The cropped image width.
{Number}
x
The crop start position the x-axis.
{Number}
y
The crop start position the y-axis.