Skip to main content
Module

x/evt/lib/index.ts>dom.SVGLinearGradientElement

💧EventEmitter's typesafe replacement
Go to Latest
interface dom.SVGLinearGradientElement
implements SVGGradientElement
import { type dom } from "https://deno.land/x/evt@v2.4.6/lib/index.ts";
const { SVGLinearGradientElement } = dom;

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