MCPcopy Create free account
hub / github.com/alignoth/alignoth / Jx

Function Jx

resources/vega.min.js:16094–16239  ·  view source on GitHub ↗
(t, e, n)

Source from the content-addressed store, hash-verified

16092 return m;
16093 }
16094 function Jx(t, e, n) {
16095 var r,
16096 i,
16097 o,
16098 a,
16099 s,
16100 u,
16101 l,
16102 c = (function (t) {
16103 var e,
16104 n,
16105 r = t.items,
16106 i = r.length,
16107 o = 0;
16108 const a = {
16109 marks: [],
16110 rowheaders: [],
16111 rowfooters: [],
16112 colheaders: [],
16113 colfooters: [],
16114 rowtitle: null,
16115 coltitle: null,
16116 };
16117 for (; o < i; ++o)
16118 if (((n = (e = r[o]).items), e.marktype === ex))
16119 switch (e.role) {
16120 case nx:
16121 case ax:
16122 case rx:
16123 break;
16124 case sx:
16125 a.rowheaders.push(...n);
16126 break;
16127 case ux:
16128 a.rowfooters.push(...n);
16129 break;
16130 case cx:
16131 a.colheaders.push(...n);
16132 break;
16133 case fx:
16134 a.colfooters.push(...n);
16135 break;
16136 case lx:
16137 a.rowtitle = n[0];
16138 break;
16139 case hx:
16140 a.coltitle = n[0];
16141 break;
16142 default:
16143 a.marks.push(...n);
16144 }
16145 return a;
16146 })(e),
16147 f = c.marks,
16148 h = n.bounds === wx ? Zx : Qx,
16149 d = n.offset,
16150 p = n.columns || f.length,
16151 g = p <= 0 ? 1 : Math.ceil(f.length / p),

Callers 1

transformFunction · 0.85

Calls 5

XxFunction · 0.85
GxFunction · 0.85
KxFunction · 0.85
tbFunction · 0.85
setMethod · 0.45

Tested by

no test coverage detected