Skip to main content
Module

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

💧EventEmitter's typesafe replacement
Go to Latest
interface dom.SVGRectElement
implements SVGGeometryElement
import { type dom } from "https://deno.land/x/evt@v2.4.13/lib/types/index.ts";
const { SVGRectElement } = dom;

Provides access to the properties of elements, as well as methods to manipulate them.

Properties

readonly
height: SVGAnimatedLength
readonly
rx: SVGAnimatedLength
readonly
ry: SVGAnimatedLength
readonly
width: SVGAnimatedLength

Methods

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