* calculate the scale factor between two pointersets * no scale is 1, and goes down to 0 when pinched together, and bigger when pinched out * @param {Array} start array of pointers * @param {Array} end array of pointers * @return {Number} scale
(start, end)
| 93052 | * @param {Array} end array of pointers |
| 93053 | * @return {Number} scale |
| 93054 | */ function getScale(start, end) { |
| 93055 | return getDistance(end[0], end[1], PROPS_CLIENT_XY) / getDistance(start[0], start[1], PROPS_CLIENT_XY); |
| 93056 | } |
| 93057 | var MOUSE_INPUT_MAP = { |
| 93058 | mousedown: INPUT_START, |
| 93059 | mousemove: INPUT_MOVE, |
no test coverage detected