Signal
interface SignalTSetterValueTValue extends TSetterValueTOwner = voidTContext = SignalContextTSetterValueTValueTOwner extends SignalSetterTSetterValueTOwnerSignalGetterTValueSignalTweenTSetterValueTValue
Type Parameters
TSetterValue
TValue extends TSetterValue
TOwner = void
TContext = SignalContextTSetterValueTValueTOwner
Callable
public Signalvalue: typeof DEFAULTSignalValueTSetterValue: TOwner
public Signal(): TValue
public Signalvalue: typeof DEFAULTSignalValueTSetterValuetime: numbertimingFunction?: TimingFunctioninterpolationFunction?: InterpolationFunctionTValueany[]: SignalGeneratorTSetterValueTValue
Parameters
value: typeof DEFAULTSignalValueTSetterValue
Properties
context
Methods
isInitial
public isInitial(): boolean
Check if the signal is currently using its initial value.
reset
public reset(): TOwner
Reset the signal to its initial value (if one has been set).
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.