Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GElement

Hierarchy

Index

Constructors

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

Properties

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

Methods

  • addChild(childNode: HTMLElement | Element): void
  • addStylesFromStyleDefinition(): void
  • calculateOpacity(): number
  • 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][]
  • restoreStyles(element: Element, styles: [string, string][]): void

Generated using TypeDoc