Construct a new undoable observable list.
Private
_inPrivate
_indexPrivate
_isPrivate
_madePrivate
_serializerPrivate
_stackWhether the object can redo changes.
Whether the object can undo changes.
A signal emitted when the list has changed.
Test whether the list has been disposed.
The length of the list.
The type of this object.
Create an iterator over the values in the list.
A new iterator starting at the front of the list.
Constant.
No changes.
Private
_copyCopy a change as JSON.
Private
_onHandle a change in the list.
Private
_redoRedo a change event.
Private
_undoUndo a change event.
Remove all values from the list.
Linear.
All current iterators are invalidated.
Get the value at the specified index.
The positive integer index of interest.
The value at the specified index.
An index
which is non-integral or out of range.
Insert a value into the list at a specific index.
The index at which to insert the value.
The value to set at the specified index.
Linear.
No changes.
The index
will be clamped to the bounds of the list.
By convention, the oldIndex is set to -2 to indicate an insert operation.
The value -2 as oldIndex can be used to distinguish from the push method which will use a value -1.
An index
which is non-integral.
Insert a set of items into the list at the specified index.
The index at which to insert the values.
The values to insert at the specified index.
Linear.
No changes.
The index
will be clamped to the bounds of the list.
By convention, the oldIndex is set to -2 to indicate
an insert operation.
An index
which is non-integral.
Move a value from one index to another.
The index of the element to move.
The index to move the element to.
Constant.
Iterators pointing at the lesser of the fromIndex
and the toIndex
and beyond are invalidated.
A fromIndex
or a toIndex
which is non-integral.
Add a value to the end of the list.
The value to add to the end of the list.
The new length of the list.
Constant.
By convention, the oldIndex is set to -1 to indicate an push operation.
No changes.
Push a set of values to the back of the list.
An iterable set of values to add.
The new length of the list.
Linear.
By convention, the oldIndex is set to -1 to indicate an push operation.
No changes.
Remove and return the value at a specific index.
The index of the value of interest.
The value at the specified index, or undefined
if the
index is out of range.
Constant.
Iterators pointing at the removed value and beyond are invalidated.
An index
which is non-integral.
Remove a range of items from the list.
The start index of the range to remove (inclusive).
The end index of the range to remove (exclusive).
The new length of the list.
Linear.
Iterators pointing to the first removed value and beyond are invalid.
A startIndex
or endIndex
which is non-integral.
Remove the first occurrence of a value from the list.
The value of interest.
The index of the removed value, or -1
if the value
is not contained in the list.
Linear.
Iterators pointing at the removed value and beyond are invalidated.
Set the value at the specified index.
The positive integer index of interest.
The value to set at the specified index.
Constant.
No changes.
An index
which is non-integral or out of range.
A concrete implementation of an observable undoable list.