svg-engine
Version:
Create SVG files in Node.js
22 lines • 740 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.WidthHeight = void 0;
const SVGInstance_js_1 = require("../../../node/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
;