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

Function traverseTree

src/preprocessor/backwardCompat.ts:135–142  ·  view source on GitHub ↗
(data: any[], cb: Function)

Source from the content-addressed store, hash-verified

133}
134
135function traverseTree(data: any[], cb: Function) {
136 if (data) {
137 for (let i = 0; i < data.length; i++) {
138 cb(data[i]);
139 data[i] && traverseTree(data[i].children, cb);
140 }
141 }
142}
143
144export default function globalBackwardCompat(option: ECUnitOption, isTheme?: boolean) {
145 compatStyle(option, isTheme);

Callers 1

globalBackwardCompatFunction · 0.85

Calls 1

cbFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…