CodeSignalContext
class CodeSignalContextTOwner extends SignalContextPossibleCodeScopeCodeScopeTOwnerimplements CodeSignalHelpersTOwner
Type Parameters
Constructors
constructor
public override new CodeSignalContextTOwnerinitial: PossibleCodeScopeowner: TOwnerhighlighter?: SignalValuenullCodeHighlighterunknown: CodeSignalContextTOwner
Type Parameters
Parameters
initial: PossibleCodeScopeowner: TOwnerhighlighter?: SignalValuenullCodeHighlighterunknown
SignalContext<PossibleCodeScope, CodeScope, TOwner>.constructorMethods
append
public appendcode: stringduration: number: ThreadGenerator
public appendduration?: number: TagGenerator
Parameters
code: string
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: stringduration: 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
public override parsevalue: PossibleCodeScope: CodeScope
Parameters
OverwritesSignalContext.parseprepend
public prependcode: stringduration: number: ThreadGenerator
public prependduration?: number: TagGenerator
Parameters
code: string
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
Parameters
replace
public replacerange: CodeRangecode: stringduration: 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
Inherited fromSignalContext.setsetter
public settervalue: typeof DEFAULTSignalValuePossibleCodeScope: TOwner
Parameters
Inherited fromSignalContext.settertoPromise
public toPromise(): PromiseCodeSignalContextTOwner
SignalContext.toPromisetoSignal
public override toSignal(): CodeSignalTOwner
SignalContext.toSignaltweener
public override tweenervalue: SignalValuePossibleCodeScopeduration: numbertimingFunction: TimingFunction: ThreadGenerator
Parameters
OverwritesSignalContext.tweenercollectPromise
static public collectPromiseTpromise: PromiseTinitialValue: T: PromiseHandleT
Type Parameters
Parameters
Inherited fromSignalContext.collectPromiseconsumePromises
static public consumePromises(): PromisePromiseHandleany[]
SignalContext.consumePromiseshasPromises
static public hasPromises(): boolean
SignalContext.hasPromises