mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-08 16:26:29 +02:00
docs: clarify Range.includes method to mean intersects
This commit is contained in:
@@ -52,6 +52,8 @@ Check if a `range` is exactly equal to `another`.
|
|||||||
|
|
||||||
Check if a `range` includes a path, a point, or part of another range.
|
Check if a `range` includes a path, a point, or part of another range.
|
||||||
|
|
||||||
|
For clarity the definition of `includes` can mean partially includes. Another way to describe this is if one Range intersectns the other Range.
|
||||||
|
|
||||||
#### `Range.isBackward(range: Range): boolean`
|
#### `Range.isBackward(range: Range): boolean`
|
||||||
|
|
||||||
Check if a `range` is backward, meaning that its anchor point appears _after_ its focus point in the document.
|
Check if a `range` is backward, meaning that its anchor point appears _after_ its focus point in the document.
|
||||||
|
Reference in New Issue
Block a user