Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

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

Properties

animationFrozen

animationFrozen: boolean = false

animationFrozenValue

animationFrozenValue: string = ""

Readonly attributes

attributes: Record<string, Property>

Protected Readonly captureTextNodes

captureTextNodes: boolean

children

children: Element[] = []

Protected Readonly document

document: Document

Protected Readonly node

node: HTMLElement

parent

parent: Element = null

root

root: boolean = false

Readonly styles

styles: Record<string, Property>

Readonly stylesSpecificity

stylesSpecificity: Record<string, string>

type

type: string = "svg"

Static Readonly ignoreChildTypes

ignoreChildTypes: string[] = ['title']

Methods

Protected addChild

  • addChild(childNode: Element | HTMLElement): void

addStylesFromStyleDefinition

  • addStylesFromStyleDefinition(): void

Protected applyEffects

Protected calculateOpacity

  • calculateOpacity(): number

clearContext

getAttribute

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

getHrefAttribute

getStyle

  • getStyle(name: string, createIfNotExists?: boolean, skipAncestors?: boolean): Property

Protected matchesSelector

  • matchesSelector(selector: string): boolean

Protected removeStyles

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

render

renderChildren

resize

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

    Parameters

    • width: number
    • Default value height: number = width
    • Default value preserveAspectRatio: boolean | string = false

    Returns void

Protected restoreStyles

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

setContext

Generated using TypeDoc