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

Function autoLayout

docs/app/js/sanddance-app.js:149252–149256  ·  view source on GitHub ↗
(_, orient, encode, userEncode)

Source from the content-addressed store, hash-verified

149250 }, userEncode);
149251}
149252function autoLayout(_, orient, encode, userEncode) {
149253 const auto = (value18, dim)=>value18 != null ? (encode.update[dim] = patch(encoder(value18), encode.update[dim]), false) : !has(dim, userEncode) ? true : false;
149254 const autoY = auto(_("titleX"), "x"), autoX = auto(_("titleY"), "y");
149255 encode.enter.auto = autoX === autoY ? encoder(autoX) : ifX(orient, encoder(autoX), encoder(autoY));
149256}
149257function parseAxis(spec, scope) {
149258 const config = axisConfig(spec, scope), encode = spec.encode || {}, axisEncode = encode.axis || {}, name = axisEncode.name || undefined, interactive4 = axisEncode.interactive, style = axisEncode.style, _ = lookup(spec, config), band = tickBand(_); // single-element data source for axis group
149259 const datum = {

Callers 1

axisTitleFunction · 0.70

Calls 4

autoFunction · 0.70
_Function · 0.70
encoderFunction · 0.70
ifXFunction · 0.70

Tested by

no test coverage detected