"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.changeDefaultConfig = changeDefaultConfig; Object.defineProperty(exports, "colorConfig", { enumerable: true, get: function get() { return _color.colorConfig; } }); Object.defineProperty(exports, "gridConfig", { enumerable: true, get: function get() { return _grid.gridConfig; } }); Object.defineProperty(exports, "xAxisConfig", { enumerable: true, get: function get() { return _axis.xAxisConfig; } }); Object.defineProperty(exports, "yAxisConfig", { enumerable: true, get: function get() { return _axis.yAxisConfig; } }); Object.defineProperty(exports, "titleConfig", { enumerable: true, get: function get() { return _title.titleConfig; } }); Object.defineProperty(exports, "lineConfig", { enumerable: true, get: function get() { return _line.lineConfig; } }); Object.defineProperty(exports, "barConfig", { enumerable: true, get: function get() { return _bar.barConfig; } }); Object.defineProperty(exports, "pieConfig", { enumerable: true, get: function get() { return _pie.pieConfig; } }); Object.defineProperty(exports, "radarAxisConfig", { enumerable: true, get: function get() { return _radarAxis.radarAxisConfig; } }); Object.defineProperty(exports, "radarConfig", { enumerable: true, get: function get() { return _radar.radarConfig; } }); Object.defineProperty(exports, "gaugeConfig", { enumerable: true, get: function get() { return _gauge.gaugeConfig; } }); Object.defineProperty(exports, "legendConfig", { enumerable: true, get: function get() { return _legend.legendConfig; } }); exports.keys = void 0; var _color = require("./color"); var _grid = require("./grid"); var _axis = require("./axis"); var _title = require("./title"); var _line = require("./line"); var _bar = require("./bar"); var _pie = require("./pie"); var _radarAxis = require("./radarAxis"); var _radar = require("./radar"); var _gauge = require("./gauge"); var _legend = require("./legend"); var _util = require("../util"); var allConfig = { colorConfig: _color.colorConfig, gridConfig: _grid.gridConfig, xAxisConfig: _axis.xAxisConfig, yAxisConfig: _axis.yAxisConfig, titleConfig: _title.titleConfig, lineConfig: _line.lineConfig, barConfig: _bar.barConfig, pieConfig: _pie.pieConfig, radarAxisConfig: _radarAxis.radarAxisConfig, radarConfig: _radar.radarConfig, gaugeConfig: _gauge.gaugeConfig, legendConfig: _legend.legendConfig }; /** * @description Change default configuration * @param {String} key Configuration key * @param {Object|Array} config Your config * @return {Undefined} No return */ function changeDefaultConfig(key, config) { if (!allConfig["".concat(key, "Config")]) { console.warn('Change default config Error - Invalid key!'); return; } (0, _util.deepMerge)(allConfig["".concat(key, "Config")], config); } var keys = ['color', 'title', 'legend', 'xAxis', 'yAxis', 'grid', 'radarAxis', 'line', 'bar', 'pie', 'radar', 'gauge']; exports.keys = keys;