mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-29 01:50:06 +02:00
update docs
This commit is contained in:
@@ -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`
|
||||
|
@@ -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`.
|
||||
|
||||
|
Reference in New Issue
Block a user