105 lines
2.6 KiB
JavaScript
105 lines
2.6 KiB
JavaScript
// Module ID: 5325
|
|
// Function ID: 5326
|
|
// Name: _isNativeReflectConstruct
|
|
// Dependencies: [41, 42, 93, 95, 98, 5312]
|
|
|
|
// Module 5325 (_isNativeReflectConstruct)
|
|
import TapGesture from "_classCallCheck";
|
|
import _possibleConstructorReturn from "_possibleConstructorReturn";
|
|
import _getPrototypeOf from "_getPrototypeOf";
|
|
import importDefaultResult from "_createClass";
|
|
|
|
function _isNativeReflectConstruct() {
|
|
try {
|
|
const _Boolean = Boolean;
|
|
const call = valueOf.call;
|
|
const _Reflect = Reflect;
|
|
const _Boolean2 = Boolean;
|
|
if (typeof call === "unknown") {
|
|
let callResult = valueOf();
|
|
} else {
|
|
callResult = call(constructResult);
|
|
}
|
|
let closure_0 = !callResult;
|
|
function _isNativeReflectConstruct() {
|
|
return closure_0;
|
|
}
|
|
return _isNativeReflectConstruct();
|
|
} catch (err) {
|
|
}
|
|
}
|
|
class TapGesture {
|
|
constructor() {
|
|
self = this;
|
|
tmp = TapGesture(this, TapGesture);
|
|
tmp2 = __esModule;
|
|
obj = __esModule(TapGesture);
|
|
tmp3 = __esModule;
|
|
if (_isNativeReflectConstruct()) {
|
|
tmp5 = globalThis;
|
|
_Reflect = Reflect;
|
|
constructResult = Reflect.construct(obj, [], tmp2(self).constructor);
|
|
} else {
|
|
constructResult = obj.apply(self, undefined);
|
|
}
|
|
tmp3Result = tmp3(self, constructResult);
|
|
tmp3Result.config = {};
|
|
tmp3Result.handlerName = "TapGestureHandler";
|
|
result = tmp3Result.shouldCancelWhenOutside(true);
|
|
return tmp3Result;
|
|
}
|
|
}
|
|
require("_inherits")(TapGesture, require("_isNativeReflectConstruct").BaseGesture);
|
|
const items = [
|
|
{
|
|
key: "minPointers",
|
|
value: function minPointers(minPointers) {
|
|
this.config.minPointers = minPointers;
|
|
return this;
|
|
}
|
|
},
|
|
{
|
|
key: "numberOfTaps",
|
|
value: function numberOfTaps(numberOfTaps) {
|
|
this.config.numberOfTaps = numberOfTaps;
|
|
return this;
|
|
}
|
|
},
|
|
{
|
|
key: "maxDistance",
|
|
value: function maxDistance(maxDist) {
|
|
this.config.maxDist = maxDist;
|
|
return this;
|
|
}
|
|
},
|
|
{
|
|
key: "maxDuration",
|
|
value: function maxDuration(maxDurationMs) {
|
|
this.config.maxDurationMs = maxDurationMs;
|
|
return this;
|
|
}
|
|
},
|
|
{
|
|
key: "maxDelay",
|
|
value: function maxDelay(maxDelayMs) {
|
|
this.config.maxDelayMs = maxDelayMs;
|
|
return this;
|
|
}
|
|
},
|
|
{
|
|
key: "maxDeltaX",
|
|
value: function maxDeltaX(maxDeltaX) {
|
|
this.config.maxDeltaX = maxDeltaX;
|
|
return this;
|
|
}
|
|
},
|
|
{
|
|
key: "maxDeltaY",
|
|
value: function maxDeltaY(maxDeltaY) {
|
|
this.config.maxDeltaY = maxDeltaY;
|
|
return this;
|
|
}
|
|
}
|
|
];
|
|
|
|
export const TapGesture = importDefaultResult(TapGesture, items);
|