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

Function parsePadding

docs/app/js/sanddance-app.js:146835–146842  ·  view source on GitHub ↗
(spec)

Source from the content-addressed store, hash-verified

146833 right: _
146834 });
146835function parsePadding(spec) {
146836 return !(0, _vegaUtil.isObject)(spec) ? paddingObject(number(spec)) : spec.signal ? spec : {
146837 top: number(spec.top),
146838 bottom: number(spec.bottom),
146839 left: number(spec.left),
146840 right: number(spec.right)
146841 };
146842}
146843const encoder = (_)=>(0, _vegaUtil.isObject)(_) && !(0, _vegaUtil.isArray)(_) ? (0, _vegaUtil.extend)({}, _) : {
146844 value: _
146845 };

Callers 1

collectSignalsFunction · 0.70

Calls 2

paddingObjectFunction · 0.70
numberFunction · 0.70

Tested by

no test coverage detected