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

x/evt/lib/index.ts>dom.SVGTextContentElement

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

Implemented by elements that support rendering child text content. It is inherited by various text-related interfaces, such as SVGTextElement, SVGTSpanElement, SVGTRefElement, SVGAltGlyphElement and SVGTextPathElement.

Properties

readonly
lengthAdjust: SVGAnimatedEnumeration
readonly
textLength: SVGAnimatedLength
readonly
LENGTHADJUST_SPACING: number
readonly
LENGTHADJUST_SPACINGANDGLYPHS: number
readonly
LENGTHADJUST_UNKNOWN: number

Methods

getCharNumAtPosition(point?: DOMPointInit): number
getComputedTextLength(): number
getEndPositionOfChar(charnum: number): DOMPoint
getExtentOfChar(charnum: number): DOMRect
getNumberOfChars(): number
getRotationOfChar(charnum: number): number
getStartPositionOfChar(charnum: number): DOMPoint
getSubStringLength(charnum: number, nchars: number): number
selectSubString(charnum: number, nchars: number): void
addEventListener<K extends keyof SVGElementEventMap>(
type: K,
listener: (this: SVGTextContentElement, ev: SVGElementEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void
addEventListener(
type: string,
options?: boolean | AddEventListenerOptions,
): void
removeEventListener<K extends keyof SVGElementEventMap>(
type: K,
listener: (this: SVGTextContentElement, ev: SVGElementEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void
removeEventListener(
type: string,
options?: boolean | EventListenerOptions,
): void