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

Method mapUnitWithParentEncodingOrProjection

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

Source from the content-addressed store, hash-verified

5222 );
5223 }
5224 mapUnitWithParentEncodingOrProjection(e, t) {
5225 const { encoding: n, projection: i } = e,
5226 { parentEncoding: r, parentProjection: o, config: a } = t,
5227 s = Fl({ parentProjection: o, projection: i }),
5228 l = Dl({ parentEncoding: r, encoding: vl(n, t.repeater) });
5229 return this.mapUnit(
5230 {
5231 ...e,
5232 ...(s ? { projection: s } : {}),
5233 ...(l ? { encoding: l } : {}),
5234 },
5235 { config: a },
5236 );
5237 }
5238 mapFacetedUnit(e, t) {
5239 const { row: n, column: i, facet: r, ...o } = e.encoding,
5240 {

Callers 1

mapUnitMethod · 0.80

Calls 4

DlFunction · 0.85
vlFunction · 0.85
FlFunction · 0.70
mapUnitMethod · 0.45

Tested by

no test coverage detected