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

Function es

resources/vega-lite.min.js:3185–3212  ·  view source on GitHub ↗
(e, n, i, r, o)

Source from the content-addressed store, hash-verified

3183 return U(t, n);
3184 }
3185 function es(e, n, i, r, o) {
3186 const { scale: a, axis: s } = i;
3187 return (l) => {
3188 let {
3189 partName: c,
3190 mark: u,
3191 positionPrefix: f,
3192 endPositionPrefix: d,
3193 extraEncoding: m = {},
3194 } = l;
3195 const p = Za(i);
3196 return ts(e, c, o, {
3197 mark: u,
3198 encoding: {
3199 [n]: {
3200 field: `${f}_${i.field}`,
3201 type: i.type,
3202 ...(void 0 !== p ? { title: p } : {}),
3203 ...(void 0 !== a ? { scale: a } : {}),
3204 ...(void 0 !== s ? { axis: s } : {}),
3205 },
3206 ...(t.isString(d) ? { [`${n}2`]: { field: `${d}_${i.field}` } } : {}),
3207 ...r,
3208 ...m,
3209 },
3210 });
3211 };
3212 }
3213 function ts(e, n, i, r) {
3214 const { clip: o, color: a, opacity: s } = e,
3215 l = e.type;

Callers 3

PFunction · 0.70
dsFunction · 0.70
vsFunction · 0.70

Calls 2

ZaFunction · 0.70
tsFunction · 0.70

Tested by

no test coverage detected