Socket
Socket
Sign inDemoInstall

@any-touch/pinch

Package Overview
Dependencies
0
Maintainers
1
Versions
79
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.6.0-beta.15 to 0.6.0-beta.20

dist/index.es.js

25

dist/index.js

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

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';
'use strict';
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) {
__extends(PinchRecognizer, _super);
tslib.__extends(PinchRecognizer, _super);
function PinchRecognizer(options) {

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

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

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

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

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

"peerDependencies": {
"any-touch": "0.6.0-beta.13"
"any-touch": "0.6.0-beta.19"
},

@@ -17,3 +17,3 @@ "publishConfig": {

},
"gitHead": "faf40f62eec8920b65663feadc76d6aefa40e06c"
"gitHead": "a5b24bb127e84f5ae86c656d53c4649fe7b863f4"
}
import { Input, CommonEmitFunction } from '@any-touch/shared/types';
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';
import {ComputeVectorForMutli,computeScale} from '@any-touch/compute';
import Recognizer,{recognizeForPressMoveLike} from '@any-touch/recognizer';
export default class PinchRecognizer extends Recognizer {

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

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