"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var commons_1 = require("../../../../../utils/commons");
var color_library_wrappers_1 = require("../../../../partition_chart/layout/utils/color_library_wrappers");
function buildAreaStyles(baseColor, themeAreaStyle, geometryStateStyle) {
    var fillOpacity = function (opacity) { return opacity * themeAreaStyle.opacity * geometryStateStyle.opacity; };
    var fillColor = color_library_wrappers_1.stringToRGB(commons_1.getColorFromVariant(baseColor, themeAreaStyle.fill), fillOpacity);
    return {
        color: fillColor,
    };
}
exports.buildAreaStyles = buildAreaStyles;
//# sourceMappingURL=area.js.map