* Parse a data transform specification.
(spec, scope)
| 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) { |
no test coverage detected