@any-touch/pinch
Advanced tools
Comparing version 2.0.0 to 2.0.1-alpha.0
@@ -1,2 +0,2 @@ | ||
import{createPluginContext as t,resetState as e,isDisabled as a,isRecognized as n,TYPE_END as o,TYPE_CANCEL as r,flow as i,getStatusName as h}from"@any-touch/shared";import{ComputeVectorForMutli as s,ComputeScale as c}from"@any-touch/compute";var u={name:"pinch",threshold:0,pointLength:2};export default function(m,p){var d=t(u,p);return m.compute([s,c],(function(t){if(e(d),!a(d)){var s=function(){var e=t.pointLength,a=t.scale,i=t.deltaScale,h=t.phase;return d.pointLength===e&&(void 0!==a&&void 0!==i&&d.threshold<Math.abs(a-1)||n(d.state))||n(d.state)&&[o,r].includes(h)}();d.state=i(s,d.state,t.phase);var c=d.name;if(s){m.emit2(c,t,d);var u=t.deltaScale;1!==u&&m.emit2(c+(1<u?"in":"out"),t,d)}var p=h(d.state);p&&m.emit2(c+p,t,d)}})),d} | ||
import{createPluginContext as t,resetState as e,isDisabled as a,isRecognized as n,TYPE_END as o,TYPE_CANCEL as r,flow as i,getStatusName as h}from"@any-touch/shared";import{ComputeVectorForMutli as s,ComputeScale as c}from"@any-touch/compute";var u={name:"pinch",threshold:0,pointLength:2};function m(m,p){var d=t(u,p);return m.compute([s,c],(function(t){if(e(d),!a(d)){var s=function(){var e=t.pointLength,a=t.scale,i=t.deltaScale,h=t.phase;return d.pointLength===e&&(void 0!==a&&void 0!==i&&d.threshold<Math.abs(a-1)||n(d.state))||n(d.state)&&[o,r].includes(h)}();d.state=i(s,d.state,t.phase);var c=d.name;if(s){m.emit2(c,t,d);var u=t.deltaScale;1!==u&&m.emit2(c+(1<u?"in":"out"),t,d)}var p=h(d.state);p&&m.emit2(c+p,t,d)}})),d}export{m as default}; | ||
//# sourceMappingURL=index.es.js.map |
{ | ||
"name": "@any-touch/pinch", | ||
"version": "2.0.0", | ||
"version": "2.0.1-alpha.0", | ||
"description": "any-touch的识别器, 用来识别捏合手势.", | ||
@@ -14,3 +14,3 @@ "main": "./dist/index", | ||
"dependencies": { | ||
"@any-touch/compute": "^2.0.0", | ||
"@any-touch/compute": "^2.0.1-alpha.0", | ||
"@any-touch/recognizer": "^1.0.14" | ||
@@ -22,3 +22,3 @@ }, | ||
"sideEffects": false, | ||
"gitHead": "fbbe6448895509158a8a9f4e68be2e6ebc7c7fb6" | ||
"gitHead": "8e3fda195ba6edbf27e7cc8a0f0379e02c05ca49" | ||
} |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
5802
3