Skip to main content

TimedComponent

TimedComponent

Overview needed


Constructor

public TimedComponent

new TimedComponent(initialDelay, inputPortCount, outputPortCount, size, inputPositioner, outputPositioner, initialProps)

*Description needed*

Parameters

  •  initialDelay: numberDescription needed

  •  inputPortCount: ClampedValueDescription needed

  •  outputPortCount: ClampedValueDescription needed

  •  size: VectorDescription needed

  •  inputPositioner: Positioner<InputPort>Description needed

  •  outputPositioner: Positioner<OutputPort>Description needed

  •  initialProps: RecordDescription needed


Properties

No publicly accessible properties on TimedComponent

private timeout: number

Description needed


Methods

private stopTimeout

stopTimeout() => void

Description needed

protected onTick

onTick() => void

Description needed

public setProp

setProp(key, val) => void

Description needed

Parameters

  •  key: stringDescription needed

  •  val: anyDescription needed

public tick

tick() => void

Description needed

public getPropInfo

getPropInfo(key) => BasePropInfo & { type: "boolean"; } | BasePropInfo & { type: "button"; getText: (states: any[]) => string; getNewState: (states: any[]) => any; } | BasePropInfo & UnitInfo | BasePropInfo & { type: "string"; constraint?: RegExp; } | BasePropInfo & { type: "color"; } | BasePropInfo & { type: "string[]"; options: [string, string][]; } | BasePropInfo & { type: "number[]"; options: [string, number][]; } | BasePropInfo & { type: "veci" | "vecf"; min?: Vector; max?: Vector; step?: Vector; }

Description needed

Parameters

  •  key: stringDescription needed

Returns

public reset

reset() => void

Description needed


Static Methods

No static methods for TimedComponent