MCPcopy Index your code
hub / github.com/microsoft/SandDance / auto

Function auto

docs/app/js/sanddance-app.js:149253–149253  ·  view source on GitHub ↗
(value18, dim)

Source from the content-addressed store, hash-verified

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}

Callers 1

autoLayoutFunction · 0.70

Calls 3

patchFunction · 0.70
encoderFunction · 0.70
hasFunction · 0.70

Tested by

no test coverage detected