Construct a new undoable observable list.
Whether 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.
Copy a change as JSON.
Handle a change in the list.
Redo a change event.
Undo a change event.
Begin a compound operation.
Whether the operation is undoable.
The default is true
.
Remove all values from the list.
Linear.
All current iterators are invalidated.
Clear the change stack.
Dispose of the resources held by the list.
End a compound operation.
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.
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.
An index
which is non-integral.
Create an iterator over the values in the list.
A new iterator starting at the front of the list.
Constant.
No changes.
Move a value from one index to another.
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.
No changes.
Push a set of values to the back of the list.
An iterable or array-like set of values to add.
The new length of the list.
Linear.
No changes.
Redo an operation.
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.
Undo an operation.
Generated using TypeDoc
A concrete implementation of an observable undoable list. Namespace for ObservableUndoableList utilities.