react-native-zoom-toolkit
Version:
Smoothly zoom any image, video or component you want!
38 lines (37 loc) • 1.56 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.SwipeDirection = exports.ScaleMode = exports.PinchCenteringMode = exports.PanMode = void 0;
let SwipeDirection = exports.SwipeDirection = /*#__PURE__*/function (SwipeDirection) {
SwipeDirection[SwipeDirection["UP"] = 0] = "UP";
SwipeDirection[SwipeDirection["DOWN"] = 1] = "DOWN";
SwipeDirection[SwipeDirection["LEFT"] = 2] = "LEFT";
SwipeDirection[SwipeDirection["RIGHT"] = 3] = "RIGHT";
return SwipeDirection;
}({});
/**
* @description Determine how your component must behave when it reaches the specified boundaries
* by its enclosing container.
*/
let PanMode = exports.PanMode = /*#__PURE__*/function (PanMode) {
PanMode[PanMode["CLAMP"] = 0] = "CLAMP";
PanMode[PanMode["FREE"] = 1] = "FREE";
PanMode[PanMode["FRICTION"] = 2] = "FRICTION";
return PanMode;
}({});
/**
* @description Determine how your component must behave when the pinch gesture's scale value
* exceeds the specified boundaries by minScale and maxScale properties.
*/
let ScaleMode = exports.ScaleMode = /*#__PURE__*/function (ScaleMode) {
ScaleMode[ScaleMode["CLAMP"] = 0] = "CLAMP";
ScaleMode[ScaleMode["BOUNCE"] = 1] = "BOUNCE";
return ScaleMode;
}({});
let PinchCenteringMode = exports.PinchCenteringMode = /*#__PURE__*/function (PinchCenteringMode) {
PinchCenteringMode[PinchCenteringMode["CLAMP"] = 0] = "CLAMP";
PinchCenteringMode[PinchCenteringMode["INTERACTION"] = 1] = "INTERACTION";
return PinchCenteringMode;
}({});
//# sourceMappingURL=types.js.map