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

Function compatPieLabel

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

Source from the content-addressed store, hash-verified

94}
95
96function compatPieLabel(option: Dictionary<any>) {
97 if (!option) {
98 return;
99 }
100 if (option.alignTo === 'edge' && option.margin != null && option.edgeDistance == null) {
101 if (__DEV__) {
102 deprecateReplaceLog('label.margin', 'label.edgeDistance', 'pie');
103 }
104 option.edgeDistance = option.margin;
105 }
106}
107
108function compatSunburstState(option: Dictionary<any>) {
109 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…