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

Method initLegends

resources/vega-lite.min.js:14336–14365  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

14334 return n;
14335 }
14336 initLegends(e) {
14337 return Gt.reduce((t, n) => {
14338 const i = ka(e[n]);
14339 if (
14340 i &&
14341 (function (e) {
14342 switch (e) {
14343 case he:
14344 case ye:
14345 case ve:
14346 case xe:
14347 case be:
14348 case we:
14349 case De:
14350 case Fe:
14351 return !0;
14352 case ke:
14353 case Se:
14354 case $e:
14355 case ge:
14356 return !1;
14357 }
14358 })(n)
14359 ) {
14360 const e = i.legend;
14361 t[n] = e ? bn(e) : e;
14362 }
14363 return t;
14364 }, {});
14365 }
14366 parseData() {
14367 this.component.data = hp(this);
14368 }

Callers 1

constructorMethod · 0.95

Calls 2

bnFunction · 0.85
kaFunction · 0.70

Tested by

no test coverage detected