@any-touch/pinch
Advanced tools
Comparing version 0.7.8 to 0.7.9
@@ -1,1 +0,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; | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t,e=require("tslib"),i=require("@any-touch/compute"),o=require("@any-touch/recognizer"),s=(t=o)&&"object"==typeof t&&"default"in t?t.default:t,n={name:"pinch",threshold:0,pointLength:2},r=function(t){function s(i){return t.call(this,e.__assign(e.__assign({},n),i))||this}return e.__extends(s,t),s.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)},s.prototype.recognize=function(t,s){var n=this.compute([i.ComputeVectorForMutli],t);"activeV"in n&&(this.computed=e.__assign(e.__assign({},this.computed),i.computeScale(n))),o.recognizeForPressMoveLike(this,t,s)},s}(s);exports.default=r; |
{ | ||
"name": "@any-touch/pinch", | ||
"version": "0.7.8", | ||
"version": "0.7.9", | ||
"description": "any-touch的识别器, 用来识别捏合手势.", | ||
@@ -17,4 +17,4 @@ "main": "./dist/index", | ||
"dependencies": { | ||
"@any-touch/compute": "^0.7.8", | ||
"@any-touch/recognizer": "^0.7.8" | ||
"@any-touch/compute": "^0.7.9", | ||
"@any-touch/recognizer": "^0.7.9" | ||
}, | ||
@@ -25,3 +25,3 @@ "publishConfig": { | ||
"sideEffects": false, | ||
"gitHead": "14f864223c9a4df212561b9a53e93a5f89217b15" | ||
"gitHead": "4d795d9ac1c0cf597db9bc070284f3de7578e5fd" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
5070
Updated@any-touch/compute@^0.7.9
Updated@any-touch/recognizer@^0.7.9