"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.WidthHeight = void 0;
const SVGInstance_js_1 = require("../../../browser/instance/SVGInstance.js");
class WidthHeight extends SVGInstance_js_1.SVGInstance {
    width(width) {
        if (typeof width === "string" || typeof width === "number") {
            this.attr("width", width + "");
            return this;
        }
        return this.attr("width");
    }
    height(height) {
        if (typeof height === "string" || typeof height === "number") {
            this.attr("height", height + "");
            return this;
        }
        return this.attr("height");
    }
}
exports.WidthHeight = WidthHeight;
//# sourceMappingURL=widthHeight.js.map