SVGElement
All of the SVG DOM interfaces that correspond directly to elements in the SVG language derive from the SVGElement interface.
interface SVGElement extends Element, DocumentAndElementEventHandlers, ElementCSSInlineStyle, GlobalEventHandlers, HTMLOrSVGElement {
readonly className: any;
readonly ownerSVGElement: SVGSVGElement | null;
readonly viewportElement: SVGElement | null;
addEventListener<K extends keyof SVGElementEventMap>(
type: K,
listener: (this: SVGElement, ev: SVGElementEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void;addEventListener(
type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | AddEventListenerOptions,
): void;removeEventListener<K extends keyof SVGElementEventMap>(
type: K,
listener: (this: SVGElement, ev: SVGElementEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void;removeEventListener(
}type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | EventListenerOptions,
): void;var SVGElement: {
prototype: SVGElement;
new (): SVGElement;
};§Extends
§Properties
§
readonly ownerSVGElement: SVGSVGElement | null
[src]§
readonly viewportElement: SVGElement | null
[src]§Methods
§
addEventListener<K extends keyof SVGElementEventMap>(
[src]type: K,
listener: (this: SVGElement, ev: SVGElementEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void§
addEventListener(
[src]type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | AddEventListenerOptions,
): void§
removeEventListener<K extends keyof SVGElementEventMap>(
[src]type: K,
listener: (this: SVGElement, ev: SVGElementEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void§
removeEventListener(
[src]type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | EventListenerOptions,
): void