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

Function ui

chart/js/chart.js:8397–8417  ·  view source on GitHub ↗
(t, e, n)

Source from the content-addressed store, hash-verified

8395 return ei[s - 1];
8396 }
8397 function ui(t, e, n) {
8398 var i,
8399 a,
8400 r = [],
8401 o = {},
8402 s = e.length;
8403 for (i = 0; i < s; ++i)
8404 (o[(a = e[i])] = i), r.push({ value: a, major: !1 });
8405 return 0 !== s && n
8406 ? (function (t, e, n, i) {
8407 var a,
8408 r,
8409 o = t._adapter,
8410 s = +o.startOf(e[0].value, i),
8411 l = e[e.length - 1].value;
8412 for (a = s; a <= l; a = +o.add(a, 1, i))
8413 (r = n[a]) >= 0 && (e[r].major = !0);
8414 return e;
8415 })(t, r, o, n)
8416 : r;
8417 }
8418 var di = xn.extend({
8419 initialize: function () {
8420 this.mergeTicksOptions(), xn.prototype.initialize.call(this);

Callers 1

chart.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected