UNPKG

svg-engine

Version:
15 lines 499 B
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