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

Function getSign

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

Source from the content-addressed store, hash-verified

148816}
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 ? {

Callers 4

axisGridFunction · 0.70
axisTicksFunction · 0.70
axisLabelsFunction · 0.70
axisTitleFunction · 0.70

Calls 2

isSignalFunction · 0.70
ifLeftTopExprFunction · 0.70

Tested by

no test coverage detected