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

Function parsePadding

docs/tests/v3/es6/js/sanddance-test-es6.js:94766–94773  ·  view source on GitHub ↗
(spec)

Source from the content-addressed store, hash-verified

94764 right: _
94765 });
94766function parsePadding(spec) {
94767 return !(0, _vegaUtil.isObject)(spec) ? paddingObject(number(spec)) : spec.signal ? spec : {
94768 top: number(spec.top),
94769 bottom: number(spec.bottom),
94770 left: number(spec.left),
94771 right: number(spec.right)
94772 };
94773}
94774const encoder = (_)=>(0, _vegaUtil.isObject)(_) && !(0, _vegaUtil.isArray)(_) ? (0, _vegaUtil.extend)({}, _) : {
94775 value: _
94776 };

Callers 1

collectSignalsFunction · 0.70

Calls 2

paddingObjectFunction · 0.70
numberFunction · 0.70

Tested by

no test coverage detected