Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

SVGGradientElement

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

interface SVGGradientElement extends SVGElement, SVGURIReference {
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;
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;
}
var SVGGradientElement: {
prototype: SVGGradientElement;
readonly SVG_SPREADMETHOD_PAD: number;
readonly SVG_SPREADMETHOD_REFLECT: number;
readonly SVG_SPREADMETHOD_REPEAT: number;
readonly SVG_SPREADMETHOD_UNKNOWN: number;
}
;

§Extends

§Properties

§
readonly gradientTransform: SVGAnimatedTransformList
[src]
§
readonly gradientUnits: SVGAnimatedEnumeration
[src]
§
readonly spreadMethod: SVGAnimatedEnumeration
[src]
§
readonly SVG_SPREADMETHOD_PAD: number
[src]
§
readonly SVG_SPREADMETHOD_REFLECT: number
[src]
§
readonly SVG_SPREADMETHOD_REPEAT: number
[src]
§
readonly SVG_SPREADMETHOD_UNKNOWN: number
[src]

§Methods

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