Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/evt/lib/types/index.ts>dom.SVGSVGElement

💧EventEmitter's typesafe replacement
Go to Latest
interface dom.SVGSVGElement
implements SVGGraphicsElement, DocumentEvent, SVGFitToViewBox, SVGZoomAndPan
import { type dom } from "https://deno.land/x/evt@v2.4.10/lib/types/index.ts";
const { SVGSVGElement } = dom;

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

deprecated
contentScriptType: string
deprecated
contentStyleType: string
currentScale: number
readonly
currentTranslate: SVGPoint
readonly
height: SVGAnimatedLength
onunload: ((this: SVGSVGElement, ev: Event) => any) | null
onzoom: ((this: SVGSVGElement, ev: SVGZoomEvent) => any) | null
readonly
deprecated
pixelUnitToMillimeterX: number
readonly
deprecated
pixelUnitToMillimeterY: number
readonly
deprecated
screenPixelToMillimeterX: number
readonly
deprecated
screenPixelToMillimeterY: number
readonly
deprecated
viewport: SVGRect
readonly
width: SVGAnimatedLength
readonly
x: SVGAnimatedLength
readonly
y: SVGAnimatedLength

Methods

animationsPaused(): boolean
checkEnclosure(element: SVGElement, rect: SVGRect): boolean
checkIntersection(element: SVGElement, rect: SVGRect): boolean
createSVGAngle(): SVGAngle
createSVGLength(): SVGLength
createSVGMatrix(): SVGMatrix
createSVGNumber(): SVGNumber
createSVGPoint(): SVGPoint
createSVGRect(): SVGRect
createSVGTransform(): SVGTransform
createSVGTransformFromMatrix(matrix: SVGMatrix): SVGTransform
deselectAll(): void
deprecated
forceRedraw(): void
getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration
getCurrentTime(): number
getElementById(elementId: string): Element
getEnclosureList(rect: SVGRect, referenceElement: SVGElement): NodeListOf<
| SVGCircleElement
| SVGEllipseElement
| SVGImageElement
| SVGLineElement
| SVGPathElement
| SVGPolygonElement
| SVGPolylineElement
| SVGRectElement
| SVGTextElement
| SVGUseElement
>
getIntersectionList(rect: SVGRect, referenceElement: SVGElement): NodeListOf<
| SVGCircleElement
| SVGEllipseElement
| SVGImageElement
| SVGLineElement
| SVGPathElement
| SVGPolygonElement
| SVGPolylineElement
| SVGRectElement
| SVGTextElement
| SVGUseElement
>
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