@any-touch/pan
Advanced tools
Comparing version 0.7.4 to 0.7.5
@@ -0,0 +0,0 @@ import { Input, CommonEmitFunction } from '@any-touch/shared'; |
@@ -0,0 +0,0 @@ import { __extends, __assign } from 'tslib'; |
@@ -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:"pan",threshold:10,pointLength:1},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.distance;return(this.isRecognized||this.options.threshold<=i)&&this.isValidPointLength(t)},t.prototype.recognize=function(e,t){this.computed=this.compute([compute.ComputeVAndDir,compute.ComputeDistance,compute.ComputeDeltaXY],e),void 0!==this.computed.direction&&Recognizer.recognizeForPressMoveLike(this,e,t)&&t(this.options.name+this.computed.direction,this.computed)},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"),n=(t=o)&&"object"==typeof t&&"default"in t?t.default:t,s={name:"pan",threshold:10,pointLength:1},r=function(t){function n(i){return t.call(this,e.__assign(e.__assign({},s),i))||this}return e.__extends(n,t),n.prototype.test=function(t){var e=t.pointLength,i=this.computed.distance;return(this.isRecognized||this.options.threshold<=i)&&this.isValidPointLength(e)},n.prototype.recognize=function(t,e){this.computed=this.compute([i.ComputeVAndDir,i.ComputeDistance,i.ComputeDeltaXY],t),void 0!==this.computed.direction&&o.recognizeForPressMoveLike(this,t,e)&&e(this.options.name+this.computed.direction,this.computed)},n}(n);exports.default=r; |
{ | ||
"name": "@any-touch/pan", | ||
"version": "0.7.4", | ||
"version": "0.7.5", | ||
"description": "any-touch的识别器, 用来识别拖拽手势.", | ||
@@ -17,5 +17,5 @@ "main": "./dist/index", | ||
"dependencies": { | ||
"@any-touch/compute": "^0.7.4", | ||
"@any-touch/recognizer": "^0.7.4", | ||
"@any-touch/shared": "^0.7.4" | ||
"@any-touch/compute": "^0.7.5", | ||
"@any-touch/recognizer": "^0.7.5", | ||
"@any-touch/shared": "^0.7.5" | ||
}, | ||
@@ -26,3 +26,3 @@ "publishConfig": { | ||
"sideEffects": false, | ||
"gitHead": "20cfae8bee6e95cca8dd56799f56dd48234556c4" | ||
"gitHead": "d4d3471e164e745d18940a2fd3192362a3a86edf" | ||
} |
@@ -0,0 +0,0 @@ # @any-touch/pan |
Sorry, the diff of this file is not supported yet
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
5135
Updated@any-touch/compute@^0.7.5
Updated@any-touch/recognizer@^0.7.5
Updated@any-touch/shared@^0.7.5