Skip to main content

Class: RadialGradientElement

Hierarchy​

Constructors​

constructor​

• new RadialGradientElement(document, node, captureTextNodes?)

Parameters​

NameType
documentDocument
nodeHTMLElement
captureTextNodes?boolean

Overrides​

GradientElement.constructor

Defined in​

src/Document/RadialGradientElement.ts:9

Properties​

ignoreChildTypes​

â–ª Static Readonly ignoreChildTypes: string[]

Inherited from​

GradientElement.ignoreChildTypes

Defined in​

src/Document/Element.ts:11


attributes​

• Readonly attributes: Record<string, Property<unknown>> = {}

Inherited from​

GradientElement.attributes

Defined in​

src/Document/Element.ts:14


styles​

• Readonly styles: Record<string, Property<unknown>> = {}

Inherited from​

GradientElement.styles

Defined in​

src/Document/Element.ts:15


stylesSpecificity​

• Readonly stylesSpecificity: Record<string, string> = {}

Inherited from​

GradientElement.stylesSpecificity

Defined in​

src/Document/Element.ts:16


animationFrozen​

• animationFrozen: boolean = false

Inherited from​

GradientElement.animationFrozen

Defined in​

src/Document/Element.ts:17


animationFrozenValue​

• animationFrozenValue: string = ''

Inherited from​

GradientElement.animationFrozenValue

Defined in​

src/Document/Element.ts:18


parent​

• parent: Element = null

Inherited from​

GradientElement.parent

Defined in​

src/Document/Element.ts:19


children​

• children: Element[] = []

Inherited from​

GradientElement.children

Defined in​

src/Document/Element.ts:20


document​

• Protected Readonly document: Document

Inherited from​

GradientElement.document

Defined in​

src/Document/Element.ts:23


node​

• Protected Optional Readonly node: HTMLElement

Inherited from​

GradientElement.node

Defined in​

src/Document/Element.ts:24


captureTextNodes​

• Protected Readonly captureTextNodes: boolean = false

Inherited from​

GradientElement.captureTextNodes

Defined in​

src/Document/Element.ts:25


attributesToInherit​

• Readonly attributesToInherit: string[]

Inherited from​

GradientElement.attributesToInherit

Defined in​

src/Document/GradientElement.ts:13


stops​

• Protected Readonly stops: StopElement[] = []

Inherited from​

GradientElement.stops

Defined in​

src/Document/GradientElement.ts:15


type​

• type: string = 'radialGradient'

Overrides​

GradientElement.type

Defined in​

src/Document/RadialGradientElement.ts:7

Methods​

getAttribute​

â–¸ getAttribute(name, createIfNotExists?): Property<unknown>

Parameters​

NameTypeDefault value
namestringundefined
createIfNotExistsbooleanfalse

Returns​

Property<unknown>

Inherited from​

GradientElement.getAttribute

Defined in​

src/Document/Element.ts:87


getHrefAttribute​

â–¸ getHrefAttribute(): Property<unknown>

Returns​

Property<unknown>

Inherited from​

GradientElement.getHrefAttribute

Defined in​

src/Document/Element.ts:101


getStyle​

â–¸ getStyle(name, createIfNotExists?, skipAncestors?): Property<unknown>

Parameters​

NameTypeDefault value
namestringundefined
createIfNotExistsbooleanfalse
skipAncestorsbooleanfalse

Returns​

Property<unknown>

Inherited from​

GradientElement.getStyle

Defined in​

src/Document/Element.ts:114


render​

â–¸ render(ctx): void

Parameters​

NameType
ctxRenderingContext2D

Returns​

void

Inherited from​

GradientElement.render

Defined in​

src/Document/Element.ts:151


setContext​

â–¸ setContext(_): void

Parameters​

NameType
_RenderingContext2D

Returns​

void

Inherited from​

GradientElement.setContext

Defined in​

src/Document/Element.ts:186


applyEffects​

â–¸ Protected applyEffects(ctx): void

Parameters​

NameType
ctxRenderingContext2D

Returns​

void

Inherited from​

GradientElement.applyEffects

Defined in​

src/Document/Element.ts:190


clearContext​

â–¸ clearContext(_): void

Parameters​

NameType
_RenderingContext2D

Returns​

void

Inherited from​

GradientElement.clearContext

Defined in​

src/Document/Element.ts:210


renderChildren​

â–¸ renderChildren(ctx): void

Parameters​

NameType
ctxRenderingContext2D

Returns​

void

Inherited from​

GradientElement.renderChildren

Defined in​

src/Document/Element.ts:214


addChild​

â–¸ Protected addChild(childNode): void

Parameters​

NameType
childNodeHTMLElement | Element

Returns​

void

Inherited from​

GradientElement.addChild

Defined in​

src/Document/Element.ts:220


matchesSelector​

â–¸ Protected matchesSelector(selector): boolean

Parameters​

NameType
selectorstring

Returns​

boolean

Inherited from​

GradientElement.matchesSelector

Defined in​

src/Document/Element.ts:232


addStylesFromStyleDefinition​

â–¸ addStylesFromStyleDefinition(): void

Returns​

void

Inherited from​

GradientElement.addStylesFromStyleDefinition

Defined in​

src/Document/Element.ts:248


removeStyles​

â–¸ Protected removeStyles(element, ignoreStyles): [string, string][]

Parameters​

NameType
elementElement
ignoreStylesstring[]

Returns​

[string, string][]

Inherited from​

GradientElement.removeStyles

Defined in​

src/Document/Element.ts:283


restoreStyles​

â–¸ Protected restoreStyles(element, styles): void

Parameters​

NameType
elementElement
styles[string, string][]

Returns​

void

Inherited from​

GradientElement.restoreStyles

Defined in​

src/Document/Element.ts:301


isFirstChild​

â–¸ isFirstChild(): boolean

Returns​

boolean

Inherited from​

GradientElement.isFirstChild

Defined in​

src/Document/Element.ts:307


getGradientUnits​

â–¸ getGradientUnits(): string

Returns​

string

Inherited from​

GradientElement.getGradientUnits

Defined in​

src/Document/GradientElement.ts:38


createGradient​

â–¸ createGradient(ctx, element, parentOpacityProp): string | CanvasGradient | CanvasPattern

Parameters​

NameType
ctxRenderingContext2D
elementPathElement
parentOpacityPropProperty<unknown>

Returns​

string | CanvasGradient | CanvasPattern

Inherited from​

GradientElement.createGradient

Defined in​

src/Document/GradientElement.ts:42


inheritStopContainer​

â–¸ Protected inheritStopContainer(stopsContainer): void

Parameters​

NameType
stopsContainerElement

Returns​

void

Inherited from​

GradientElement.inheritStopContainer

Defined in​

src/Document/GradientElement.ts:149


addParentOpacity​

â–¸ Protected addParentOpacity(parentOpacityProp, color): string

Parameters​

NameType
parentOpacityPropProperty<unknown>
colorstring

Returns​

string

Inherited from​

GradientElement.addParentOpacity

Defined in​

src/Document/GradientElement.ts:160


getGradient​

â–¸ getGradient(ctx, element): CanvasGradient

Parameters​

NameType
ctxRenderingContext2D
elementPathElement

Returns​

CanvasGradient

Overrides​

GradientElement.getGradient

Defined in​

src/Document/RadialGradientElement.ts:26