MCPcopy Index your code
hub / github.com/microsoft/SandDance / numericMultipleDomain

Function numericMultipleDomain

docs/app/js/sanddance-app.js:147430–147440  ·  view source on GitHub ↗
(domain, scope, fields)

Source from the content-addressed store, hash-verified

147428 })));
147429}
147430function numericMultipleDomain(domain, scope, fields) {
147431 // get extents for each domain field
147432 const extents = fields.map((f)=>{
147433 const data = scope.getData(f.data);
147434 if (!data) dataLookupError(f.data);
147435 return data.extentRef(scope, f.field);
147436 }); // combine extents
147437 return ref(scope.add(MultiExtent({
147438 extents: extents
147439 })));
147440} // -- SCALE BINS -----
147441function parseScaleBins(v, scope) {
147442 return v.signal || (0, _vegaUtil.isArray)(v) ? parseArray(v, scope) : scope.objectProperty(v);
147443} // -- SCALE NICE -----

Callers

nothing calls this directly

Calls 4

dataLookupErrorFunction · 0.70
refFunction · 0.70
MultiExtentFunction · 0.70
addMethod · 0.45

Tested by

no test coverage detected