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

Method mapNonLayerRepeat

resources/vega-lite.min.js:5189–5216  ·  view source on GitHub ↗
(e, n)

Source from the content-addressed store, hash-verified

5187 };
5188 }
5189 mapNonLayerRepeat(e, n) {
5190 const { repeat: i, spec: r, data: o, ...a } = e;
5191 !t.isArray(i) &&
5192 e.columns &&
5193 ((e = f(e, ["columns"])), Si(ei("repeat")));
5194 const s = [],
5195 { repeater: l = {}, repeaterPrefix: c = "" } = n,
5196 u = (!t.isArray(i) && i.row) || [l ? l.row : null],
5197 d = (!t.isArray(i) && i.column) || [l ? l.column : null],
5198 m = (t.isArray(i) && i) || [l ? l.repeat : null];
5199 for (const e of m)
5200 for (const o of u)
5201 for (const a of d) {
5202 const u = { repeat: e, row: o, column: a, layer: l.layer },
5203 d =
5204 (r.name ? `${r.name}_` : "") +
5205 c +
5206 "child__" +
5207 (t.isArray(i)
5208 ? `${C(e)}`
5209 : (i.row ? `row_${C(o)}` : "") +
5210 (i.column ? `column_${C(a)}` : "")),
5211 m = this.map(r, { ...n, repeater: u, repeaterPrefix: d });
5212 ((m.name = d), s.push(f(m, ["data"])));
5213 }
5214 const p = t.isArray(i) ? e.columns : i.column ? i.column.length : 1;
5215 return { data: r.data ?? o, align: "all", ...a, columns: p, concat: s };
5216 }
5217 mapFacet(e, t) {
5218 const { facet: n } = e;
5219 return (

Callers 1

mapRepeatMethod · 0.80

Calls 5

eiFunction · 0.85
fFunction · 0.70
SiFunction · 0.70
CFunction · 0.70
mapMethod · 0.45

Tested by

no test coverage detected