Skip to main content
The Deno 2 Release Candidate is here
Learn more
Latest
interface SVGLinearGradientElement
implements SVGGradientElement
import { type SVGLinearGradientElement } from "https://deno.land/x/yxz@0.32.0/typing/lib.dom.ts";

Corresponds to the element.

Properties

readonly
x1: SVGAnimatedLength
readonly
x2: SVGAnimatedLength
readonly
y1: SVGAnimatedLength
readonly
y2: SVGAnimatedLength

Methods

addEventListener<K extends keyof SVGElementEventMap>(
type: K,
listener: (this: SVGLinearGradientElement, ev: SVGElementEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void
addEventListener(
type: string,
options?: boolean | AddEventListenerOptions,
): void
removeEventListener<K extends keyof SVGElementEventMap>(
type: K,
listener: (this: SVGLinearGradientElement, ev: SVGElementEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void
removeEventListener(
type: string,
options?: boolean | EventListenerOptions,
): void