SignalContext
class SignalContextTSetterValueTValue extends TSetterValue = TSetterValueTOwner = void extends DependencyContextTOwner
Type Parameters
TSetterValueTValue extends TSetterValue = TSetterValueTOwner = void
Extended by
Constructors​
constructor​
public override new SignalContextTSetterValueTValue = TSetterValueTOwner = voidinitial: undefinedSignalValueTSetterValueinterpolation: InterpolationFunctionTValueany[]owner: TOwner = ...parser: value: TSetterValue => TValue = ...extensions: PartialSignalExtensionsTSetterValueTValue = {}: SignalContextTSetterValueTValueTOwner
Type Parameters
TSetterValueTValue = TSetterValueTOwner = void
Parameters
initial: undefinedSignalValueTSetterValueinterpolation: InterpolationFunctionTValueany[]owner: TOwner = ...parser: value: TSetterValue => TValue = ...extensions: PartialSignalExtensionsTSetterValueTValue = {}
DependencyContext.constructorMethods​
dispose​
public override dispose(): void
DependencyContext.disposeget​
public get(): TValue
getInitial​
public getInitial(): undefinedSignalValueTSetterValue
Get the initial value of this signal.
getter​
public getter(): TValue
isInitial​
public isInitial(): boolean
Check if the signal is currently using its initial value.
Examples
isTweening​
public isTweening(): boolean
Is the signal undergoing a tween?
parse​
public parsevalue: TSetterValue: TValue
Parameters
raw​
public raw(): undefinedSignalValueTSetterValue
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
reset​
public reset(): TOwner
Reset the signal to its initial value (if one has been set).
Examples
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
set​
public setvalue: typeof DEFAULTSignalValueTSetterValue: TOwner
Parameters
value: typeof DEFAULTSignalValueTSetterValue
setter​
public settervalue: typeof DEFAULTSignalValueTSetterValue: TOwner
Parameters
value: typeof DEFAULTSignalValueTSetterValue
toPromise​
public toPromise(): PromiseSignalContextTSetterValueTValueTOwner
DependencyContext.toPromisetoSignal​
public toSignal(): SignalTSetterValueTValueTOwnerSignalContextTSetterValueTValueTOwner
tweener​
public tweenervalue: SignalValueTSetterValueduration: numbertimingFunction: TimingFunctioninterpolationFunction: InterpolationFunctionTValueany[]: ThreadGenerator
Parameters
value: SignalValueTSetterValueduration: numbertimingFunction: TimingFunctioninterpolationFunction: InterpolationFunctionTValueany[]
collectPromise​
static public collectPromiseTpromise: PromiseTinitialValue: T: PromiseHandleT
Type Parameters
Parameters
Inherited fromDependencyContext.collectPromiseconsumePromises​
static public consumePromises(): PromisePromiseHandleany[]
DependencyContext.consumePromiseshasPromises​
static public hasPromises(): boolean
DependencyContext.hasPromises