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

Function initScale

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

Source from the content-addressed store, hash-verified

147293 count: "sum"
147294};
147295function initScale(spec, scope) {
147296 const type = spec.type || "linear";
147297 if (!(0, _vegaScale.isValidScaleType)(type)) (0, _vegaUtil.error)("Unrecognized scale type: " + (0, _vegaUtil.stringValue)(type));
147298 scope.addScale(spec.name, {
147299 type,
147300 domain: undefined
147301 });
147302}
147303function parseScale(spec, scope) {
147304 const params = scope.getScale(spec.name).params;
147305 let key;

Callers 1

parseScopeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected