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

Function dd

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

Source from the content-addressed store, hash-verified

9014 return "circle" === t.value ? t : e;
9015 }
9016 function dd(e) {
9017 const t = e.component.legends,
9018 n = {};
9019 for (const i of D(t)) {
9020 const r = Q(e.getScaleComponent(i).get("domains"));
9021 if (n[r])
9022 for (const e of n[r]) {
9023 ud(e, t[i]) || n[r].push(t[i]);
9024 }
9025 else n[r] = [t[i].clone()];
9026 }
9027 return F(n)
9028 .flat()
9029 .map((t) =>
9030 (function (e, t) {
9031 const { disable: n, labelExpr: i, selections: r, ...o } = e.combine();
9032 if (n) return;
9033 !1 === t.aria && null == o.aria && (o.aria = !1);
9034 if (o.encode?.symbols) {
9035 const e = o.encode.symbols.update;
9036 !e.fill ||
9037 "transparent" === e.fill.value ||
9038 e.stroke ||
9039 o.stroke ||
9040 (e.stroke = { value: "transparent" });
9041 for (const t of Os) o[t] && delete e[t];
9042 }
9043 o.title || delete o.title;
9044 if (void 0 !== i) {
9045 let e = i;
9046 (o.encode?.labels?.update &&
9047 wn(o.encode.labels.update.text) &&
9048 (e = R(i, "datum.label", o.encode.labels.update.text.signal)),
9049 (function (e, t, n, i) {
9050 ((e.encode ??= {}),
9051 (e.encode[t] ??= {}),
9052 (e.encode[t].update ??= {}),
9053 (e.encode[t].update[n] = i));
9054 })(o, "labels", "text", { signal: e }));
9055 }
9056 return o;
9057 })(t, e.config),
9058 )
9059 .filter((e) => void 0 !== e);
9060 }
9061 function md(e) {
9062 return Im(e) || Wm(e)
9063 ? (function (e) {

Callers 2

assembleLegendsMethod · 0.70
assembleLegendsMethod · 0.70

Calls 11

DFunction · 0.85
FFunction · 0.85
getScaleComponentMethod · 0.80
combineMethod · 0.80
QFunction · 0.70
udFunction · 0.70
wnFunction · 0.70
RFunction · 0.70
getMethod · 0.45
cloneMethod · 0.45
mapMethod · 0.45

Tested by

no test coverage detected