@any-touch/pinch
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"),a={name:"pinch",threshold:0,pointLength:2};exports.default=function(i,o){var r=e.createPluginContext(a,o);return i.compute([t.ComputeVectorForMutli,t.ComputeScale],(function(t){if(e.resetState(r),!e.isDisabled(r)){var a=function(){var a=t.pointLength,i=t.scale,o=t.deltaScale,n=t.phase;return r.pointLength===a&&(void 0!==i&&void 0!==o&&r.threshold<Math.abs(i-1)||e.isRecognized(r.state))||e.isRecognized(r.state)&&[e.TYPE_END,e.TYPE_CANCEL].includes(n)}();r.state=e.flow(a,r.state,t.phase);var o=r.name;if(a){i.emit2(o,t,r);var n=t.deltaScale;1!==n&&i.emit2(o+(1<n?"in":"out"),t,r)}var s=e.getStatusName(r.state);s&&i.emit2(o+s,t,r)}})),r}; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@any-touch/pinch", | ||
"version": "2.0.2-alpha.1", | ||
"version": "2.0.2", | ||
"description": "any-touch的识别器, 用来识别捏合手势.", | ||
@@ -14,7 +14,4 @@ "main": "./dist/index", | ||
"dependencies": { | ||
"@any-touch/compute": "^2.0.2-alpha.1" | ||
"@any-touch/compute": "^2.0.2" | ||
}, | ||
"peerDependencies": { | ||
"any-touch": "^2.0.1" | ||
}, | ||
"publishConfig": { | ||
@@ -24,3 +21,3 @@ "access": "public" | ||
"sideEffects": false, | ||
"gitHead": "6448e271ecbc59ba49d220264ff4f5ab19950b87" | ||
"gitHead": "7df4617ecb8b89c720ce9747cdd77554c4966a88" | ||
} |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
7246
1
8
47
3
- 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