(option: Dictionary<any>)
| 118 | } |
| 119 | |
| 120 | function 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 | |
| 135 | function traverseTree(data: any[], cb: Function) { |
| 136 | if (data) { |
no test coverage detected
searching dependent graphs…