Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@any-touch/pinch

Package Overview
Dependencies
Maintainers
1
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@any-touch/pinch - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1-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};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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc