MCPcopy Create free account
hub / github.com/codemistic/Web-Development / ri

Function ri

chart/js/chart.js:8339–8358  ·  view source on GitHub ↗
(t, e, n, i)

Source from the content-addressed store, hash-verified

8337 return V.valueOrDefault(t.time.max, t.ticks.max);
8338 }
8339 function ri(t, e, n, i) {
8340 var a = (function (t, e, n) {
8341 for (var i, a, r, o = 0, s = t.length - 1; o >= 0 && o <= s; ) {
8342 if (((a = t[(i = (o + s) >> 1) - 1] || null), (r = t[i]), !a))
8343 return { lo: null, hi: r };
8344 if (r[e] < n) o = i + 1;
8345 else {
8346 if (!(a[e] > n)) return { lo: a, hi: r };
8347 s = i - 1;
8348 }
8349 }
8350 return { lo: r, hi: null };
8351 })(t, e, n),
8352 r = a.lo ? (a.hi ? a.lo : t[t.length - 2]) : t[0],
8353 o = a.lo ? (a.hi ? a.hi : t[t.length - 1]) : t[1],
8354 s = o[e] - r[e],
8355 l = s ? (n - r[e]) / s : 0,
8356 u = (o[i] - r[i]) * l;
8357 return r[i] + u;
8358 }
8359 function oi(t, e) {
8360 var n = t._adapter,
8361 i = t.options.time,

Callers 1

chart.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected