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

Function configureRangeStep

docs/app/js/sanddance-app.js:130088–130096  ·  view source on GitHub ↗
(type, _, count)

Source from the content-addressed store, hash-verified

130086 if (range) scale.range(flip(range, _.reverse));
130087}
130088function configureRangeStep(type, _, count) {
130089 if (type !== (0, _vegaScale.Band) && type !== (0, _vegaScale.Point)) (0, _vegaUtil.error)("Only band and point scales support rangeStep.");
130090 // calculate full range based on requested step size and padding
130091 var outer = (_.paddingOuter != null ? _.paddingOuter : _.padding) || 0, inner = type === (0, _vegaScale.Point) ? 1 : (_.paddingInner != null ? _.paddingInner : _.padding) || 0;
130092 return [
130093 0,
130094 _.rangeStep * (0, _vegaScale.bandSpace)(count, inner, outer)
130095 ];
130096}
130097function configureScheme(type, _, count) {
130098 var extent = _.schemeExtent, name, scheme$1;
130099 if ((0, _vegaUtil.isArray)(_.scheme)) scheme$1 = (0, _vegaScale.interpolateColors)(_.scheme, _.interpolate, _.interpolateGamma);

Callers 1

configureRangeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected