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

Function ifTop

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

Source from the content-addressed store, hash-verified

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
148823 } : {
148824 value: b
148825 };
148826const ifRight = (orient, a, b)=>isSignal(orient) ? ifRightExpr(orient.signal, a, b) : orient === Right ? {
148827 value: a
148828 } : {

Callers 2

axisLabelsFunction · 0.70
axisTitleFunction · 0.70

Calls 2

isSignalFunction · 0.70
ifTopExprFunction · 0.70

Tested by

no test coverage detected