Class Index | File Index

Classes


Class pwlib.appEvent.canvasSizeChange


Extends pwlib.appEvent.
Canvas size change event. This event is not cancelable.

Note that the Canvas size is not the same as the image size. Canvas size refers to the scaling of the Canvas elements being applied (due to image zooming or due to browser zoom / DPI).
Defined in: lib.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
pwlib.appEvent.canvasSizeChange(width, height, scale)
Field Summary
Field Attributes Field Name and Description
 
New Canvas style height.
 
The new Canvas scaling factor.
 
New Canvas style width.
Fields borrowed from class pwlib.appEvent:
cancelable, defaultPrevented, target, type
Methods borrowed from class pwlib.appEvent:
preventDefault, stopPropagation, toString
Class Detail
pwlib.appEvent.canvasSizeChange(width, height, scale)
Parameters:
{Number} width
The new Canvas style width.
{Number} height
The new Canvas style height.
{Number} scale
The new Canvas scaling factor.
Throws:
{TypeError}
If any of the arguments are not numbers.
Field Detail
{Number} height
New Canvas style height.

{Number} scale
The new Canvas scaling factor.

{Number} width
New Canvas style width.

Documentation generated by JsDoc Toolkit 2.3.0 on Sat Jun 26 2010 21:56:59 GMT+0300 (EEST)