MCPcopy Create free account
hub / github.com/microsoft/SandDance / getEncode

Function getEncode

docs/app/js/sanddance-app.js:146565–146573  ·  view source on GitHub ↗

* Resolve an encode operator reference.

(_, ctx)

Source from the content-addressed store, hash-verified

146563/**
146564 * Resolve an encode operator reference.
146565 */ function getEncode(_, ctx) {
146566 const spec = _.$encode, encode = {};
146567 for(const name in spec){
146568 const enc = spec[name];
146569 encode[name] = (0, _vegaUtil.accessor)(ctx.encodeExpression(enc.$expr), enc.$fields);
146570 encode[name].output = enc.$output;
146571 }
146572 return encode;
146573}
146574/**
146575 * Resolve a context reference.
146576 */ function getContext(_, ctx) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected