MCPcopy Index your code
hub / github.com/feiyu563/PrometheusAlert / wrapConversion

Function wrapConversion

static/plugins/chart.js/Chart.js:1120–1133  ·  view source on GitHub ↗
(toModel, graph)

Source from the content-addressed store, hash-verified

1118}
1119
1120function wrapConversion(toModel, graph) {
1121 var path = [graph[toModel].parent, toModel];
1122 var fn = conversions[graph[toModel].parent][toModel];
1123
1124 var cur = graph[toModel].parent;
1125 while (graph[cur].parent) {
1126 path.unshift(graph[cur].parent);
1127 fn = link(conversions[graph[cur].parent][cur], fn);
1128 cur = graph[cur].parent;
1129 }
1130
1131 fn.conversion = path;
1132 return fn;
1133}
1134
1135var route = function (fromModel) {
1136 var graph = deriveBFS(fromModel);

Callers 1

routeFunction · 0.70

Calls 1

linkFunction · 0.70

Tested by

no test coverage detected