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-alpha.1 to 2.0.2

dist/index.js.map

1

dist/index.js
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@any-touch/shared"),t=require("@any-touch/compute"),a={name:"pinch",threshold:0,pointLength:2};exports.default=function(i,o){var r=e.createPluginContext(a,o);return i.compute([t.ComputeVectorForMutli,t.ComputeScale],(function(t){if(e.resetState(r),!e.isDisabled(r)){var a=function(){var a=t.pointLength,i=t.scale,o=t.deltaScale,n=t.phase;return r.pointLength===a&&(void 0!==i&&void 0!==o&&r.threshold<Math.abs(i-1)||e.isRecognized(r.state))||e.isRecognized(r.state)&&[e.TYPE_END,e.TYPE_CANCEL].includes(n)}();r.state=e.flow(a,r.state,t.phase);var o=r.name;if(a){i.emit2(o,t,r);var n=t.deltaScale;1!==n&&i.emit2(o+(1<n?"in":"out"),t,r)}var s=e.getStatusName(r.state);s&&i.emit2(o+s,t,r)}})),r};
//# sourceMappingURL=index.js.map

9

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

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

"dependencies": {
"@any-touch/compute": "^2.0.2-alpha.1"
"@any-touch/compute": "^2.0.2"
},
"peerDependencies": {
"any-touch": "^2.0.1"
},
"publishConfig": {

@@ -24,3 +21,3 @@ "access": "public"

"sideEffects": false,
"gitHead": "6448e271ecbc59ba49d220264ff4f5ab19950b87"
"gitHead": "7df4617ecb8b89c720ce9747cdd77554c4966a88"
}
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