svg-engine
Version:
Create SVG files in Node.js
15 lines • 499 B
JavaScript
import { SVGInstance } from "../../../browser/instance/SVGInstance.js";
export class Opacity extends 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;
}
}
//# sourceMappingURL=opacity.js.map