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