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

Method run

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

Source from the content-addressed store, hash-verified

10052 }
10053 class Hd extends Ed {
10054 run(e) {
10055 const t = e.children.filter((e) => e instanceof Sd),
10056 n = {};
10057 for (const e of t) {
10058 const t = d(e.groupBy);
10059 (t in n || (n[t] = []), n[t].push(e));
10060 }
10061 for (const t of D(n)) {
10062 const i = n[t];
10063 if (i.length > 1) {
10064 const t = i.pop();
10065 for (const n of i)
10066 t.merge(n) &&
10067 (e.removeChild(n),
10068 (n.parent = t),
10069 n.remove(),
10070 this.setModified());
10071 }
10072 }
10073 }
10074 }
10075 class Gd extends Ed {
10076 constructor(e) {

Callers

nothing calls this directly

Calls 6

DFunction · 0.85
removeChildMethod · 0.80
setModifiedMethod · 0.80
dFunction · 0.70
mergeMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected