"use strict";

exports.__esModule = true;
exports.ZOOM_RATIO = exports.ZOOM_BUTTON_INCREMENT_SIZE = exports.WHEEL_MOVE_Y_THRESHOLD = exports.WHEEL_MOVE_X_THRESHOLD = exports.SOURCE_TOUCH = exports.SOURCE_POINTER = exports.SOURCE_MOUSE = exports.SOURCE_ANY = exports.MIN_ZOOM_LEVEL = exports.MIN_SWIPE_DISTANCE = exports.MAX_ZOOM_LEVEL = exports.KEYS = exports.ACTION_SWIPE = exports.ACTION_ROTATE = exports.ACTION_PINCH = exports.ACTION_NONE = exports.ACTION_MOVE = void 0;
// Min image zoom level
const MIN_ZOOM_LEVEL = 0; // Max image zoom level

exports.MIN_ZOOM_LEVEL = MIN_ZOOM_LEVEL;
const MAX_ZOOM_LEVEL = 300; // Size ratio between previous and next zoom levels

exports.MAX_ZOOM_LEVEL = MAX_ZOOM_LEVEL;
const ZOOM_RATIO = 1.007; // How much to increase/decrease the zoom level when the zoom buttons are clicked

exports.ZOOM_RATIO = ZOOM_RATIO;
const ZOOM_BUTTON_INCREMENT_SIZE = 100; // Used to judge the amount of horizontal scroll needed to initiate a image move

exports.ZOOM_BUTTON_INCREMENT_SIZE = ZOOM_BUTTON_INCREMENT_SIZE;
const WHEEL_MOVE_X_THRESHOLD = 200; // Used to judge the amount of vertical scroll needed to initiate a zoom action

exports.WHEEL_MOVE_X_THRESHOLD = WHEEL_MOVE_X_THRESHOLD;
const WHEEL_MOVE_Y_THRESHOLD = 1;
exports.WHEEL_MOVE_Y_THRESHOLD = WHEEL_MOVE_Y_THRESHOLD;
const KEYS = {
  ESC: 27,
  LEFT_ARROW: 37,
  RIGHT_ARROW: 39
}; // Actions

exports.KEYS = KEYS;
const ACTION_NONE = 0;
exports.ACTION_NONE = ACTION_NONE;
const ACTION_MOVE = 1;
exports.ACTION_MOVE = ACTION_MOVE;
const ACTION_SWIPE = 2;
exports.ACTION_SWIPE = ACTION_SWIPE;
const ACTION_PINCH = 3;
exports.ACTION_PINCH = ACTION_PINCH;
const ACTION_ROTATE = 4; // Events source

exports.ACTION_ROTATE = ACTION_ROTATE;
const SOURCE_ANY = 0;
exports.SOURCE_ANY = SOURCE_ANY;
const SOURCE_MOUSE = 1;
exports.SOURCE_MOUSE = SOURCE_MOUSE;
const SOURCE_TOUCH = 2;
exports.SOURCE_TOUCH = SOURCE_TOUCH;
const SOURCE_POINTER = 3; // Minimal swipe distance

exports.SOURCE_POINTER = SOURCE_POINTER;
const MIN_SWIPE_DISTANCE = 200;
exports.MIN_SWIPE_DISTANCE = MIN_SWIPE_DISTANCE;