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

Function configureRangeStep

docs/tests/v2/es6/js/sanddance.js:111157–111166  ·  view source on GitHub ↗
(type, _, count)

Source from the content-addressed store, hash-verified

111155}
111156
111157function configureRangeStep(type, _, count) {
111158 if (type !== _vegaScale.Band && type !== _vegaScale.Point) {
111159 (0, _vegaUtil.error)('Only band and point scales support rangeStep.');
111160 } // calculate full range based on requested step size and padding
111161
111162
111163 var outer = (_.paddingOuter != null ? _.paddingOuter : _.padding) || 0,
111164 inner = type === _vegaScale.Point ? 1 : (_.paddingInner != null ? _.paddingInner : _.padding) || 0;
111165 return [0, _.rangeStep * (0, _vegaScale.bandSpace)(count, inner, outer)];
111166}
111167
111168function configureScheme(type, _, count) {
111169 var extent = _.schemeExtent,

Callers 1

configureRangeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected