Socket
Socket
Sign inDemoInstall

@any-touch/pinch

Package Overview
Dependencies
4
Maintainers
1
Versions
79
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.2 to 2.0.3-alpha.0

2

dist/index.es.js

@@ -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};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};
import{createPluginContext as t,resetState as e,isDisabled as n,isRecognized as o,TYPE_END as a,TYPE_CANCEL as s,flow as c,getStatusName as i}from"@any-touch/shared";import{ComputeVectorForMutli as h,ComputeScale as r}from"@any-touch/compute";const u={name:"pinch",threshold:0,pointLength:2};function m(m,p){const d=t(u,p);return m.compute([h,r],(t=>{if(e(d),n(d))return;const h=function(){const{pointLength:e,scale:n,deltaScale:c,phase:i}=t;return d.pointLength===e&&(void 0!==n&&void 0!==c&&d.threshold<Math.abs(n-1)||o(d.state))||o(d.state)&&[a,s].includes(i)}();d.state=c(h,d.state,t.phase);const{name:r}=d;if(h){m.emit2(r,t,d);const{deltaScale:e}=t;1!==e&&m.emit2(r+(1<e?"in":"out"),t,d)}const u=i(d.state);u&&m.emit2(r+u,t,d)})),d}export{m as default};
//# sourceMappingURL=index.es.js.map
{
"name": "@any-touch/pinch",
"version": "2.0.2",
"version": "2.0.3-alpha.0",
"description": "any-touch的识别器, 用来识别捏合手势.",

@@ -14,3 +14,3 @@ "main": "./dist/index",

"dependencies": {
"@any-touch/compute": "^2.0.2"
"@any-touch/compute": "^2.0.3-alpha.0"
},

@@ -21,3 +21,3 @@ "publishConfig": {

"sideEffects": false,
"gitHead": "7df4617ecb8b89c720ce9747cdd77554c4966a88"
"gitHead": "e53ab5c44a400b04b0de853a9358303007f67e8e"
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc