SelectionBookmark
A lightweight, document-independent representation of a selection. You can define a custom bookmark type for a custom selection class to make the history handle it well.
interface SelectionBookmark {
map: (mapping: Mappable) => SelectionBookmark;
}§Properties
§
map: (mapping: Mappable) => SelectionBookmark
[src]Map the bookmark through a set of changes.
§
Resolve the bookmark to a real selection again. This may need to
do some error checking and may fall back to a default (usually
TextSelection.between
) if
mapping made the bookmark invalid.