Skip to main content
Module

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

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

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