Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/yxz/typing/lib.dom.ts>SVGSVGElement

Deno Standard Extensions
Go to Latest
interface SVGSVGElement
import { type SVGSVGElement } from "https://deno.land/x/yxz@0.17.0/typing/lib.dom.ts";

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.

Properties

currentScale: number
readonly
currentTranslate: DOMPointReadOnly
readonly
height: SVGAnimatedLength
readonly
width: SVGAnimatedLength

Methods

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
deprecated
forceRedraw(): void
getCurrentTime(): number
getElementById(elementId: string): Element
pauseAnimations(): void
setCurrentTime(seconds: number): void
deprecated
suspendRedraw(maxWaitMilliseconds: number): number
unpauseAnimations(): void
deprecated
unsuspendRedraw(suspendHandleID: number): void
deprecated
unsuspendRedrawAll(): void
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
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