1
0
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:
Sunny Hirai
2021-03-29 23:34:11 -07:00
parent c85a2e0dea
commit f0bcc8be83
4 changed files with 8 additions and 14 deletions

View File

@@ -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`

View File

@@ -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[]`

View File

@@ -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`

View File

@@ -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]`