Socket
Socket
Sign inDemoInstall

@any-touch/pinch

Package Overview
Dependencies
5
Maintainers
1
Versions
79
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.0-alpha.3 to 2.0.0-alpha.4

dist/index.es.js.map

1

dist/index.es.js
import{createPluginContext as t,resetState as e,isDisabled as a,isRecognized as o,TYPE_END as n,TYPE_CANCEL as r,flow as h,getStatusName as i}from"@any-touch/shared";import{ComputeVectorForMutli as s,ComputeScale as p}from"@any-touch/compute";var c={name:"pinch",threshold:0,pointLength:2};export default function(m,u){var d=t(c,u);return m.compute([s,p],(function(t){if(e(d),!a(d)){var s,p,c,u,l=(s=t.pointLength,p=t.scale,c=t.deltaScale,u=t.phase,d.pointLength===s&&(void 0!==p&&void 0!==c&&d.threshold<Math.abs(p-1)||o(d.state))||o(d.state)&&[n,r].includes(u));d.state=h(l,d.state,t.phase);var v=d.name;l&&m.emit2(v,t,d);var f=i(d.state);f&&m.emit2(v+f,t,d)}})),d}
//# sourceMappingURL=index.es.js.map

6

package.json
{
"name": "@any-touch/pinch",
"version": "2.0.0-alpha.3",
"version": "2.0.0-alpha.4",
"description": "any-touch的识别器, 用来识别捏合手势.",

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

"dependencies": {
"@any-touch/compute": "^2.0.0-alpha.3",
"@any-touch/compute": "^2.0.0-alpha.4",
"@any-touch/recognizer": "^1.0.14"

@@ -22,3 +22,3 @@ },

"sideEffects": false,
"gitHead": "090c02977d2540520f72ff80db445aaff91fd1bf"
"gitHead": "0104cf40d492a3f7927d7f7d07e7ca66cf96f455"
}
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