MCPcopy Index your code
hub / github.com/tdewolff/minify / handleRootToNode

Function handleRootToNode

_benchmarks/sample_echarts.js:53510–53523  ·  view source on GitHub ↗
(model, index)

Source from the content-addressed store, hash-verified

53508 }, handleRootToNode);
53509
53510 function handleRootToNode(model, index) {
53511 var types = ['treemapZoomToNode', 'treemapRootToNode'];
53512 var targetInfo = retrieveTargetInfo(payload, types, model);
53513
53514 if (targetInfo) {
53515 var originViewRoot = model.getViewRoot();
53516
53517 if (originViewRoot) {
53518 payload.direction = aboveViewRoot(originViewRoot, targetInfo.node) ? 'rollUp' : 'drillDown';
53519 }
53520
53521 model.resetViewRoot(targetInfo.node);
53522 }
53523 }
53524 });
53525 }
53526

Callers

nothing calls this directly

Calls 2

retrieveTargetInfoFunction · 0.85
aboveViewRootFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…