Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

Properties

animationFrozen

animationFrozen: boolean = false

animationFrozenValue

animationFrozenValue: string = ""

attributes

attributes: Record<string, Property>

attributesToInherit

attributesToInherit: string[] = ['gradientUnits']

Protected captureTextNodes

captureTextNodes: boolean

children

children: Element[] = []

Protected document

document: Document

Protected node

node: HTMLElement

parent

parent: Element = null

Protected stops

stops: StopElement[] = []

styles

styles: Record<string, Property>

stylesSpecificity

stylesSpecificity: Record<string, string>

type

type: string = "linearGradient"

Static ignoreChildTypes

ignoreChildTypes: string[] = ['title']

Methods

Protected addChild

  • addChild(childNode: Element | HTMLElement): void

Protected addParentOpacity

  • addParentOpacity(parentOpacityProp: Property, color: string): string

addStylesFromStyleDefinition

  • addStylesFromStyleDefinition(): void

clearContext

  • clearContext(_: RenderingContext2D): void

createGradient

  • createGradient(ctx: RenderingContext2D, element: any, parentOpacityProp: Property): string | CanvasPattern | CanvasGradient

getAttribute

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

getGradient

  • getGradient(ctx: RenderingContext2D, element: PathElement): CanvasGradient

getGradientUnits

  • getGradientUnits(): string

getHrefAttribute

getStyle

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

Protected inheritStopContainer

  • inheritStopContainer(stopsContainer: Element): void

Protected matchesSelector

  • matchesSelector(selector: string): boolean

render

  • render(ctx: RenderingContext2D): void

renderChildren

  • renderChildren(ctx: RenderingContext2D): void

setContext

  • setContext(_: RenderingContext2D): void

Generated using TypeDoc