@any-touch/pinch
Advanced tools
Comparing version 0.6.0-beta.30 to 0.6.0
@@ -0,0 +0,0 @@ import { Input, CommonEmitFunction } from '@any-touch/shared'; |
'use strict'; | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } | ||
@@ -23,3 +25,5 @@ | ||
var scale = this.computed.scale; | ||
return this.isValidPointLength(pointLength) && void 0 !== scale && (this.options.threshold < Math.abs(scale - 1) || this.isRecognized); | ||
return this.isValidPointLength(pointLength) | ||
&& void 0 !== scale | ||
&& (this.options.threshold < Math.abs(scale - 1) || this.isRecognized); | ||
}; | ||
@@ -36,2 +40,2 @@ default_1.prototype.recognize = function (input, emit) { | ||
module.exports = default_1; | ||
exports.default = default_1; |
@@ -18,3 +18,5 @@ import { __extends, __assign } from 'tslib'; | ||
var scale = this.computed.scale; | ||
return this.isValidPointLength(pointLength) && void 0 !== scale && (this.options.threshold < Math.abs(scale - 1) || this.isRecognized); | ||
return this.isValidPointLength(pointLength) | ||
&& void 0 !== scale | ||
&& (this.options.threshold < Math.abs(scale - 1) || this.isRecognized); | ||
}; | ||
@@ -21,0 +23,0 @@ default_1.prototype.recognize = function (input, emit) { |
@@ -1,1 +0,1 @@ | ||
"use strict";function _interopDefault(t){return t&&"object"==typeof t&&"default"in t?t.default:t}var tslib=require("tslib"),compute=require("@any-touch/compute"),Recognizer=require("@any-touch/recognizer"),Recognizer__default=_interopDefault(Recognizer),DEFAULT_OPTIONS={name:"pinch",threshold:0,pointLength:2},default_1=function(t){function e(e){return t.call(this,tslib.__assign(tslib.__assign({},DEFAULT_OPTIONS),e))||this}return tslib.__extends(e,t),e.prototype.test=function(t){var e=t.pointLength,i=this.computed.scale;return this.isValidPointLength(e)&&void 0!==i&&(this.options.threshold<Math.abs(i-1)||this.isRecognized)},e.prototype.recognize=function(t,e){var i=this.compute([compute.ComputeVectorForMutli],t);"activeV"in i&&(this.computed=tslib.__assign(tslib.__assign({},this.computed),compute.computeScale(i))),Recognizer.recognizeForPressMoveLike(this,t,e)},e}(Recognizer__default);module.exports=default_1; | ||
"use strict";function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var tslib=require("tslib"),compute=require("@any-touch/compute"),Recognizer=require("@any-touch/recognizer"),Recognizer__default=_interopDefault(Recognizer),DEFAULT_OPTIONS={name:"pinch",threshold:0,pointLength:2},default_1=function(e){function t(t){return e.call(this,tslib.__assign(tslib.__assign({},DEFAULT_OPTIONS),t))||this}return tslib.__extends(t,e),t.prototype.test=function(e){var t=e.pointLength,i=this.computed.scale;return this.isValidPointLength(t)&&void 0!==i&&(this.options.threshold<Math.abs(i-1)||this.isRecognized)},t.prototype.recognize=function(e,t){var i=this.compute([compute.ComputeVectorForMutli],e);"activeV"in i&&(this.computed=tslib.__assign(tslib.__assign({},this.computed),compute.computeScale(i))),Recognizer.recognizeForPressMoveLike(this,e,t)},t}(Recognizer__default);exports.default=default_1; |
{ | ||
"name": "@any-touch/pinch", | ||
"version": "0.6.0-beta.30", | ||
"description": "any-touch的识别器, 用来识别捏合手势.", | ||
"main": "./dist/index", | ||
"module": "./dist/index.es.js", | ||
"types": "types/index.d.ts", | ||
"author": "any86", | ||
"license": "ISC", | ||
"peerDependencies": { | ||
"any-touch": "0.6.0-beta.29", | ||
"tslib": "^1.9.3" | ||
}, | ||
"dependencies": { | ||
"@any-touch/compute": "^0.6.0-beta.30", | ||
"@any-touch/recognizer": "^0.6.0-beta.30" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"sideEffects": false, | ||
"gitHead": "72c35289e4996e7a568625595c8b1fd05728eadb" | ||
"name": "@any-touch/pinch", | ||
"version": "0.6.0", | ||
"description": "any-touch的识别器, 用来识别捏合手势.", | ||
"main": "./dist/index", | ||
"module": "./dist/index.es.js", | ||
"types": "dist/index.d.ts", | ||
"author": "any86", | ||
"license": "ISC", | ||
"files": [ | ||
"dist/*" | ||
], | ||
"peerDependencies": { | ||
"tslib": "^1.9.3" | ||
}, | ||
"dependencies": { | ||
"@any-touch/compute": "^0.6.0", | ||
"@any-touch/recognizer": "^0.6.0" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"sideEffects": false, | ||
"gitHead": "2dd2b1983b6e7cca0c4908d9d44f2036282877d3" | ||
} |
Sorry, the diff of this file is not supported yet
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
3
1
23
6756
8
90
- Removed@any-touch/core@0.6.0(transitive)
- Removed@any-touch/pan@0.6.0(transitive)
- Removed@any-touch/press@0.6.0(transitive)
- Removed@any-touch/rotate@0.6.0(transitive)
- Removed@any-touch/swipe@0.6.0(transitive)
- Removed@any-touch/tap@0.6.0(transitive)
- Removedany-event@0.6.0(transitive)
- Removedany-touch@0.6.0-beta.29(transitive)
Updated@any-touch/compute@^0.6.0
Updated@any-touch/recognizer@^0.6.0