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

Function ifOrient

docs/app/js/sanddance-app.js:148858–148860  ·  view source on GitHub ↗
($orient, t, b, l, r)

Source from the content-addressed store, hash-verified

148856 signal: `${test} ? (${toExpr(a)}) : (${toExpr(b)})`
148857 });
148858const ifOrient = ($orient, t, b, l, r)=>({
148859 signal: (l != null ? `${$orient} === '${Left}' ? (${toExpr(l)}) : ` : "") + (b != null ? `${$orient} === '${Bottom}' ? (${toExpr(b)}) : ` : "") + (r != null ? `${$orient} === '${Right}' ? (${toExpr(r)}) : ` : "") + (t != null ? `${$orient} === '${Top}' ? (${toExpr(t)}) : ` : "") + "(null)"
148860 });
148861const toExpr = (v)=>isSignal(v) ? v.signal : v == null ? null : (0, _vegaUtil.stringValue)(v);
148862const mult = (sign, value16)=>value16 === 0 ? 0 : isSignal(sign) ? {
148863 signal: `(${sign.signal}) * ${value16}`

Callers 1

axisConfigFunction · 0.70

Calls 1

toExprFunction · 0.70

Tested by

no test coverage detected