Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

Properties

animationFrozen

animationFrozen: boolean = false

animationFrozenValue

animationFrozenValue: string = ""

Readonly attributes

attributes: Record<string, Property>

Protected Readonly captureTextNodes

captureTextNodes: boolean

children

children: Element[] = []

Protected Readonly document

document: Document

Protected Readonly node

node: HTMLElement

parent

parent: Element = null

Readonly styles

styles: Record<string, Property>

Readonly stylesSpecificity

stylesSpecificity: Record<string, string>

Protected Readonly text

text: string

type

type: string = "tspan"

Protected x

x: number = 0

Protected y

y: number = 0

Static Readonly ignoreChildTypes

ignoreChildTypes: string[] = ['title']

Methods

Protected addChild

  • addChild(childNode: Element | HTMLElement): void

addStylesFromStyleDefinition

  • addStylesFromStyleDefinition(): void

Protected adjustChildCoordinates

Protected applyEffects

Protected calculateOpacity

  • calculateOpacity(): number

clearContext

Protected getAnchorDelta

getAttribute

  • getAttribute(name: string, createIfNotExists?: boolean): Property<any>

getBoundingBox

Protected getChildBoundingBox

Protected getFontSize

  • getFontSize(): number

getGlyph

getHrefAttribute

getStyle

  • getStyle(name: string, createIfNotExists?: boolean, skipAncestors?: boolean): Property

Protected getTElementBoundingBox

getText

  • getText(): string

Protected getTextFromNode

  • getTextFromNode(node?: ChildNode): string

Protected initializeCoordinates

Protected matchesSelector

  • matchesSelector(selector: string): boolean

Protected measureTargetText

Protected measureText

Protected measureTextRecursive

Protected removeStyles

  • removeStyles(element: Element, ignoreStyles: string[]): [string, string][]

render

Protected renderChild

renderChildren

Protected renderTElementChildren

Protected restoreStyles

  • restoreStyles(element: Element, styles: [string, string][]): void

setContext

Generated using TypeDoc