MCPcopy
hub / github.com/apache/echarts / compatBarItemStyle

Function compatBarItemStyle

src/preprocessor/backwardCompat.ts:80–94  ·  view source on GitHub ↗
(option: Dictionary<any>)

Source from the content-addressed store, hash-verified

78];
79
80function compatBarItemStyle(option: Dictionary<any>) {
81 const itemStyle = option && option.itemStyle;
82 if (itemStyle) {
83 for (let i = 0; i < BAR_ITEM_STYLE_MAP.length; i++) {
84 const oldName = BAR_ITEM_STYLE_MAP[i][1];
85 const newName = BAR_ITEM_STYLE_MAP[i][0];
86 if (itemStyle[oldName] != null) {
87 itemStyle[newName] = itemStyle[oldName];
88 if (__DEV__) {
89 deprecateReplaceLog(oldName, newName);
90 }
91 }
92 }
93 }
94}
95
96function compatPieLabel(option: Dictionary<any>) {
97 if (!option) {

Callers 1

globalBackwardCompatFunction · 0.85

Calls 1

deprecateReplaceLogFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…