List<OutputValue, InputValue, ListDataType>
Abstract base class for lists used in particle behaviors.
Extended by
Type Parameters
OutputValue
OutputValue
Type of value produced by the list.
InputValue
InputValue = OutputValue
Type of value used to initialize the list.
ListDataType
ListDataType = OutputValue
Type of data contained within the list nodes.
Constructors
Constructor
new List<OutputValue, InputValue, ListDataType>(): List<OutputValue, InputValue, ListDataType>;Returns
List<OutputValue, InputValue, ListDataType>
Properties
_easeFunction
protected _easeFunction: EaseFunction | null = null;_first
protected _first: ListNode<ListDataType> | null = null;_isStepped
protected _isStepped: boolean = false;_list
protected _list: ListStep<InputValue>[] = [];interpolate()
interpolate: (time) => OutputValue;Function to interpolate values from the list.
Parameters
time
number
Returns
OutputValue
Interpolated value.
Throws
If the interpolate method has not been set.
Accessors
first
Get Signature
get first(): ListNode<ListDataType>;First node in the list.
Throws
If the list has not been initialized.
Returns
ListNode<ListDataType>
isInitialized
Get Signature
get isInitialized(): boolean;Indicates whether the list has been initialized.
Returns
boolean
isStepped
Get Signature
get isStepped(): boolean;Indicates whether the list uses stepped interpolation.
Returns
boolean
Set Signature
set isStepped(value): void;Parameters
value
boolean
Returns
void
list
Get Signature
get list(): ListStep<InputValue>[];Gets the list steps.
Returns
ListStep<InputValue>[]
Methods
initialize()
initialize(data): void;Initializes the list from data.
Parameters
data
ListData<InputValue>
Data to initialize the list with.
Returns
void
initializeList()
abstract protected initializeList(data): void;Initializes the list from data.
Parameters
data
ListData<InputValue>
Data to initialize the list with.
Returns
void
reset()
reset(): void;Resets the list to an uninitialized state.
Returns
void