(option, isTheme)
| 22748 | } |
| 22749 | |
| 22750 | var compatStyle = function (option, isTheme) { |
| 22751 | each$5(toArr(option.series), function (seriesOpt) { |
| 22752 | isObject$3(seriesOpt) && processSeries(seriesOpt); |
| 22753 | }); |
| 22754 | |
| 22755 | var axes = ['xAxis', 'yAxis', 'radiusAxis', 'angleAxis', 'singleAxis', 'parallelAxis', 'radar']; |
| 22756 | isTheme && axes.push('valueAxis', 'categoryAxis', 'logAxis', 'timeAxis'); |
| 22757 | |
| 22758 | each$5( |
| 22759 | axes, |
| 22760 | function (axisName) { |
| 22761 | each$5(toArr(option[axisName]), function (axisOpt) { |
| 22762 | if (axisOpt) { |
| 22763 | compatTextStyle(axisOpt, 'axisLabel'); |
| 22764 | compatTextStyle(axisOpt.axisPointer, 'label'); |
| 22765 | } |
| 22766 | }); |
| 22767 | } |
| 22768 | ); |
| 22769 | |
| 22770 | each$5(toArr(option.parallel), function (parallelOpt) { |
| 22771 | var parallelAxisDefault = parallelOpt && parallelOpt.parallelAxisDefault; |
| 22772 | compatTextStyle(parallelAxisDefault, 'axisLabel'); |
| 22773 | compatTextStyle(parallelAxisDefault && parallelAxisDefault.axisPointer, 'label'); |
| 22774 | }); |
| 22775 | |
| 22776 | each$5(toArr(option.calendar), function (calendarOpt) { |
| 22777 | convertNormalEmphasis(calendarOpt, 'itemStyle'); |
| 22778 | compatTextStyle(calendarOpt, 'dayLabel'); |
| 22779 | compatTextStyle(calendarOpt, 'monthLabel'); |
| 22780 | compatTextStyle(calendarOpt, 'yearLabel'); |
| 22781 | }); |
| 22782 | |
| 22783 | // radar.name.textStyle |
| 22784 | each$5(toArr(option.radar), function (radarOpt) { |
| 22785 | compatTextStyle(radarOpt, 'name'); |
| 22786 | }); |
| 22787 | |
| 22788 | each$5(toArr(option.geo), function (geoOpt) { |
| 22789 | if (isObject$3(geoOpt)) { |
| 22790 | compatEC3CommonStyles(geoOpt); |
| 22791 | each$5(toArr(geoOpt.regions), function (regionObj) { |
| 22792 | compatEC3CommonStyles(regionObj); |
| 22793 | }); |
| 22794 | } |
| 22795 | }); |
| 22796 | |
| 22797 | each$5(toArr(option.timeline), function (timelineOpt) { |
| 22798 | compatEC3CommonStyles(timelineOpt); |
| 22799 | convertNormalEmphasis(timelineOpt, 'label'); |
| 22800 | convertNormalEmphasis(timelineOpt, 'itemStyle'); |
| 22801 | convertNormalEmphasis(timelineOpt, 'controlStyle', true); |
| 22802 | |
| 22803 | var data = timelineOpt.data; |
| 22804 | isArray(data) && each$1(data, function (item) { |
| 22805 | if (isObject$1(item)) { |
| 22806 | convertNormalEmphasis(item, 'label'); |
| 22807 | convertNormalEmphasis(item, 'itemStyle'); |
no test coverage detected