"use strict";

Object.defineProperty(exports, "__esModule", {
    value: !0
}), exports.getPixelRatio = exports.defaultPixelRatio = void 0;

const gantt_helper_1 = require("../gantt-helper");

function getPixelRatio() {
    return gantt_helper_1.isNode ? exports.defaultPixelRatio = 1 : (exports.defaultPixelRatio = Math.ceil(window.devicePixelRatio || 1), 
    exports.defaultPixelRatio > 1 && exports.defaultPixelRatio % 2 != 0 && (exports.defaultPixelRatio += 1)), 
    exports.defaultPixelRatio;
}

exports.defaultPixelRatio = 1, exports.getPixelRatio = getPixelRatio, getPixelRatio();
//# sourceMappingURL=pixel-ratio.js.map