"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = (height, ySpread, maxY) => {
    const labelLen = Math.floor(height / 36);
    const labelHeight = height / labelLen;
    const labels = [];
    //   let labelStep = ySpread
    //   if   (format === 'date') {
    // month
    // day
    // hour
    // minute
    // year
    // second
    //   }
    //   const step = ySpread / labelLen
    if (ySpread) {
        for (let i = 0; i < labelLen + 1; i++) {
            const x = maxY - (ySpread / labelLen) * i;
            labels.push({
                y: i * labelHeight,
                label: isNaN(x) ? 0 : x,
            });
        }
    }
    else {
        for (let i = 0; i < labelLen; i++) {
            labels.push({ y: i * labelHeight });
        }
    }
    return { labels, labelHeight };
};
//# sourceMappingURL=genLabels.js.map