@any-touch/swipe
Advanced tools
Comparing version 2.0.2-alpha.1 to 2.0.2
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@any-touch/shared"),t=require("@any-touch/compute"),n={name:"swipe",threshold:10,velocity:.3,pointLength:1};exports.default=function(i,o){var r=e.createPluginContext(n,o);return i.compute([t.ComputeDistance,t.ComputeVAndDir,t.ComputeMaxLength],(function(t){if(r.state=0,!r.disabled&&function(){if(e.TYPE_END!==t.phase)return!1;var n=t.velocityX,i=t.velocityY,o=t.distance;return t.maxPointLength===r.pointLength&&0===t.points.length&&r.threshold<o&&r.velocity<Math.max(n,i)}()){var n=r.name;r.state=1,i.emit2(n,t,r),i.emit2(n+t.direction,t,r)}})),r}; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@any-touch/swipe", | ||
"version": "2.0.2-alpha.1", | ||
"version": "2.0.2", | ||
"description": "any-touch的识别器, 用来识别划动手势.", | ||
@@ -11,8 +11,5 @@ "main": "./dist/index.js", | ||
"dependencies": { | ||
"@any-touch/compute": "^2.0.2-alpha.1", | ||
"@any-touch/shared": "^2.0.2-alpha.1" | ||
"@any-touch/compute": "^2.0.2", | ||
"@any-touch/shared": "^2.0.2" | ||
}, | ||
"peerDependencies": { | ||
"any-touch": "^2.0.1" | ||
}, | ||
"files": [ | ||
@@ -25,3 +22,3 @@ "dist/*" | ||
"sideEffects": false, | ||
"gitHead": "6448e271ecbc59ba49d220264ff4f5ab19950b87" | ||
"gitHead": "7df4617ecb8b89c720ce9747cdd77554c4966a88" | ||
} |
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
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
6594
2
8
43
2
- Removed@any-touch/core@2.2.0(transitive)
- Removed@any-touch/doubletap@2.2.0(transitive)
- Removed@any-touch/pan@2.2.0(transitive)
- Removed@any-touch/pinch@2.2.0(transitive)
- Removed@any-touch/press@2.2.0(transitive)
- Removed@any-touch/rotate@2.2.0(transitive)
- Removed@any-touch/swipe@2.2.0(transitive)
- Removed@any-touch/tap@2.2.0(transitive)
- Removedany-event@2.2.0(transitive)
- Removedany-touch@2.2.0(transitive)
Updated@any-touch/compute@^2.0.2
Updated@any-touch/shared@^2.0.2