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

Function parseParameters

docs/app/js/sanddance-app.js:146472–146480  ·  view source on GitHub ↗

* Parse a set of operator parameters.

(spec, params)

Source from the content-addressed store, hash-verified

146470/**
146471 * Parse a set of operator parameters.
146472 */ function parseParameters(spec, params) {
146473 params = params || {};
146474 const ctx = this;
146475 for(const key in spec){
146476 const value = spec[key];
146477 params[key] = (0, _vegaUtil.isArray)(value) ? value.map((v)=>parseParameter(v, ctx, params)) : parseParameter(value, ctx, params);
146478 }
146479 return params;
146480}
146481/**
146482 * Parse a single parameter.
146483 */ function parseParameter(spec, ctx, params) {

Callers 2

parseTransformFunction · 0.70
parseSubParameterFunction · 0.70

Calls 1

parseParameterFunction · 0.70

Tested by

no test coverage detected