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

Method mapFacetedUnit

resources/vega-lite.min.js:5238–5272  ·  view source on GitHub ↗
(e, t)

Source from the content-addressed store, hash-verified

5236 );
5237 }
5238 mapFacetedUnit(e, t) {
5239 const { row: n, column: i, facet: r, ...o } = e.encoding,
5240 {
5241 mark: a,
5242 width: s,
5243 projection: l,
5244 height: c,
5245 view: u,
5246 params: f,
5247 encoding: d,
5248 ...m
5249 } = e,
5250 { facetMapping: p, layout: g } = this.getFacetMappingAndLayout(
5251 { row: n, column: i, facet: r },
5252 t,
5253 ),
5254 h = vl(o, t.repeater);
5255 return this.mapFacet(
5256 {
5257 ...m,
5258 ...g,
5259 facet: p,
5260 spec: {
5261 ...(s ? { width: s } : {}),
5262 ...(c ? { height: c } : {}),
5263 ...(u ? { view: u } : {}),
5264 ...(l ? { projection: l } : {}),
5265 mark: a,
5266 encoding: h,
5267 ...(f ? { params: f } : {}),
5268 },
5269 },
5270 t,
5271 );
5272 }
5273 getFacetMappingAndLayout(e, t) {
5274 const { row: n, column: i, facet: r } = e;
5275 if (n || i) {

Callers 1

mapMethod · 0.80

Calls 3

vlFunction · 0.85
mapFacetMethod · 0.45

Tested by

no test coverage detected