CodeSignalContext
class CodeSignalContextTOwner extends SignalContextPossibleCodeScopeCodeScopeTOwnerimplements CodeSignalHelpersTOwner
Type Parameters
Constructors
constructor
public override new CodeSignalContextinitial: SignalValuePossibleCodeScopeowner: TOwnerhighlighter?: SignalValuenullCodeHighlighterunknown: CodeSignalContextTOwner
Parameters
initial: SignalValuePossibleCodeScopeowner: TOwnerhighlighter?: SignalValuenullCodeHighlighterunknown
SignalContext<PossibleCodeScope, CodeScope, TOwner>.constructorMethods
append
public appendcode: CodeTag: TOwner
public appendcode: CodeTagduration: number: ThreadGenerator
public appendduration?: number: TagGenerator
Parameters
code: CodeTag
dispose
public dispose(): void
SignalContext.disposeedit
public editduration: number = 0.6: TagGenerator
Parameters
duration: number = 0.6
get
public get(): CodeScope
SignalContext.getgetInitial
public getInitial(): undefinedSignalValuePossibleCodeScope
Get the initial value of this signal.
Inherited fromSignalContext.getInitialgetter
public getter(): CodeScope
SignalContext.getterinsert
public insertpoint: CodePointcode: CodeTagduration: number: ThreadGenerator
Parameters
isInitial
public isInitial(): boolean
Check if the signal is currently using its initial value.
Examples
Inherited fromSignalContext.isInitialisTweening
public isTweening(): boolean
Is the signal undergoing a tween?
Inherited fromSignalContext.isTweeningparse
Parameters
value: PossibleCodeScope
SignalContext.parseprepend
public prependcode: CodeTag: TOwner
public prependcode: CodeTagduration: number: ThreadGenerator
public prependduration?: number: TagGenerator
Parameters
code: CodeTag
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.rawremove
public removerange: CodeRange: TOwner
public removerange: CodeRangeduration: number: ThreadGenerator
Parameters
range: CodeRange
replace
public replacerange: CodeRangecode: CodeTagduration: number: ThreadGenerator
Parameters
reset
public reset(): TOwner
Reset the signal to its initial value (if one has been set).
Examples
Inherited fromSignalContext.resetsave
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.saveset
public setvalue: typeof DEFAULTSignalValuePossibleCodeScope: TOwner
Parameters
value: typeof DEFAULTSignalValuePossibleCodeScope
SignalContext.setsetter
public settervalue: typeof DEFAULTSignalValuePossibleCodeScope: TOwner
Parameters
value: typeof DEFAULTSignalValuePossibleCodeScope
SignalContext.settertoPromise
public toPromise(): PromiseCodeSignalContextTOwner
SignalContext.toPromisetoSignal
public override toSignal(): CodeSignalTOwner
SignalContext.toSignaltweener
public override tweenervalue: SignalValuePossibleCodeScopeduration: numbertimingFunction: TimingFunction: ThreadGenerator
Parameters
value: SignalValuePossibleCodeScopeduration: numbertimingFunction: TimingFunction
SignalContext.tweenercollectPromise
static public collectPromisepromise: PromiseT: PromiseHandlenullT
static public collectPromisepromise: PromiseTinitialValue: T: PromiseHandleT
Parameters
Inherited fromSignalContext.collectPromiseconsumePromises
static public consumePromises(): PromisePromiseHandleany[]
SignalContext.consumePromiseshasPromises
static public hasPromises(): boolean
SignalContext.hasPromises