MCPcopy Index your code
hub / github.com/SuperMap/iClient-JavaScript / initBase

Function initBase

libs/echarts/echarts-en.simple.js:21869–21901  ·  view source on GitHub ↗
(baseOption)

Source from the content-addressed store, hash-verified

21867}
21868
21869function initBase(baseOption) {
21870 baseOption = baseOption;
21871
21872 // Using OPTION_INNER_KEY to mark that this option can not be used outside,
21873 // i.e. `chart.setOption(chart.getModel().option);` is forbiden.
21874 this.option = {};
21875 this.option[OPTION_INNER_KEY] = 1;
21876
21877 /**
21878 * Init with series: [], in case of calling findSeries method
21879 * before series initialized.
21880 * @type {Object.<string, Array.<module:echarts/model/Model>>}
21881 * @private
21882 */
21883 this._componentsMap = createHashMap({series: []});
21884
21885 /**
21886 * Mapping between filtered series list and raw series list.
21887 * key: filtered series indices, value: raw series indices.
21888 * @type {Array.<nubmer>}
21889 * @private
21890 */
21891 this._seriesIndices;
21892
21893 this._seriesIndicesMap;
21894
21895 mergeTheme(baseOption, this._theme.option);
21896
21897 // TODO Needs clone when merging to the unexisted property
21898 merge(baseOption, globalDefault, false);
21899
21900 this.mergeOption(baseOption);
21901}
21902
21903/**
21904 * @inner

Callers

nothing calls this directly

Calls 3

createHashMapFunction · 0.70
mergeThemeFunction · 0.70
mergeFunction · 0.70

Tested by

no test coverage detected