Provides utility methods for working with cursors.
Inheritance Hierarchy
Cursors
Type Details
- yfiles module
- algorithms
- yfiles-umd modules
- All layout modules, view-layout-bridge
- Legacy UMD name
- yfiles.algorithms.Cursors
Static Methods
Creates a cursor view of the given collection.
Remarks
Creates an ICursor view of the given collection.
Note that the returned cursor does not support the prev and toLast operations.
Type Parameters
- T
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- c - ICollection<T>
- The collection.
Returns
- ↪ICursor
- The cursor view of the given collection.
Creates a cursor view of the given collection.
Remarks
Type Parameters
- T
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- c - ICollection<T>
- The collection.
Returns
- ↪IEdgeCursor
- an IEdgeCursor view of the given collection.
Creates a cursor view of the given collection.
Remarks
Type Parameters
- T
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- c - ICollection<T>
- The collection.
Returns
- ↪INodeCursor
- an INodeCursor view of the given collection.
Creates or fills an array with the values provided by the cursor