"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
var re_reselect_1 = __importDefault(require("re-reselect"));
var constants_1 = require("../../../../specs/constants");
var settings_1 = require("../../../../specs/settings");
var get_chart_id_1 = require("../../../../state/selectors/get_chart_id");
var get_settings_specs_1 = require("../../../../state/selectors/get_settings_specs");
exports.getTooltipSnapSelector = re_reselect_1.default([get_settings_specs_1.getSettingsSpecSelector], getTooltipSnap)(get_chart_id_1.getChartIdSelector);
function getTooltipSnap(settings) {
    var tooltip = settings.tooltip;
    if (tooltip && settings_1.isTooltipProps(tooltip)) {
        return tooltip.snap || false;
    }
    return constants_1.DEFAULT_TOOLTIP_SNAP;
}
//# sourceMappingURL=get_tooltip_snap.js.map