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

Method mapLayerOrUnit

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

Source from the content-addressed store, hash-verified

4433 : this.mapLayerOrUnit(e, t);
4434 }
4435 mapLayerOrUnit(e, t) {
4436 if (il(e)) return this.mapLayer(e, t);
4437 if (Ua(e)) return this.mapUnit(e, t);
4438 throw new Error(Bn(e));
4439 }
4440 mapLayer(e, t) {
4441 return { ...e, layer: e.layer.map((e) => this.mapLayerOrUnit(e, t)) };
4442 }

Callers 2

mapMethod · 0.95
mapLayerMethod · 0.95

Calls 5

mapLayerMethod · 0.95
BnFunction · 0.85
ilFunction · 0.70
UaFunction · 0.70
mapUnitMethod · 0.45

Tested by

no test coverage detected