CompoundSignalContext
class CompoundSignalContextTSetterValueTValue extends TSetterValueTKeys extends keyof TValue = keyof TValueTOwner = void extends SignalContextTSetterValueTValueTOwner
Type Parameters
TSetterValue
TValue extends TSetterValue
TKeys extends keyof TValue = keyof TValue
TOwner = void
Extended by
Constructors
constructor
public override new CompoundSignalContextTSetterValueTValueTKeys extends stringnumbersymbol = keyof TValueTOwner = voidentries: TKeyskeyof TValueSignalanyanyTOwnerSignalContextanyanyTOwner[]parser: value: TSetterValue => TValueinitial: SignalValueTSetterValueinterpolation: InterpolationFunctionTValueany[]owner: TOwner = ...extensions: PartialSignalExtensionsTSetterValueTValue = {}: CompoundSignalContextTSetterValueTValueTKeysTOwner
Type Parameters
TSetterValue
TValue
TKeys extends stringnumbersymbol = keyof TValue
TOwner = void
Parameters
entries: TKeyskeyof TValueSignalanyanyTOwnerSignalContextanyanyTOwner[]
parser: value: TSetterValue => TValue
initial: SignalValueTSetterValue
interpolation: InterpolationFunctionTValueany[]
owner: TOwner = ...
extensions: PartialSignalExtensionsTSetterValueTValue = {}
SignalContext.constructor
Properties
signals
Methods
dispose
public dispose(): void
SignalContext.dispose
get
public get(): TValue
SignalContext.get
getInitial
public getInitial(): undefinedSignalValueTSetterValue
Get the initial value of this signal.
Inherited fromSignalContext.getInitial
getter
public override getter(): TValue
SignalContext.getter
isInitial
public override isInitial(): boolean
Check if the signal is currently using its initial value.
Examples
OverwritesSignalContext.isInitial
isTweening
public isTweening(): boolean
Is the signal undergoing a tween?
Inherited fromSignalContext.isTweening
parse
public override parsevalue: TSetterValue: TValue
Parameters
OverwritesSignalContext.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
OverwritesSignalContext.raw
reset
public override reset(): TOwner
Reset the signal to its initial value (if one has been set).
Examples
OverwritesSignalContext.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
OverwritesSignalContext.save
set
public setvalue: typeof DEFAULTSignalValueTSetterValue: TOwner
Parameters
value: typeof DEFAULTSignalValueTSetterValue
SignalContext.set
setter
public override settervalue: SignalValueTValue: TOwner
Parameters
OverwritesSignalContext.setter
toPromise
public toPromise(): PromiseCompoundSignalContextTSetterValueTValueTKeysTOwner
SignalContext.toPromise
toSignal
public override toSignal(): CompoundSignalTSetterValueTValueTKeysTOwnerCompoundSignalContextTSetterValueTValueTKeysTOwner
SignalContext.toSignal
tweener
public tweenervalue: SignalValueTSetterValueduration: numbertimingFunction: TimingFunctioninterpolationFunction: InterpolationFunctionTValueany[]: ThreadGenerator
Parameters
value: SignalValueTSetterValue
duration: number
timingFunction: TimingFunction
interpolationFunction: InterpolationFunctionTValueany[]
SignalContext.tweener
collectPromise
static public collectPromiseTpromise: PromiseTinitialValue: T: PromiseHandleT
Type Parameters
Parameters
Inherited fromSignalContext.collectPromise
consumePromises
static public consumePromises(): PromisePromiseHandleany[]
SignalContext.consumePromises
hasPromises
static public hasPromises(): boolean
SignalContext.hasPromises