Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

SVGTextContentElement

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.

interface SVGTextContentElement extends SVGGraphicsElement {
readonly lengthAdjust: SVGAnimatedEnumeration;
readonly LENGTHADJUST_SPACING: number;
readonly LENGTHADJUST_SPACINGANDGLYPHS: number;
readonly LENGTHADJUST_UNKNOWN: number;
readonly textLength: SVGAnimatedLength;
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;
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;
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;
selectSubString(charnum: number, nchars: number): void;
}
var SVGTextContentElement: {
readonly LENGTHADJUST_SPACING: number;
readonly LENGTHADJUST_SPACINGANDGLYPHS: number;
readonly LENGTHADJUST_UNKNOWN: number;
}
;

§Extends

§Properties

§
readonly lengthAdjust: SVGAnimatedEnumeration
[src]
§
readonly LENGTHADJUST_SPACING: number
[src]
§
readonly LENGTHADJUST_SPACINGANDGLYPHS: number
[src]
§
readonly LENGTHADJUST_UNKNOWN: number
[src]
§
readonly textLength: SVGAnimatedLength
[src]

§Methods

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