Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

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

Properties

animationFrozen

animationFrozen: boolean = false

animationFrozenValue

animationFrozenValue: string = ""

attributes

attributes: Record<string, Property>

Protected captureTextNodes

captureTextNodes: boolean

children

children: Element[] = []

Protected document

document: Document

Protected hasText

hasText: boolean

Protected node

node: HTMLElement

parent

parent: Element = null

styles

styles: Record<string, Property>

stylesSpecificity

stylesSpecificity: Record<string, string>

Protected text

text: string

type

type: string = "a"

Protected x

x: number = 0

Protected y

y: number = 0

Static ignoreChildTypes

ignoreChildTypes: string[] = ['title']

Methods

Protected addChild

  • addChild(childNode: Element | HTMLElement): void

addStylesFromStyleDefinition

  • addStylesFromStyleDefinition(): void

Protected adjustChildCoordinates

Protected calculateOpacity

  • calculateOpacity(): number

clearContext

  • clearContext(_: RenderingContext2D): void

Protected getAnchorDelta

  • getAnchorDelta(ctx: RenderingContext2D, parent: Element, startI: number): number

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

  • getTElementBoundingBox(ctx: RenderingContext2D): BoundingBox

getText

  • getText(): string

Protected getTextFromNode

  • getTextFromNode(node?: ChildNode): string

Protected initializeCoordinates

  • initializeCoordinates(ctx: RenderingContext2D): void

Protected matchesSelector

  • matchesSelector(selector: string): boolean

Protected measureTargetText

  • measureTargetText(ctx: RenderingContext2D, targetText: string): number

Protected measureText

  • measureText(ctx: RenderingContext2D): number

Protected measureTextRecursive

  • measureTextRecursive(ctx: RenderingContext2D): number

onClick

  • onClick(): void

onMouseMove

  • onMouseMove(): void

render

  • render(ctx: RenderingContext2D): void

Protected renderChild

  • renderChild(ctx: RenderingContext2D, textParent: TextElement, parent: Element, i: number): void

renderChildren

  • renderChildren(ctx: RenderingContext2D): void

Protected renderTElementChildren

  • renderTElementChildren(ctx: RenderingContext2D): void

setContext

  • setContext(ctx: RenderingContext2D, fromMeasure?: boolean): void

Generated using TypeDoc