Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

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

Properties

animationFrozen

animationFrozen: boolean = false

animationFrozenValue

animationFrozenValue: string = ''

Readonly attributes

attributes: Record<string, default<any>> = {}

Protected Readonly captureTextNodes

captureTextNodes: boolean = false

children

children: default[] = []

Protected Readonly document

document: default

Protected Readonly node

node: HTMLElement

parent

parent: default = null

root

root: boolean = false

Readonly styles

styles: Record<string, default<any>> = {}

Readonly stylesSpecificity

stylesSpecificity: Record<string, string> = {}

type

type: string = 'svg'

Static Readonly ignoreChildTypes

ignoreChildTypes: string[] = ...

Methods

Protected addChild

  • addChild(childNode: default | HTMLElement): void

addStylesFromStyleDefinition

  • addStylesFromStyleDefinition(): void

Protected applyEffects

Protected calculateOpacity

  • calculateOpacity(): number

clearContext

getAttribute

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

getHrefAttribute

getStyle

  • getStyle(name: string, createIfNotExists?: boolean, skipAncestors?: boolean): default<any>

Protected matchesSelector

  • matchesSelector(selector: string): boolean

Protected removeStyles

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

render

renderChildren

resize

  • resize(width: number, height?: number, preserveAspectRatio?: string | boolean): void
  • Resize SVG to fit in given size.

    Parameters

    • width: number
    • height: number = ...
    • preserveAspectRatio: string | boolean = false

    Returns void

Protected restoreStyles

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

setContext

Generated using TypeDoc