@any-touch/pinch
Advanced tools
Comparing version 0.6.0-beta.14 to 0.6.0-beta.15
@@ -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 = { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5032
5
91