1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-31 19:01:54 +02:00

update docs on Node.ancestors/levels and Path.ancestors (#4987)

This commit is contained in:
Haakon Borch
2022-05-18 01:23:47 +02:00
committed by GitHub
parent 863357f994
commit f5ccab241c
4 changed files with 7 additions and 7 deletions

View File

@@ -122,8 +122,8 @@ export const Node: NodeInterface = {
/**
* Return a generator of all the ancestor nodes above a specific path.
*
* By default the order is bottom-up, from lowest to highest ancestor in
* the tree, but you can pass the `reverse: true` option to go top-down.
* By default the order is top-down, from highest to lowest ancestor in
* the tree, but you can pass the `reverse: true` option to go bottom-up.
*/
*ancestors(
@@ -438,7 +438,7 @@ export const Node: NodeInterface = {
/**
* Return a generator of the in a branch of the tree, from a specific path.
*
* By default the order is top-down, from lowest to highest node in the tree,
* By default the order is top-down, from highest to lowest node in the tree,
* but you can pass the `reverse: true` option to go bottom-up.
*/

View File

@@ -57,7 +57,7 @@ export const Path: PathInterface = {
/**
* Get a list of ancestor paths for a given path.
*
* The paths are sorted from deepest to shallowest ancestor. However, if the
* The paths are sorted from shallowest to deepest ancestor. However, if the
* `reverse: true` option is passed, they are reversed.
*/