(data, scope)
| 147349 | return ((0, _vegaScale.isDiscrete)(spec.type) ? ordinalMultipleDomain : (0, _vegaScale.isQuantile)(spec.type) ? quantileMultipleDomain : numericMultipleDomain)(domain, scope, fields); |
| 147350 | } |
| 147351 | function fieldRef(data, scope) { |
| 147352 | const name = "_:vega:_" + FIELD_REF_ID++, coll = Collect({}); |
| 147353 | if ((0, _vegaUtil.isArray)(data)) coll.value = { |
| 147354 | $ingest: data |
| 147355 | }; |
| 147356 | else if (data.signal) { |
| 147357 | const code = "setdata(" + (0, _vegaUtil.stringValue)(name) + "," + data.signal + ")"; |
| 147358 | coll.params.input = scope.signalRef(code); |
| 147359 | } |
| 147360 | scope.addDataPipeline(name, [ |
| 147361 | coll, |
| 147362 | Sieve({}) |
| 147363 | ]); |
| 147364 | return { |
| 147365 | data: name, |
| 147366 | field: "data" |
| 147367 | }; |
| 147368 | } |
| 147369 | function ordinalMultipleDomain(domain, scope, fields) { |
| 147370 | const sort = parseSort(domain.sort, true); |
| 147371 | let a, v; // get value counts for each domain field |
no test coverage detected