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

@any-touch/rotate

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/rotate - npm Package Compare versions

Comparing version 2.0.2 to 2.0.3-alpha.0

2

dist/index.es.js

@@ -1,2 +0,2 @@

import{createPluginContext as t,isDisabled as e,resetState as a,isRecognized as n,TYPE_END as o,TYPE_CANCEL as r,flow as h,getStatusName as s}from"@any-touch/shared";import{ComputeVectorForMutli as i,ComputeAngle as m}from"@any-touch/compute";var p={name:"rotate",threshold:0,pointLength:2};function u(u,c){var f=t(p,c);return u.compute([i,m],(function(t){if(!e(f)){a(f);var i,m,p,c=(i=t.pointLength,m=t.angle,p=t.phase,f.pointLength===i&&(f.threshold<Math.abs(m)||n(f.state))||n(f.state)&&[o,r].includes(p));f.state=h(c,f.state,t.phase);var d=f.name;c&&u.emit2(d,t,f);var l=s(f.state);l&&u.emit2(d+l,t,f)}})),f}export{u as default};
import{createPluginContext as t,isDisabled as e,resetState as n,isRecognized as o,TYPE_END as s,TYPE_CANCEL as a,flow as r,getStatusName as c}from"@any-touch/shared";import{ComputeVectorForMutli as h,ComputeAngle as i}from"@any-touch/compute";const u={name:"rotate",threshold:0,pointLength:2};function m(m,p){const f=t(u,p);return m.compute([h,i],(t=>{if(e(f))return;n(f);const h=function(){const{pointLength:e,angle:n,phase:r}=t;return f.pointLength===e&&(f.threshold<Math.abs(n)||o(f.state))||o(f.state)&&[s,a].includes(r)}();f.state=r(h,f.state,t.phase);const{name:i}=f;h&&m.emit2(i,t,f);const u=c(f.state);u&&m.emit2(i+u,t,f)})),f}export{m as default};
//# sourceMappingURL=index.es.js.map
{
"name": "@any-touch/rotate",
"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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc