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

SVGSVGElement

Provides access to the properties of elements, as well as methods to manipulate them. This interface contains also various miscellaneous commonly-used utility methods, such as matrix operations and the ability to control the time of redraw on visual rendering devices.

interface SVGSVGElement extends SVGGraphicsElement, SVGFitToViewBox, WindowEventHandlers {
currentScale: number;
readonly currentTranslate: DOMPointReadOnly;
readonly height: SVGAnimatedLength;
readonly width: SVGAnimatedLength;
readonly x: SVGAnimatedLength;
readonly y: SVGAnimatedLength;
addEventListener<K extends keyof SVGSVGElementEventMap>(
type: K,
listener: (this: SVGSVGElement, ev: SVGSVGElementEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void;
addEventListener(
type: string,
options?: boolean | AddEventListenerOptions,
): void;
animationsPaused(): boolean;
checkEnclosure(element: SVGElement, rect: DOMRectReadOnly): boolean;
checkIntersection(element: SVGElement, rect: DOMRectReadOnly): boolean;
createSVGAngle(): SVGAngle;
createSVGLength(): SVGLength;
createSVGMatrix(): DOMMatrix;
createSVGNumber(): SVGNumber;
createSVGPoint(): DOMPoint;
createSVGRect(): DOMRect;
createSVGTransform(): SVGTransform;
createSVGTransformFromMatrix(matrix?: DOMMatrix2DInit): SVGTransform;
deselectAll(): void;
forceRedraw(): void;
getCurrentTime(): number;
getElementById(elementId: string): Element;
pauseAnimations(): void;
removeEventListener<K extends keyof SVGSVGElementEventMap>(
type: K,
listener: (this: SVGSVGElement, ev: SVGSVGElementEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void;
removeEventListener(
type: string,
options?: boolean | EventListenerOptions,
): void;
setCurrentTime(seconds: number): void;
suspendRedraw(maxWaitMilliseconds: number): number;
unpauseAnimations(): void;
unsuspendRedraw(suspendHandleID: number): void;
unsuspendRedrawAll(): void;
}
var SVGSVGElement: {
prototype: SVGSVGElement;
new (): SVGSVGElement;
}
;

§Extends

§Properties

§
currentScale: number
[src]
§
readonly currentTranslate: DOMPointReadOnly
[src]
§
readonly height: SVGAnimatedLength
[src]
§
readonly width: SVGAnimatedLength
[src]

§Methods

§
addEventListener<K extends keyof SVGSVGElementEventMap>(
type: K,
listener: (this: SVGSVGElement, ev: SVGSVGElementEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void
[src]
§
addEventListener(
type: string,
options?: boolean | AddEventListenerOptions,
): void
[src]
§
animationsPaused(): boolean
[src]
§
checkEnclosure(element: SVGElement, rect: DOMRectReadOnly): boolean
[src]
§
checkIntersection(element: SVGElement, rect: DOMRectReadOnly): boolean
[src]
§
createSVGAngle(): SVGAngle
[src]
§
createSVGLength(): SVGLength
[src]
§
createSVGMatrix(): DOMMatrix
[src]
§
createSVGNumber(): SVGNumber
[src]
§
createSVGPoint(): DOMPoint
[src]
§
createSVGRect(): DOMRect
[src]
§
createSVGTransform(): SVGTransform
[src]
§
createSVGTransformFromMatrix(matrix?: DOMMatrix2DInit): SVGTransform
[src]
§
deselectAll(): void
[src]
§
forceRedraw(): void
[src]
§
getCurrentTime(): number
[src]
§
getElementById(elementId: string): Element
[src]
§
pauseAnimations(): void
[src]
§
removeEventListener<K extends keyof SVGSVGElementEventMap>(
type: K,
listener: (this: SVGSVGElement, ev: SVGSVGElementEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void
[src]
§
removeEventListener(
type: string,
options?: boolean | EventListenerOptions,
): void
[src]
§
setCurrentTime(seconds: number): void
[src]
§
suspendRedraw(maxWaitMilliseconds: number): number
[src]
§
unpauseAnimations(): void
[src]
§
unsuspendRedraw(suspendHandleID: number): void
[src]
§
unsuspendRedrawAll(): void
[src]