Options
All
  • Public
  • Public/Protected
  • All
Menu

Class FontElement

Hierarchy

Index

Constructors

  • new FontElement(document: Document, node: HTMLElement, captureTextNodes?: boolean): FontElement

Properties

animationFrozen: boolean = false
animationFrozenValue: string = ''
arabicGlyphs: Record<string, Partial<Record<ArabicForm, GlyphElement>>> = {}
attributes: Record<string, Property<unknown>> = {}
captureTextNodes: boolean = false
children: Element[] = []
document: Document
fontFace: FontFaceElement
glyphs: Record<string, GlyphElement> = {}
horizAdvX: number
isArabic: boolean = false
isRTL: boolean = false
missingGlyph: MissingGlyphElement
node?: HTMLElement
parent: Element = null
styles: Record<string, Property<unknown>> = {}
stylesSpecificity: Record<string, string> = {}
type: string = 'font'
ignoreChildTypes: string[] = ...

Methods

  • addChild(childNode: HTMLElement | Element): void
  • addStylesFromStyleDefinition(): void
  • getAttribute(name: string, createIfNotExists?: boolean): Property<unknown>
  • getStyle(name: string, createIfNotExists?: boolean, skipAncestors?: boolean): Property<unknown>
  • isFirstChild(): boolean
  • matchesSelector(selector: string): boolean
  • removeStyles(element: Element, ignoreStyles: string[]): [string, string][]
  • render(): void
  • restoreStyles(element: Element, styles: [string, string][]): void

Generated using TypeDoc