From 414188b76d3696d175541510f09427b7f8c55a83 Mon Sep 17 00:00:00 2001 From: Ian Storm Taylor Date: Mon, 27 Feb 2017 13:05:41 -0800 Subject: [PATCH] update docs --- docs/reference/models/selection.md | 4 ++-- docs/reference/models/transform.md | 14 +++++++------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/docs/reference/models/selection.md b/docs/reference/models/selection.md index 909f10bad..8df229d07 100644 --- a/docs/reference/models/selection.md +++ b/docs/reference/models/selection.md @@ -29,7 +29,7 @@ Often times, you don't need to specifically know which point is the "anchor" and - [`startOffset`](#startoffset) - [Static Methods](#static-methods) - [`Selection.create`](#selectioncreate) -- [Methods](#checking-methods) +- [Checking Methods](#checking-methods) - [`has{Edge}AtEndOf`](#hasedgeatendof) - [`has{Edge}AtStartOf`](#hasedgeatstartof) - [`has{Edge}Between`](#hasedgebetween) @@ -122,7 +122,7 @@ A few convenience properties for accessing the first and last point of the selec Create a new `Selection` instance with `properties`. -## Methods +## Checking Methods ### `has{Edge}AtStartOf` `has{Edge}AtStartOf(node: Node) => Boolean` diff --git a/docs/reference/models/transform.md b/docs/reference/models/transform.md index f4e6d8c4a..cf37e1238 100644 --- a/docs/reference/models/transform.md +++ b/docs/reference/models/transform.md @@ -45,10 +45,10 @@ Transform methods can either operate on the [`Document`](./document.md), the [`S - [`extendTo{Edge}Of`](#extendtoedgeof) - [`extend{Direction}`](#extenddirection) - [`focus`](#focus) - - [`moveToOffsets`](#movetooffsets) + - [`move`](#move) + - [`moveOffsetsTo`](#moveoffsetsto) - [`moveToRangeOf`](#movetorangeof) - [`moveTo`](#moveto) - - [`move{Direction}`](#movedirection) - [Node Transforms](#node-transforms) - [`addMarkByKey`](#addmarkbykey) - [`insertNodeByKey`](#insertnodebykey) @@ -275,13 +275,13 @@ Extend the current selection to the `{Edge}` of a `node`. Where `{Edge}` is eith Focus the current selection. -### `move{Direction}` -`move{Direction}(n: Number) => Transform` +### `move` +`move(n: Number) => Transform` -Move the current selection's points `n` characters in `{Direction}`. Where `{Direction}` is either `Backward` or `Forward`. +Move the current selection's offsets by `n`. -### `moveToOffsets` -`moveToOffsets(anchorOffset: Number, focusOffset: Number) => Transform` +### `moveOffsetsTo` +`moveOffsetsTo(anchorOffset: Number, focusOffset: Number) => Transform` Move the current selection's offsets to a new `anchorOffset` and `focusOffset`.