Skip to main content

Signal

interface SignalTSetterValueTValue extends TSetterValueTOwner = voidTContext = SignalContextTSetterValueTValueTOwner extends SignalSetterTSetterValueTOwnerSignalGetterTValueSignalTweenTSetterValueTValue

Type Parameters

Callable

public Signalvalue: typeof DEFAULTSignalValueTSetterValue: TOwner
public Signal(): TValue
public Signalvalue: typeof DEFAULTSignalValueTSetterValuetime: numbertimingFunction?: TimingFunctioninterpolationFunction?: InterpolationFunctionTValueany[]: SignalGeneratorTSetterValueTValue

Parameters

  • value: typeof DEFAULTSignalValueTSetterValue

Properties

context

context: TContext

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.