Skip to main content

CompoundSignalContext

class CompoundSignalContextTSetterValueTValue extends TSetterValueTKeys extends keyof TValue = keyof TValueTOwner = void extends SignalContextTSetterValueTValueTOwner

Type Parameters

Extended by

  • Vector2SignalContext

Constructors​

constructor​

public override new CompoundSignalContextentries: TKeyskeyof TValueSignalanyanyTOwnerSignalContextanyanyTOwner[]parser: value: TSetterValue => TValueinitial: SignalValueTSetterValueinterpolation: InterpolationFunctionTValueowner: TOwner = ...extensions: PartialSignalExtensionsTSetterValueTValue = {}: CompoundSignalContextTSetterValueTValueTKeysTOwner

Parameters

Overwrites SignalContext.constructor

Properties​

signals​

readonly public signals: keyof TValueSignalanyanyTOwnerSignalContextanyanyTOwner[] = []

Methods​

dispose​

public dispose(): void
Inherited from SignalContext.dispose

get​

public get(): TValue
Inherited from SignalContext.get

getInitial​

public getInitial(): SignalValueTSetterValueundefined

Get the initial value of this signal.

Inherited from SignalContext.getInitial

getter​

public override getter(): TValue
Overwrites SignalContext.getter

isInitial​

public override isInitial(): boolean

Check if the signal is currently using its initial value.

Examples

Overwrites SignalContext.isInitial

isTweening​

public isTweening(): boolean

Is the signal undergoing a tween?

Inherited from SignalContext.isTweening

parse​

public override parsevalue: TSetterValue: TValue

Parameters

Overwrites SignalContext.parse

raw​

public override raw(): TSetterValue

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

Overwrites SignalContext.raw

reset​

public override reset(): TOwner

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

Examples

Overwrites SignalContext.reset

save​

public override 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

Overwrites SignalContext.save

set​

public setvalue: typeof DEFAULTSignalValueTSetterValue: TOwner

Parameters

  • value: typeof DEFAULTSignalValueTSetterValue
Inherited from SignalContext.set

setter​

public override settervalue: SignalValueTValue: TOwner

Parameters

Overwrites SignalContext.setter

toPromise​

public toPromise(): PromiseCompoundSignalContextTSetterValueTValueTKeysTOwner
Inherited from SignalContext.toPromise

toSignal​

public override toSignal(): CompoundSignalTSetterValueTValueTKeysTOwner
Overwrites SignalContext.toSignal

tweener​

public tweenervalue: SignalValueTSetterValueduration: numbertimingFunction: TimingFunctioninterpolationFunction: InterpolationFunctionTValue: ThreadGenerator

Parameters

Inherited from SignalContext.tweener

collectPromise​

static public collectPromisepromise: PromiseT: PromiseHandleTnull
static public collectPromisepromise: PromiseTinitialValue: T: PromiseHandleT

Parameters

Inherited from SignalContext.collectPromise

consumePromises​

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

hasPromises​

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