"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.GRAPH_PADDING = exports.HEADER_PADDING = exports.TICK_FONT_SIZE = exports.getMaxTargetValueAssent = exports.TARGET_FONT_SIZE = exports.VALUE_FONT_SIZE = exports.SUBTITLE_FONT_ASCENT = exports.SUBTITLE_FONT_SIZE = exports.TITLE_LINE_SPACING = exports.TITLE_FONT_ASCENT = exports.TITLE_FONT_SIZE = exports.FONT_PADDING = exports.TEXT_ASCENT_RATIO = exports.DARK_THEME_BULLET_STYLE = exports.LIGHT_THEME_BULLET_STYLE = void 0;
exports.getTitleFont = getTitleFont;
exports.getSubtitleFont = getSubtitleFont;
exports.getValueFont = getValueFont;
exports.getTargetFont = getTargetFont;
exports.getTickFont = getTickFont;
exports.getTextAscentHeight = getTextAscentHeight;
const default_theme_attributes_1 = require("../../common/default_theme_attributes");
const base_colors_1 = require("../../utils/themes/base_colors");
exports.LIGHT_THEME_BULLET_STYLE = {
    fontFamily: default_theme_attributes_1.DEFAULT_FONT_FAMILY,
    textColor: base_colors_1.LIGHT_TEXT_COLORS.textParagraph,
    border: base_colors_1.LIGHT_BORDER_COLORS.borderBaseSubdued,
    barBackground: base_colors_1.LIGHT_TEXT_COLORS.textParagraph,
    colorBands: ['#AA87D1', '#D9C6EF'],
    nonFiniteText: 'N/A',
    minHeight: 64,
    angularTickLabelPadding: 10,
    fallbackBandColor: base_colors_1.LIGHT_BACKGROUND_COLORS.backgroundBaseDisabled,
};
exports.DARK_THEME_BULLET_STYLE = {
    fontFamily: default_theme_attributes_1.DEFAULT_FONT_FAMILY,
    textColor: base_colors_1.DARK_TEXT_COLORS.textParagraph,
    border: base_colors_1.DARK_BORDER_COLORS.borderBaseSubdued,
    barBackground: base_colors_1.DARK_TEXT_COLORS.textParagraph,
    colorBands: ['#6092C0', '#3F4E61'],
    nonFiniteText: 'N/A',
    minHeight: 64,
    angularTickLabelPadding: 10,
    fallbackBandColor: base_colors_1.DARK_BACKGROUND_COLORS.backgroundBaseDisabled,
};
function getFont(fontFamily, fontWeight) {
    return {
        fontStyle: 'normal',
        fontFamily,
        fontVariant: 'normal',
        fontWeight,
        textColor: 'black',
    };
}
function getTitleFont(fontFamily) {
    return getFont(fontFamily, 'bold');
}
function getSubtitleFont(fontFamily) {
    return getFont(fontFamily, 'normal');
}
function getValueFont(fontFamily) {
    return getFont(fontFamily, 'bold');
}
function getTargetFont(fontFamily) {
    return getFont(fontFamily, 'normal');
}
function getTickFont(fontFamily) {
    return getFont(fontFamily, 'normal');
}
exports.TEXT_ASCENT_RATIO = 0.8;
exports.FONT_PADDING = 8;
exports.TITLE_FONT_SIZE = 16;
exports.TITLE_FONT_ASCENT = exports.TITLE_FONT_SIZE * exports.TEXT_ASCENT_RATIO;
exports.TITLE_LINE_SPACING = 4;
exports.SUBTITLE_FONT_SIZE = 14;
exports.SUBTITLE_FONT_ASCENT = exports.SUBTITLE_FONT_SIZE * exports.TEXT_ASCENT_RATIO;
exports.VALUE_FONT_SIZE = 22;
const VALUE_FONT_ASCENT = exports.VALUE_FONT_SIZE * exports.TEXT_ASCENT_RATIO;
exports.TARGET_FONT_SIZE = 16;
const TARGET_FONT_ASCENT = exports.TARGET_FONT_SIZE * exports.TEXT_ASCENT_RATIO;
const getMaxTargetValueAssent = (target) => !target ? VALUE_FONT_ASCENT : Math.max(VALUE_FONT_ASCENT, TARGET_FONT_ASCENT);
exports.getMaxTargetValueAssent = getMaxTargetValueAssent;
exports.TICK_FONT_SIZE = 10;
exports.HEADER_PADDING = {
    top: 8,
    bottom: 10,
    left: 8,
    right: 8,
};
exports.GRAPH_PADDING = {
    top: 8,
    bottom: 8,
    left: 8,
    right: 8,
};
function getTextAscentHeight(fontSize, lines = 1, lineSpacing = 0) {
    return lines * (fontSize * exports.TEXT_ASCENT_RATIO) + (lines - 1) * lineSpacing;
}
//# sourceMappingURL=theme.js.map