MCPcopy Index your code
hub / github.com/codemistic/Web-Development / bt

Function bt

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

Source from the content-addressed store, hash-verified

2992 return t === e ? n : t === n ? e : t;
2993 }
2994 function bt(t, e, n) {
2995 var i,
2996 a,
2997 r,
2998 o,
2999 s = t.borderWidth,
3000 l = (function (t) {
3001 var e = t.borderSkipped,
3002 n = {};
3003 return e
3004 ? (t.horizontal
3005 ? t.base > t.x && (e = vt(e, "left", "right"))
3006 : t.base < t.y && (e = vt(e, "bottom", "top")),
3007 (n[e] = !0),
3008 n)
3009 : n;
3010 })(t);
3011 return (
3012 V.isObject(s)
3013 ? ((i = +s.top || 0),
3014 (a = +s.right || 0),
3015 (r = +s.bottom || 0),
3016 (o = +s.left || 0))
3017 : (i = a = r = o = +s || 0),
3018 {
3019 t: l.top || i < 0 ? 0 : i > n ? n : i,
3020 r: l.right || a < 0 ? 0 : a > e ? e : a,
3021 b: l.bottom || r < 0 ? 0 : r > n ? n : r,
3022 l: l.left || o < 0 ? 0 : o > e ? e : o,
3023 }
3024 );
3025 }
3026 function xt(t, e, n) {
3027 var i = null === e,
3028 a = null === n,

Callers 1

chart.jsFile · 0.85

Calls 1

vtFunction · 0.85

Tested by

no test coverage detected