"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Padding = void 0;
const Dimension_js_1 = require("./Dimension.js");
// eslint-disable-next-line @typescript-eslint/no-namespace
var Padding;
(function (Padding) {
    Padding.y = (padding) => {
        if (padding === undefined) {
            return Dimension_js_1.Dimension.px(0);
        }
        return Dimension_js_1.Dimension.add(padding.top ?? Dimension_js_1.Dimension.px(0), padding.bottom ?? Dimension_js_1.Dimension.px(0)).asFirst();
    };
    Padding.x = (padding) => {
        if (padding === undefined) {
            return Dimension_js_1.Dimension.px(0);
        }
        return Dimension_js_1.Dimension.add(padding.left ?? Dimension_js_1.Dimension.px(0), padding.right ?? Dimension_js_1.Dimension.px(0)).asFirst();
    };
})(Padding || (exports.Padding = Padding = {}));
//# sourceMappingURL=Padding.js.map