Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AElement

Hierarchy

Index

Constructors

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

Properties

animationFrozen: boolean = false
animationFrozenValue: string = ''
attributes: Record<string, Property<unknown>> = {}
captureTextNodes: boolean = false
children: Element[] = []
document: Document
hasText: boolean
node?: HTMLElement
parent: Element = null
styles: Record<string, Property<unknown>> = {}
stylesSpecificity: Record<string, string> = {}
text: string
type: string = 'a'
x: number = 0
y: number = 0
ignoreChildTypes: string[] = ...

Methods

  • addChild(childNode: HTMLElement | Element): void
  • addStylesFromStyleDefinition(): void
  • applyAnchoring(): void
  • calculateOpacity(): number
  • getAttribute(name: string, createIfNotExists?: boolean): Property<unknown>
  • getFontSize(): number
  • getInheritedAttribute(name: string): string
  • getStyle(name: string, createIfNotExists?: boolean, skipAncestors?: boolean): Property<unknown>
  • getText(): string
  • getTextFromNode(node?: ChildNode): string
  • initializeCoordinates(): void
  • isFirstChild(): boolean
  • matchesSelector(selector: string): boolean
  • onClick(): void
  • onMouseMove(): void
  • removeStyles(element: Element, ignoreStyles: string[]): [string, string][]
  • restoreStyles(element: Element, styles: [string, string][]): void

Generated using TypeDoc