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

Function parseOperatorParameters

docs/app/js/sanddance-app.js:146462–146469  ·  view source on GitHub ↗

* Parse and assign operator parameters.

(spec)

Source from the content-addressed store, hash-verified

146460/**
146461 * Parse and assign operator parameters.
146462 */ function parseOperatorParameters(spec) {
146463 const ctx = this;
146464 if (spec.params) {
146465 const op = ctx.get(spec.id);
146466 if (!op) (0, _vegaUtil.error)("Invalid operator id: " + spec.id);
146467 ctx.dataflow.connect(op, op.parameters(ctx.parseParameters(spec.params), spec.react, spec.initonly));
146468 }
146469}
146470/**
146471 * Parse a set of operator parameters.
146472 */ function parseParameters(spec, params) {

Callers

nothing calls this directly

Calls 2

connectMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected