create-expo-cljs-app
Version:
Create a react native application with Expo and Shadow-CLJS!
59 lines (44 loc) • 1.19 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.TapGesture = void 0;
var _gesture = require("./gesture");
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
class TapGesture extends _gesture.BaseGesture {
constructor() {
super();
_defineProperty(this, "config", {});
this.handlerName = 'TapGestureHandler';
}
minPointers(minPointers) {
this.config.minPointers = minPointers;
return this;
}
numberOfTaps(count) {
this.config.numberOfTaps = count;
return this;
}
maxDistance(maxDist) {
this.config.maxDist = maxDist;
return this;
}
maxDuration(duration) {
this.config.maxDurationMs = duration;
return this;
}
maxDelay(delay) {
this.config.maxDelayMs = delay;
return this;
}
maxDeltaX(delta) {
this.config.maxDeltaX = delta;
return this;
}
maxDeltaY(delta) {
this.config.maxDeltaY = delta;
return this;
}
}
exports.TapGesture = TapGesture;
//# sourceMappingURL=tapGesture.js.map