import { Dimension } from './Dimension.js';
// eslint-disable-next-line @typescript-eslint/no-namespace
export var Padding;
(function (Padding) {
    Padding.y = (padding) => {
        if (padding === undefined) {
            return Dimension.px(0);
        }
        return Dimension.add(padding.top ?? Dimension.px(0), padding.bottom ?? Dimension.px(0)).asFirst();
    };
    Padding.x = (padding) => {
        if (padding === undefined) {
            return Dimension.px(0);
        }
        return Dimension.add(padding.left ?? Dimension.px(0), padding.right ?? Dimension.px(0)).asFirst();
    };
})(Padding || (Padding = {}));
//# sourceMappingURL=Padding.js.map