UNPKG

@patternfly/react-charts

Version:

This library provides a set of React chart components for use with the PatternFly reference implementation.

15 lines 470 B
/** * Helper function to return padding style properties * * @private Not intended as public API and subject to change */ export const getPaddingForSide = (side, padding, fallback) => { if (typeof padding == 'number') { return padding; } else if (typeof padding == 'object' && Object.keys(padding).length > 0) { return padding[side] || 0; } return getPaddingForSide(side, fallback, 0); }; //# sourceMappingURL=chart-padding.js.map