MCPcopy Index your code
hub / github.com/apache/echarts / getSourceNode

Function getSourceNode

src/chart/tree/TreeView.ts:631–641  ·  view source on GitHub ↗
(virtualRoot: TreeNode, node: TreeNode)

Source from the content-addressed store, hash-verified

629}
630
631function getSourceNode(virtualRoot: TreeNode, node: TreeNode): { source: TreeNode, sourceLayout: TreeNodeLayout } {
632 let source = node.parentNode === virtualRoot ? node : node.parentNode || node;
633 let sourceLayout;
634 while (sourceLayout = source.getLayout(), sourceLayout == null) {
635 source = source.parentNode === virtualRoot ? source : source.parentNode || source;
636 }
637 return {
638 source,
639 sourceLayout
640 };
641}
642
643function removeNode(
644 data: SeriesData,

Callers 2

removeNodeEdgeFunction · 0.85
removeNodeFunction · 0.85

Calls 1

getLayoutMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…