mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-13 18:53:59 +02:00
Rename Relationship methods section to Retrieval methods
This commit is contained in:
@@ -2,13 +2,11 @@
|
||||
|
||||
## Static methods
|
||||
|
||||
- [Getter methods](#getter-methods)
|
||||
- [Retrieval methods](#retrieval-methods)
|
||||
- [Text methods](#text-methods)
|
||||
- [Check methods](#check-methods)
|
||||
|
||||
### Getter methods
|
||||
|
||||
Methods used to retrieve nodes.
|
||||
### Retrieval methods
|
||||
|
||||
###### `Node.ancestor(root: Node, path: Path): Ancestor`
|
||||
|
||||
|
@@ -8,13 +8,11 @@ type Path = number[]
|
||||
|
||||
## Static methods
|
||||
|
||||
- [Relationship methods](#relationship-methods)
|
||||
- [Retrieval methods](#retrieval-methods)
|
||||
- [Check methods](#check-methods)
|
||||
- [Transform method](#transform-method)
|
||||
|
||||
### Relationship methods
|
||||
|
||||
The relationships around the Path like its ancestors, next sibling, etc.
|
||||
### Retrieval methods
|
||||
|
||||
###### `Path.ancestors(path: Path, options: { reverse?: boolean } = {}): Path[]`
|
||||
|
||||
|
@@ -12,11 +12,11 @@ interface Point {
|
||||
|
||||
## Static methods
|
||||
|
||||
- [Relationship methods](#relationship-methods)
|
||||
- [Retrieval methods](#retrieval-methods)
|
||||
- [Check methods](#check-methods)
|
||||
- [Transform method](#transform-method)
|
||||
|
||||
### Relationship methods
|
||||
### Retrieval methods
|
||||
|
||||
###### `Point.compare(point: Point, another: Point): -1 | 0 | 1`
|
||||
|
||||
|
@@ -12,13 +12,11 @@ interface Range {
|
||||
|
||||
## Static methods
|
||||
|
||||
- [Relationship methods](#relationship-methods)
|
||||
- [Retrieval methods](#retrieval-methods)
|
||||
- [Check methods](#check-methods)
|
||||
- [Transform method](#transform-method)
|
||||
|
||||
### Relationship methods
|
||||
|
||||
Relationship of a Range like its start and end points and the intersection with another Range.
|
||||
### Retrieval methods
|
||||
|
||||
###### `Range.edges(range: Range, options?): [Point, Point]`
|
||||
|
||||
|
Reference in New Issue
Block a user