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

Function compatGraphFocus

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

Source from the content-addressed store, hash-verified

118}
119
120function compatGraphFocus(option: Dictionary<any>) {
121 if (!option) {
122 return;
123 }
124 if (option.focusNodeAdjacency != null) {
125 option.emphasis = option.emphasis || {};
126 if (option.emphasis.focus == null) {
127 if (__DEV__) {
128 deprecateReplaceLog('focusNodeAdjacency', 'emphasis: { focus: \'adjacency\'}', 'graph/sankey');
129 }
130 option.emphasis.focus = 'adjacency';
131 }
132 }
133}
134
135function traverseTree(data: any[], cb: Function) {
136 if (data) {

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…