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

Function mi

chart/js/chart.js:8849–8905  ·  view source on GitHub ↗
(t)

Source from the content-addressed store, hash-verified

8847 }
8848 }
8849 function mi(t) {
8850 return (t.el._scale || {}).getPointPositionForValue
8851 ? (function (t) {
8852 var e,
8853 n,
8854 i,
8855 a,
8856 r,
8857 o = t.el._scale,
8858 s = o.options,
8859 l = o.chart.data.labels.length,
8860 u = t.fill,
8861 d = [];
8862 if (!l) return null;
8863 for (
8864 e = s.ticks.reverse ? o.max : o.min,
8865 n = s.ticks.reverse ? o.min : o.max,
8866 i = o.getPointPositionForValue(0, e),
8867 a = 0;
8868 a < l;
8869 ++a
8870 )
8871 (r =
8872 "start" === u || "end" === u
8873 ? o.getPointPositionForValue(a, "start" === u ? e : n)
8874 : o.getBasePosition(a)),
8875 s.gridLines.circular &&
8876 ((r.cx = i.x),
8877 (r.cy = i.y),
8878 (r.angle = o.getIndexAngle(a) - Math.PI / 2)),
8879 d.push(r);
8880 return d;
8881 })(t)
8882 : (function (t) {
8883 var e,
8884 n = t.el._model || {},
8885 i = t.el._scale || {},
8886 a = t.fill,
8887 r = null;
8888 if (isFinite(a)) return null;
8889 if (
8890 ("start" === a
8891 ? (r = void 0 === n.scaleBottom ? i.bottom : n.scaleBottom)
8892 : "end" === a
8893 ? (r = void 0 === n.scaleTop ? i.top : n.scaleTop)
8894 : void 0 !== n.scaleZero
8895 ? (r = n.scaleZero)
8896 : i.getBasePixel && (r = i.getBasePixel()),
8897 null != r)
8898 ) {
8899 if (void 0 !== r.x && void 0 !== r.y) return r;
8900 if (V.isFinite(r))
8901 return { x: (e = i.isHorizontal()) ? r : null, y: e ? null : r };
8902 }
8903 return null;
8904 })(t);
8905 }
8906 function vi(t, e, n) {

Callers 1

chart.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected