Extends
Properties
collapseToEndabstract
#
Get a new selection at the end point of this one
- Overrides:
- Source:
collapseToFromabstract
#
Get a new selection at the 'from' point of this one
- Overrides:
- Source:
collapseToStartabstract
#
Get a new selection at the start point of this one
- Overrides:
- Source:
collapseToToabstract
#
Get a new selection at the 'to' point of this one
- Overrides:
- Source:
equals
#
Check if two selections are equal
- Overrides:
- Source:
getCoveringRange
#
Get the covering linear range for this selection
- Overrides:
- Source:
getDescription
#
Get a textual description of this selection, for debugging purposes
- Overrides:
- Source:
getRanges
#
Get the content ranges for this selection
- Overrides:
- Source:
isCollapsed
#
Check if a selection is collapsed
- Overrides:
- Source:
toJSON
#
Get a JSON serialization of this selection
- Overrides:
- Source:
translateByTransactionabstract
#
Apply translations from a transaction
- Overrides:
- Source:
translateByTransactionWithAuthorabstract
#
Apply translations from a transaction, with bias depending on author ID comparison
- Overrides:
- Source:
Methods
getName() → {string}
#
Get the name of the selection type
- Inherited from:
- Source:
Returns:
Selection type name
- Type
- string
isNull() → {boolean}
#
Check if this selection is null
- Overrides:
- Source:
Returns:
The selection is null
- Type
- boolean
self() → {ve.dm.NullSelection}private
#
Used as a shortcut for methods which make no modification
Returns:
The selection itself
- Type
- ve.dm.NullSelection
translateByChange(change, authorId) → {ve.dm.Selection}
#
Apply translations from a change
Parameters:
Name | Type | Description |
---|---|---|
change |
ve.dm.Change | |
authorId |
number | The author ID of this selection |
- Inherited from:
- Source:
Returns:
A new translated selection
- Type
- ve.dm.Selection
translateByTransactions(txs, [excludeInsertion]) → {ve.dm.Selection}
#
Apply translations from a set of transactions
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
txs |
Array.<ve.dm.Transaction> | Transactions |
|
excludeInsertion |
boolean |
optional |
Do not grow to cover insertions at boundaries |
- Inherited from:
- Source:
Returns:
A new translated selection
- Type
- ve.dm.Selection