From 16d12a0c9d7124bf5b948427f41bc871241eab16 Mon Sep 17 00:00:00 2001 From: Daniel Freedman Date: Mon, 6 Jan 2014 17:44:36 -0800 Subject: [PATCH] Add docs for pinch and zoom --- src/pinch.js | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/src/pinch.js b/src/pinch.js index 3d26716..edf3534 100644 --- a/src/pinch.js +++ b/src/pinch.js @@ -9,6 +9,47 @@ * react to size change and rotation of the chord */ +/** + * @module PointerGestures + * @submodule Events + * @class pinch + */ +/** + * Scale of the pinch zoom gesture + * @property scale + * @type Number + */ +/** + * Center X position of pointers causing pinch + * @property centerX + * @type Number + */ +/** + * Center Y position of pointers causing pinch + * @property centerY + * @type Number + */ + +/** + * @module PointerGestures + * @submodule Events + * @class rotate + */ +/** + * Angle (in degrees) of rotation. Measured from starting positions of pointers. + * @property angle + * @type Number + */ +/** + * Center X position of pointers causing rotation + * @property centerX + * @type Number + */ +/** + * Center Y position of pointers causing rotation + * @property centerY + * @type Number + */ (function(scope) { var dispatcher = scope.dispatcher; var pointermap = new scope.PointerMap();