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

Function singularDomain

docs/app/js/sanddance-app.js:147335–147339  ·  view source on GitHub ↗
(domain, spec, scope)

Source from the content-addressed store, hash-verified

147333 return domain.map((v)=>parseLiteral(v, scope));
147334}
147335function singularDomain(domain, spec, scope) {
147336 const data = scope.getData(domain.data);
147337 if (!data) dataLookupError(domain.data);
147338 return (0, _vegaScale.isDiscrete)(spec.type) ? data.valuesRef(scope, domain.field, parseSort(domain.sort, false)) : (0, _vegaScale.isQuantile)(spec.type) ? data.domainRef(scope, domain.field) : data.extentRef(scope, domain.field);
147339}
147340function multipleDomain(domain, spec, scope) {
147341 const data = domain.data, fields = domain.fields.reduce((dom, d)=>{
147342 d = (0, _vegaUtil.isString)(d) ? {

Callers

nothing calls this directly

Calls 2

dataLookupErrorFunction · 0.70
parseSortFunction · 0.70

Tested by

no test coverage detected