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

Function ifX

docs/app/js/sanddance-app.js:148819–148819  ·  view source on GitHub ↗
(orient, a, b)

Source from the content-addressed store, hash-verified

148817const isX = (orient)=>orient === Bottom || orient === Top; // get sign coefficient based on axis orient
148818const getSign = (orient, a, b)=>isSignal(orient) ? ifLeftTopExpr(orient.signal, a, b) : orient === Left || orient === Top ? a : b; // condition on axis x-direction
148819const ifX = (orient, a, b)=>isSignal(orient) ? ifXEnc(orient.signal, a, b) : isX(orient) ? a : b; // condition on axis y-direction
148820const ifY = (orient, a, b)=>isSignal(orient) ? ifYEnc(orient.signal, a, b) : isX(orient) ? b : a;
148821const ifTop = (orient, a, b)=>isSignal(orient) ? ifTopExpr(orient.signal, a, b) : orient === Top ? {
148822 value: a

Callers 7

axisConfigFunction · 0.70
axisDomainFunction · 0.70
axisGridFunction · 0.70
axisTicksFunction · 0.70
axisLabelsFunction · 0.70
axisTitleFunction · 0.70
autoLayoutFunction · 0.70

Calls 3

isSignalFunction · 0.70
ifXEncFunction · 0.70
isXFunction · 0.70

Tested by

no test coverage detected