Vector2SignalContext
class Vector2SignalContextTOwner = void extends CompoundSignalContextPossibleVector2Vector2'x''y'TOwnerimplements Vector2SignalHelpersTOwner
Type Parameters
TOwner = void
Constructors
constructor
public override new Vector2SignalContextTOwner = voidentries: 'x''y'keyof Vector2SignalanyanyTOwnerSignalContextanyanyTOwner[]parser: value: PossibleVector2number => Vector2initial: SignalValuePossibleVector2numberinterpolation: InterpolationFunctionVector2any[]owner: TOwner = ...extensions: PartialSignalExtensionsPossibleVector2numberVector2 = {}: Vector2SignalContextTOwner
Type Parameters
TOwner = void
Parameters
entries: 'x''y'keyof Vector2SignalanyanyTOwnerSignalContextanyanyTOwner[]
parser: value: PossibleVector2number => Vector2
initial: SignalValuePossibleVector2number
interpolation: InterpolationFunctionVector2any[]
owner: TOwner = ...
extensions: PartialSignalExtensionsPossibleVector2numberVector2 = {}
CompoundSignalContext.constructor
Properties
signals
Inherited from CompoundSignalContext.signals
Methods
add
public addvalue: PossibleVector2number: TOwner
public addvalue: PossibleVector2numberduration: numbertimingFunction?: TimingFunctioninterpolationFunction?: InterpolationFunctionVector2any[]: SignalGeneratorPossibleVector2numberVector2
Parameters
value: PossibleVector2number
cross
public crossvalue: PossibleVector2number: TOwner
public crossvalue: PossibleVector2numberduration: numbertimingFunction?: TimingFunctioninterpolationFunction?: InterpolationFunctionVector2any[]: SignalGeneratorPossibleVector2numberVector2
Parameters
value: PossibleVector2number
dispose
public dispose(): void
CompoundSignalContext.dispose
div
public divvalue: PossibleVector2number: TOwner
public divvalue: PossibleVector2numberduration: numbertimingFunction?: TimingFunctioninterpolationFunction?: InterpolationFunctionVector2any[]: SignalGeneratorPossibleVector2numberVector2
Parameters
value: PossibleVector2number
dot
public dotvalue: PossibleVector2number: TOwner
public dotvalue: PossibleVector2numberduration: numbertimingFunction?: TimingFunctioninterpolationFunction?: InterpolationFunctionVector2any[]: SignalGeneratorPossibleVector2numberVector2
Parameters
value: PossibleVector2number
edit
public editcallback: current: Vector2 => SignalValuePossibleVector2number: TOwner
public editcallback: current: Vector2 => SignalValuePossibleVector2numberduration: numbertimingFunction?: TimingFunctioninterpolationFunction?: InterpolationFunctionVector2any[]: SignalGeneratorPossibleVector2numberVector2
Parameters
callback: current: Vector2 => SignalValuePossibleVector2number
get
public get(): Vector2
CompoundSignalContext.get
getInitial
public getInitial(): SignalValuePossibleVector2number
Get the initial value of this signal.
Inherited fromCompoundSignalContext.getInitial
getter
public getter(): Vector2
CompoundSignalContext.getter
isInitial
public isInitial(): boolean
Check if the signal is currently using its initial value.
Examples
Inherited fromCompoundSignalContext.isInitial
isTweening
public isTweening(): boolean
Is the signal undergoing a tween?
Inherited fromCompoundSignalContext.isTweening
mod
public modvalue: PossibleVector2number: TOwner
public modvalue: PossibleVector2numberduration: numbertimingFunction?: TimingFunctioninterpolationFunction?: InterpolationFunctionVector2any[]: SignalGeneratorPossibleVector2numberVector2
Parameters
value: PossibleVector2number
mul
public mulvalue: PossibleVector2number: TOwner
public mulvalue: PossibleVector2numberduration: numbertimingFunction?: TimingFunctioninterpolationFunction?: InterpolationFunctionVector2any[]: SignalGeneratorPossibleVector2numberVector2
Parameters
value: PossibleVector2number
parse
public parsevalue: PossibleVector2number: Vector2
Parameters
value: PossibleVector2number
CompoundSignalContext.parse
raw
public raw(): PossibleVector2number
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 fromCompoundSignalContext.raw
reset
public reset(): TOwner
Reset the signal to its initial value (if one has been set).
Examples
Inherited fromCompoundSignalContext.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 fromCompoundSignalContext.save
set
public setvalue: typeof DEFAULTSignalValuePossibleVector2number: TOwner
Parameters
value: typeof DEFAULTSignalValuePossibleVector2number
CompoundSignalContext.set
setter
public settervalue: SignalValueVector2: TOwner
Parameters
Inherited fromCompoundSignalContext.setter
sub
public subvalue: PossibleVector2number: TOwner
public subvalue: PossibleVector2numberduration: numbertimingFunction?: TimingFunctioninterpolationFunction?: InterpolationFunctionVector2any[]: SignalGeneratorPossibleVector2numberVector2
Parameters
value: PossibleVector2number
toPromise
public toPromise(): PromiseVector2SignalContextTOwner
CompoundSignalContext.toPromise
toSignal
public override toSignal(): Vector2SignalTOwnerVector2SignalContextTOwner
CompoundSignalContext.toSignal
tweener
public tweenervalue: SignalValuePossibleVector2numberduration: numbertimingFunction: TimingFunctioninterpolationFunction: InterpolationFunctionVector2any[]: ThreadGenerator
Parameters
value: SignalValuePossibleVector2number
duration: number
timingFunction: TimingFunction
interpolationFunction: InterpolationFunctionVector2any[]
CompoundSignalContext.tweener
collectPromise
static public collectPromiseTpromise: PromiseTinitialValue: T: PromiseHandleT
Type Parameters
Parameters
Inherited fromCompoundSignalContext.collectPromise
consumePromises
static public consumePromises(): PromisePromiseHandleany[]
CompoundSignalContext.consumePromises
hasPromises
static public hasPromises(): boolean
CompoundSignalContext.hasPromises