Skip to main content

CodeSignalContext

Type Parameters

Constructors​

constructor​

Type Parameters

Parameters

Overwrites SignalContext<PossibleCodeScope, CodeScope, TOwner>.constructor

Methods​

append​

public appendcode: CodeTag: TOwner
public appendcode: CodeTagduration: number: ThreadGenerator
public appendduration?: number: TagGenerator

Parameters


dispose​

public dispose(): void
Inherited from SignalContext.dispose

edit​

public editduration: number = 0.6: TagGenerator

Parameters


get​

public get(): CodeScope
Inherited from SignalContext.get

getInitial​

public getInitial(): undefinedSignalValuePossibleCodeScope

Get the initial value of this signal.

Inherited from SignalContext.getInitial

getter​

public getter(): CodeScope
Inherited from SignalContext.getter

insert​

public insertpoint: CodePointduration?: number: TagGenerator

Parameters


isInitial​

public isInitial(): boolean

Check if the signal is currently using its initial value.

Examples

Inherited from SignalContext.isInitial

isTweening​

public isTweening(): boolean

Is the signal undergoing a tween?

Inherited from SignalContext.isTweening

parse​

Parameters

Overwrites SignalContext.parse

prepend​

public prependcode: CodeTag: TOwner
public prependcode: CodeTagduration: number: ThreadGenerator
public prependduration?: number: TagGenerator

Parameters


raw​

public raw(): undefinedSignalValuePossibleCodeScope

Get the raw value of this signal.

If the signal was provided with a factory function, the function itself will be returned, without invoking it.

This method can be used to create copies of signals.

Examples

Inherited from SignalContext.raw

remove​

public removerange: CodeRange: TOwner
public removerange: CodeRangeduration: number: ThreadGenerator

Parameters


replace​

public replacerange: CodeRangeduration?: number: TagGenerator

Parameters


reset​

public reset(): TOwner

Reset the signal to its initial value (if one has been set).

Examples

Inherited from SignalContext.reset

save​

public save(): TOwner

Compute the current value of the signal and immediately set it.

This method can be used to stop the signal from updating while keeping its current value.

Examples

Inherited from SignalContext.save

set​

Parameters

Inherited from SignalContext.set

setter​

Parameters

Inherited from SignalContext.setter

toPromise​

public toPromise(): PromiseCodeSignalContextTOwner
Inherited from SignalContext.toPromise

toSignal​

public override toSignal(): CodeSignalTOwner
Overwrites SignalContext.toSignal

tweener​

Parameters

Overwrites SignalContext.tweener

collectPromise​

static public collectPromiseTpromise: PromiseT: PromiseHandlenullT
static public collectPromiseTpromise: PromiseTinitialValue: T: PromiseHandleT

Type Parameters

Parameters

Inherited from SignalContext.collectPromise

consumePromises​

static public consumePromises(): PromisePromiseHandleany[]
Inherited from SignalContext.consumePromises

hasPromises​

static public hasPromises(): boolean
Inherited from SignalContext.hasPromises