@elastic/charts
Version:
Elastic-Charts data visualization library
26 lines • 912 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.DEFAULT_ANNOTATION_RECT_STYLE = exports.DEFAULT_ANNOTATION_LINE_STYLE = void 0;
exports.mergeWithDefaultAnnotationLine = mergeWithDefaultAnnotationLine;
exports.mergeWithDefaultAnnotationRect = mergeWithDefaultAnnotationRect;
const common_1 = require("../common");
exports.DEFAULT_ANNOTATION_LINE_STYLE = {
line: {
stroke: '#777',
strokeWidth: 1,
opacity: 1,
},
};
exports.DEFAULT_ANNOTATION_RECT_STYLE = {
stroke: '#FFEEBC',
strokeWidth: 0,
opacity: 0.25,
fill: '#FFEEBC',
};
function mergeWithDefaultAnnotationLine(defaultStyles, config = {}) {
return (0, common_1.mergePartial)(defaultStyles, config);
}
function mergeWithDefaultAnnotationRect(defaultStyles, config) {
return (0, common_1.mergePartial)(defaultStyles, config);
}
//# sourceMappingURL=merge_utils.js.map