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 0.6.0-beta.14 to 0.6.0-beta.15

25

dist/index.js

@@ -1,12 +0,9 @@

'use strict';
import { __extends, __assign } from 'tslib';
import ComputeVectorForMutli from '@any-touch/compute-vector-for-mutli';
import computeScale from '@any-touch/compute-scale';
import Recognizer from '@any-touch/recognizer';
import recognizeForPressMoveLike from '@any-touch/recognize-for-press-move-like';
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var tslib = require('tslib');
var compute = require('@any-touch/compute');
var Recognizer = require('@any-touch/recognizer');
var Recognizer__default = _interopDefault(Recognizer);
var PinchRecognizer = (function (_super) {
tslib.__extends(PinchRecognizer, _super);
__extends(PinchRecognizer, _super);
function PinchRecognizer(options) {

@@ -22,7 +19,7 @@ if (options === void 0) { options = {}; }

PinchRecognizer.prototype.recognize = function (input, emit) {
var computed = this.compute([compute.ComputeVectorForMutli], input);
var computed = this.compute([ComputeVectorForMutli], input);
if ("activeV" in computed) {
this.computed = tslib.__assign(tslib.__assign({}, this.computed), compute.computeScale(computed));
this.computed = __assign(__assign({}, this.computed), computeScale(computed));
}
Recognizer.recognizeForPressMoveLike(this, input, emit);
recognizeForPressMoveLike(this, input, emit);
};

@@ -35,4 +32,4 @@ PinchRecognizer.DEFAULT_OPTIONS = {

return PinchRecognizer;
}(Recognizer__default));
}(Recognizer));
module.exports = PinchRecognizer;
export default PinchRecognizer;
{
"name": "@any-touch/pinch",
"version": "0.6.0-beta.14",
"version": "0.6.0-beta.15",
"description": "any-touch的识别器, 用来识别捏合手势.",

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

},
"gitHead": "0abbd642603961f0d1d10841352073ad411984ec"
"gitHead": "faf40f62eec8920b65663feadc76d6aefa40e06c"
}
import { Input, CommonEmitFunction } from '@any-touch/shared/types';
import {ComputeVectorForMutli,computeScale} from '@any-touch/compute';
import Recognizer,{recognizeForPressMoveLike} from '@any-touch/recognizer';
import ComputeVectorForMutli from '@any-touch/compute-vector-for-mutli';
import computeScale from '@any-touch/compute-scale';
import Recognizer from '@any-touch/recognizer';
import recognizeForPressMoveLike from '@any-touch/recognize-for-press-move-like';
export default class PinchRecognizer extends Recognizer {

@@ -6,0 +7,0 @@ static DEFAULT_OPTIONS = {

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