MCPcopy Create free account
hub / github.com/alignoth/alignoth / initScale

Method initScale

resources/vega-lite.min.js:14308–14316  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

14306 }, {});
14307 }
14308 initScale(e) {
14309 const { domain: n, range: i } = e,
14310 r = bn(e);
14311 return (
14312 t.isArray(n) && (r.domain = n.map(Cn)),
14313 t.isArray(i) && (r.range = i.map(Cn)),
14314 r
14315 );
14316 }
14317 initAxes(e) {
14318 return Ct.reduce((t, n) => {
14319 const i = e[n];

Callers 1

initScalesMethod · 0.95

Calls 2

bnFunction · 0.85
mapMethod · 0.45

Tested by

no test coverage detected