Skip to main content

Vector2SignalContext

class Vector2SignalContextTOwner = void extends CompoundSignalContextPossibleVector2Vector2'x''y'TOwnerimplements Vector2SignalHelpersTOwner

Type Parameters

Constructors

constructor

public override new Vector2SignalContextentries: 'x''y'keyof Vector2SignalanyanyTOwnerSignalContextanyanyTOwner[]parser: value: PossibleVector2 => Vector2initial: SignalValuePossibleVector2interpolation: InterpolationFunctionVector2owner: TOwner = ...extensions: PartialSignalExtensionsPossibleVector2Vector2 = {}: Vector2SignalContextTOwner

Parameters

  • entries: 'x''y'keyof Vector2SignalanyanyTOwnerSignalContextanyanyTOwner[]
  • parser: value: PossibleVector2 => Vector2
  • initial: SignalValuePossibleVector2
  • interpolation: InterpolationFunctionVector2
  • owner: TOwner = ...
  • extensions: PartialSignalExtensionsPossibleVector2Vector2 = {}
Overwrites CompoundSignalContext.constructor

Properties

signals

readonly public signals: keyof Vector2SignalanyanyTOwnerSignalContextanyanyTOwner[] = []
Inherited from CompoundSignalContext.signals

Methods

add

public addvalue: PossibleVector2: TOwner
public addvalue: PossibleVector2duration: numbertimingFunction?: TimingFunctioninterpolationFunction?: InterpolationFunctionVector2any[]: SignalGeneratorPossibleVector2Vector2

Parameters


cross

public crossvalue: PossibleVector2: TOwner
public crossvalue: PossibleVector2duration: numbertimingFunction?: TimingFunctioninterpolationFunction?: InterpolationFunctionVector2any[]: SignalGeneratorPossibleVector2Vector2

Parameters


dispose

public dispose(): void
Inherited from CompoundSignalContext.dispose

div

public divvalue: PossibleVector2: TOwner
public divvalue: PossibleVector2duration: numbertimingFunction?: TimingFunctioninterpolationFunction?: InterpolationFunctionVector2any[]: SignalGeneratorPossibleVector2Vector2

Parameters


dot

public dotvalue: PossibleVector2: TOwner
public dotvalue: PossibleVector2duration: numbertimingFunction?: TimingFunctioninterpolationFunction?: InterpolationFunctionVector2any[]: SignalGeneratorPossibleVector2Vector2

Parameters


edit

public editcallback: current: Vector2 => SignalValuePossibleVector2: TOwner
public editcallback: current: Vector2 => SignalValuePossibleVector2duration: numbertimingFunction?: TimingFunctioninterpolationFunction?: InterpolationFunctionVector2any[]: SignalGeneratorPossibleVector2Vector2

Parameters


get

public get(): Vector2
Inherited from CompoundSignalContext.get

getInitial

public getInitial(): SignalValuePossibleVector2

Get the initial value of this signal.

Inherited from CompoundSignalContext.getInitial

getter

public getter(): Vector2
Inherited from CompoundSignalContext.getter

isInitial

public isInitial(): boolean

Check if the signal is currently using its initial value.

Examples

Inherited from CompoundSignalContext.isInitial

isTweening

public isTweening(): boolean

Is the signal undergoing a tween?

Inherited from CompoundSignalContext.isTweening

mod

public modvalue: PossibleVector2: TOwner
public modvalue: PossibleVector2duration: numbertimingFunction?: TimingFunctioninterpolationFunction?: InterpolationFunctionVector2any[]: SignalGeneratorPossibleVector2Vector2

Parameters


mul

public mulvalue: PossibleVector2: TOwner
public mulvalue: PossibleVector2duration: numbertimingFunction?: TimingFunctioninterpolationFunction?: InterpolationFunctionVector2any[]: SignalGeneratorPossibleVector2Vector2

Parameters


parse

public parsevalue: PossibleVector2: Vector2

Parameters

Inherited from CompoundSignalContext.parse

raw

public raw(): PossibleVector2

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 from CompoundSignalContext.raw

reset

public reset(): TOwner

Reset the signal to its initial value (if one has been set).

Examples

Inherited from CompoundSignalContext.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 from CompoundSignalContext.save

set

public setvalue: typeof DEFAULTSignalValuePossibleVector2: TOwner

Parameters

  • value: typeof DEFAULTSignalValuePossibleVector2
Inherited from CompoundSignalContext.set

setter

public settervalue: SignalValueVector2: TOwner

Parameters

  • value: SignalValueVector2
Inherited from CompoundSignalContext.setter

sub

public subvalue: PossibleVector2: TOwner
public subvalue: PossibleVector2duration: numbertimingFunction?: TimingFunctioninterpolationFunction?: InterpolationFunctionVector2any[]: SignalGeneratorPossibleVector2Vector2

Parameters


toPromise

public toPromise(): PromiseVector2SignalContextTOwner
Inherited from CompoundSignalContext.toPromise

toSignal

public override toSignal(): Vector2SignalTOwner
Overwrites CompoundSignalContext.toSignal

tweener

public tweenervalue: SignalValuePossibleVector2duration: numbertimingFunction: TimingFunctioninterpolationFunction: InterpolationFunctionVector2: ThreadGenerator

Parameters

Inherited from CompoundSignalContext.tweener

collectPromise

static public collectPromisepromise: PromiseT: PromiseHandlenullT
static public collectPromisepromise: PromiseTinitialValue: T: PromiseHandleT

Parameters

Inherited from CompoundSignalContext.collectPromise

consumePromises

static public consumePromises(): PromisePromiseHandleany[]
Inherited from CompoundSignalContext.consumePromises

hasPromises

static public hasPromises(): boolean
Inherited from CompoundSignalContext.hasPromises