svg-engine
Version:
Create SVG files in Node.js
19 lines • 642 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.Opacity = void 0;
const SVGInstance_js_1 = require("../../../node/instance/SVGInstance.js");
class Opacity extends SVGInstance_js_1.SVGInstance {
opacity(opacity) {
if (typeof opacity === "undefined") {
const opacity = this.attr("opacity");
return typeof opacity === "number" ? opacity : null;
}
else if (typeof opacity === "number") {
this.attr("opacity", opacity);
return this;
}
return null;
}
}
exports.Opacity = Opacity;
//# sourceMappingURL=opacity.js.map
;