MCPcopy Index your code
hub / github.com/microsoft/SandDance / parseTransform

Function parseTransform

docs/app/js/sanddance-app.js:148076–148083  ·  view source on GitHub ↗

* Parse a data transform specification.

(spec, scope)

Source from the content-addressed store, hash-verified

148074/**
148075 * Parse a data transform specification.
148076 */ function parseTransform(spec, scope) {
148077 const def = (0, _vegaDataflow.definition)(spec.type);
148078 if (!def) (0, _vegaUtil.error)("Unrecognized transform type: " + (0, _vegaUtil.stringValue)(spec.type));
148079 const t = entry(def.type.toLowerCase(), null, parseParameters(def, spec, scope));
148080 if (spec.signal) scope.addSignal(spec.signal, scope.proxy(t));
148081 t.metadata = def.metadata || {};
148082 return t;
148083}
148084/**
148085 * Parse all parameters of a data transform.
148086 */ function parseParameters(def, spec, scope) {

Callers 3

parseData$1Function · 0.70
parseMarkFunction · 0.70
parseDataFunction · 0.70

Calls 2

entryFunction · 0.70
parseParametersFunction · 0.70

Tested by

no test coverage detected