Skip to main content

Class: AnimateColorElement

Hierarchy​

Constructors​

constructor​

• new AnimateColorElement(document, node, captureTextNodes?)

Parameters​

NameType
documentDocument
nodeHTMLElement
captureTextNodes?boolean

Inherited from​

AnimateElement.constructor

Defined in​

src/Document/AnimateElement.ts:24

Properties​

type​

• type: string = 'animateColor'

Overrides​

AnimateElement.type

Defined in​

src/Document/AnimateColorElement.ts:5


begin​

• Protected Readonly begin: number

Inherited from​

AnimateElement.begin

Defined in​

src/Document/AnimateElement.ts:13


maxDuration​

• Protected Readonly maxDuration: number

Inherited from​

AnimateElement.maxDuration

Defined in​

src/Document/AnimateElement.ts:14


from​

• Protected Readonly from: Property<unknown>

Inherited from​

AnimateElement.from

Defined in​

src/Document/AnimateElement.ts:15


to​

• Protected Readonly to: Property<unknown>

Inherited from​

AnimateElement.to

Defined in​

src/Document/AnimateElement.ts:16


values​

• Protected Readonly values: Property<string[]>

Inherited from​

AnimateElement.values

Defined in​

src/Document/AnimateElement.ts:17


duration​

• Protected duration: number = 0

Inherited from​

AnimateElement.duration

Defined in​

src/Document/AnimateElement.ts:18


initialValue​

• Protected initialValue: string

Inherited from​

AnimateElement.initialValue

Defined in​

src/Document/AnimateElement.ts:19


initialUnits​

• Protected initialUnits: string = ''

Inherited from​

AnimateElement.initialUnits

Defined in​

src/Document/AnimateElement.ts:20


removed​

• Protected removed: boolean = false

Inherited from​

AnimateElement.removed

Defined in​

src/Document/AnimateElement.ts:21


frozen​

• Protected frozen: boolean = false

Inherited from​

AnimateElement.frozen

Defined in​

src/Document/AnimateElement.ts:22


ignoreChildTypes​

â–ª Static Readonly ignoreChildTypes: string[]

Inherited from​

AnimateElement.ignoreChildTypes

Defined in​

src/Document/Element.ts:11


attributes​

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

Inherited from​

AnimateElement.attributes

Defined in​

src/Document/Element.ts:14


styles​

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

Inherited from​

AnimateElement.styles

Defined in​

src/Document/Element.ts:15


stylesSpecificity​

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

Inherited from​

AnimateElement.stylesSpecificity

Defined in​

src/Document/Element.ts:16


animationFrozen​

• animationFrozen: boolean = false

Inherited from​

AnimateElement.animationFrozen

Defined in​

src/Document/Element.ts:17


animationFrozenValue​

• animationFrozenValue: string = ''

Inherited from​

AnimateElement.animationFrozenValue

Defined in​

src/Document/Element.ts:18


parent​

• parent: Element = null

Inherited from​

AnimateElement.parent

Defined in​

src/Document/Element.ts:19


children​

• children: Element[] = []

Inherited from​

AnimateElement.children

Defined in​

src/Document/Element.ts:20


document​

• Protected Readonly document: Document

Inherited from​

AnimateElement.document

Defined in​

src/Document/Element.ts:23


node​

• Protected Optional Readonly node: HTMLElement

Inherited from​

AnimateElement.node

Defined in​

src/Document/Element.ts:24


captureTextNodes​

• Protected Readonly captureTextNodes: boolean = false

Inherited from​

AnimateElement.captureTextNodes

Defined in​

src/Document/Element.ts:25

Methods​

calcValue​

â–¸ calcValue(): string

Returns​

string

Overrides​

AnimateElement.calcValue

Defined in​

src/Document/AnimateColorElement.ts:7


getProperty​

â–¸ Protected getProperty(): Property<unknown>

Returns​

Property<unknown>

Inherited from​

AnimateElement.getProperty

Defined in​

src/Document/AnimateElement.ts:46


update​

â–¸ update(delta): boolean

Parameters​

NameType
deltanumber

Returns​

boolean

Inherited from​

AnimateElement.update

Defined in​

src/Document/AnimateElement.ts:74


getProgress​

â–¸ getProgress(): IProgress

Returns​

IProgress

Inherited from​

AnimateElement.getProgress

Defined in​

src/Document/AnimateElement.ts:142


getAttribute​

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

Parameters​

NameTypeDefault value
namestringundefined
createIfNotExistsbooleanfalse

Returns​

Property<unknown>

Inherited from​

AnimateElement.getAttribute

Defined in​

src/Document/Element.ts:87


getHrefAttribute​

â–¸ getHrefAttribute(): Property<unknown>

Returns​

Property<unknown>

Inherited from​

AnimateElement.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​

AnimateElement.getStyle

Defined in​

src/Document/Element.ts:114


render​

â–¸ render(ctx): void

Parameters​

NameType
ctxRenderingContext2D

Returns​

void

Inherited from​

AnimateElement.render

Defined in​

src/Document/Element.ts:151


setContext​

â–¸ setContext(_): void

Parameters​

NameType
_RenderingContext2D

Returns​

void

Inherited from​

AnimateElement.setContext

Defined in​

src/Document/Element.ts:186


applyEffects​

â–¸ Protected applyEffects(ctx): void

Parameters​

NameType
ctxRenderingContext2D

Returns​

void

Inherited from​

AnimateElement.applyEffects

Defined in​

src/Document/Element.ts:190


clearContext​

â–¸ clearContext(_): void

Parameters​

NameType
_RenderingContext2D

Returns​

void

Inherited from​

AnimateElement.clearContext

Defined in​

src/Document/Element.ts:210


renderChildren​

â–¸ renderChildren(ctx): void

Parameters​

NameType
ctxRenderingContext2D

Returns​

void

Inherited from​

AnimateElement.renderChildren

Defined in​

src/Document/Element.ts:214


addChild​

â–¸ Protected addChild(childNode): void

Parameters​

NameType
childNodeHTMLElement | Element

Returns​

void

Inherited from​

AnimateElement.addChild

Defined in​

src/Document/Element.ts:220


matchesSelector​

â–¸ Protected matchesSelector(selector): boolean

Parameters​

NameType
selectorstring

Returns​

boolean

Inherited from​

AnimateElement.matchesSelector

Defined in​

src/Document/Element.ts:232


addStylesFromStyleDefinition​

â–¸ addStylesFromStyleDefinition(): void

Returns​

void

Inherited from​

AnimateElement.addStylesFromStyleDefinition

Defined in​

src/Document/Element.ts:248


removeStyles​

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

Parameters​

NameType
elementElement
ignoreStylesstring[]

Returns​

[string, string][]

Inherited from​

AnimateElement.removeStyles

Defined in​

src/Document/Element.ts:283


restoreStyles​

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

Parameters​

NameType
elementElement
styles[string, string][]

Returns​

void

Inherited from​

AnimateElement.restoreStyles

Defined in​

src/Document/Element.ts:301


isFirstChild​

â–¸ isFirstChild(): boolean

Returns​

boolean

Inherited from​

AnimateElement.isFirstChild

Defined in​

src/Document/Element.ts:307