Module

x/evt/lib/index.ts

šŸ’§EventEmitter's typesafe replacement
Go to Latest
interface dom.SVGGradientElement
import { type dom } from "https://deno.land/x/evt@v2.3.1/lib/index.ts";
const { SVGGradientElement } = dom;

The SVGGradient interface is a base interface used by SVGLinearGradientElement and SVGRadialGradientElement.

Properties

readonly
gradientTransform: SVGAnimatedTransformList
readonly
gradientUnits: SVGAnimatedEnumeration
readonly
spreadMethod: SVGAnimatedEnumeration
readonly
SVG_SPREADMETHOD_PAD: number
readonly
SVG_SPREADMETHOD_REFLECT: number
readonly
SVG_SPREADMETHOD_REPEAT: number
readonly
SVG_SPREADMETHOD_UNKNOWN: number

Methods

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