"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 get_chart_id_1 = require("../../../../state/selectors/get_chart_id");
var compute_series_geometries_1 = require("./compute_series_geometries");
var get_tooltip_snap_1 = require("./get_tooltip_snap");
exports.isTooltipSnapEnableSelector = re_reselect_1.default([compute_series_geometries_1.computeSeriesGeometriesSelector, get_tooltip_snap_1.getTooltipSnapSelector], function (seriesGeometries, snap) { return isTooltipSnapEnabled(seriesGeometries.scales.xScale, snap); })(get_chart_id_1.getChartIdSelector);
function isTooltipSnapEnabled(xScale, snap) {
    return (xScale && xScale.bandwidth > 0) || snap;
}
//# sourceMappingURL=is_tooltip_snap_enabled.js.map