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

Function parseScaleDomain

docs/tests/v2/es6/js/sanddance.js:133583–133593  ·  view source on GitHub ↗
(domain, spec, scope)

Source from the content-addressed store, hash-verified

133581
133582
133583function parseScaleDomain(domain, spec, scope) {
133584 if (!domain) {
133585 if (spec.domainMin != null || spec.domainMax != null) {
133586 (0, _vegaUtil.error)('No scale domain defined for domainMin/domainMax to override.');
133587 }
133588
133589 return; // default domain
133590 }
133591
133592 return domain.signal ? scope.signalRef(domain.signal) : ((0, _vegaUtil.isArray)(domain) ? explicitDomain : domain.fields ? multipleDomain : singularDomain)(domain, spec, scope);
133593}
133594
133595function explicitDomain(domain, spec, scope) {
133596 return domain.map(function (v) {

Callers 2

parseScaleFunction · 0.70
parseScaleRangeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected