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

Function getPathList

src/animation/morphTransitionHelper.ts:242–265  ·  view source on GitHub ↗
(
    elements: Element | Element[]
)

Source from the content-addressed store, hash-verified

240 elements: Element[]
241): DescendentPaths[];
242export function getPathList(
243 elements: Element | Element[]
244): DescendentPaths | DescendentPaths[] {
245 if (!elements) {
246 return [];
247 }
248
249 if (isArray(elements)) {
250 const pathList = [];
251 for (let i = 0; i < elements.length; i++) {
252 pathList.push(getPathList(elements[i]));
253 }
254 return pathList as DescendentPaths[];
255 }
256
257 const pathList: DescendentPaths = [];
258
259 elements.traverse(el => {
260 if ((el instanceof Path) && !(el as ECElement).disableMorphing && !el.invisible && !el.ignore) {
261 pathList.push(el);
262 }
263 });
264 return pathList;
265}

Callers 2

updateOneToOneFunction · 0.90
transitionBetweenFunction · 0.90

Calls 1

isArrayFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…