CodeSignalContext
class CodeSignalContextTOwner extends SignalContextPossibleCodeScopeCodeScopeTOwnerimplements CodeSignalHelpersTOwner
Type Parameters
Constructors
constructor
public override new CodeSignalContextTOwnerinitial: SignalValuePossibleCodeScopeowner: TOwnerhighlighter?: SignalValuenullCodeHighlighterunknown: CodeSignalContextTOwner
Type Parameters
Parameters
initial: SignalValuePossibleCodeScope
owner: TOwner
highlighter?: SignalValuenullCodeHighlighterunknown
SignalContext<PossibleCodeScope, CodeScope, TOwner>.constructor
Methods
append
public appendcode: CodeTagduration: number: ThreadGenerator
public appendduration?: number: TagGenerator
Parameters
dispose
public dispose(): void
SignalContext.dispose
edit
public editduration: number = 0.6: TagGenerator
Parameters
duration: number = 0.6
get
public get(): CodeScope
SignalContext.get
getInitial
public getInitial(): undefinedSignalValuePossibleCodeScope
Get the initial value of this signal.
Inherited fromSignalContext.getInitial
getter
public getter(): CodeScope
SignalContext.getter
insert
Parameters
isInitial
public isInitial(): boolean
Check if the signal is currently using its initial value.
Examples
Inherited fromSignalContext.isInitial
isTweening
public isTweening(): boolean
Is the signal undergoing a tween?
Inherited fromSignalContext.isTweening
parse
public override parsevalue: PossibleCodeScope: CodeScope
Parameters
OverwritesSignalContext.parse
prepend
public prependcode: CodeTagduration: number: ThreadGenerator
public prependduration?: number: TagGenerator
Parameters
raw
public raw(): undefinedSignalValuePossibleCodeScope
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
Inherited fromSignalContext.raw
remove
Parameters
replace
Parameters
reset
public reset(): TOwner
Reset the signal to its initial value (if one has been set).
Examples
Inherited fromSignalContext.reset
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
Inherited fromSignalContext.save
set
public setvalue: typeof DEFAULTSignalValuePossibleCodeScope: TOwner
Parameters
Inherited fromSignalContext.set
setter
public settervalue: typeof DEFAULTSignalValuePossibleCodeScope: TOwner
Parameters
Inherited fromSignalContext.setter
toPromise
public toPromise(): PromiseCodeSignalContextTOwner
SignalContext.toPromise
toSignal
public override toSignal(): CodeSignalTOwner
SignalContext.toSignal
tweener
public override tweenervalue: SignalValuePossibleCodeScopeduration: numbertimingFunction: TimingFunction: ThreadGenerator
Parameters
OverwritesSignalContext.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