mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-04-17 20:05:03 +02:00
docs: Organize the Point docs into sections by type
This commit is contained in:
parent
59343b2633
commit
cffbdb1afd
@ -12,10 +12,18 @@ interface Point {
|
||||
|
||||
## Static methods
|
||||
|
||||
- [Relationship methods](#relationship-methods)
|
||||
- [Check methods](#check-methods)
|
||||
- [Transform method](#transform-method)
|
||||
|
||||
### Relationship methods
|
||||
|
||||
###### `Point.compare(point: Point, another: Point): -1 | 0 | 1`
|
||||
|
||||
Compare a `point` to `another`, returning an integer indicating whether the point was before, at or after the other.
|
||||
|
||||
### Check methods
|
||||
|
||||
###### `Point.isAfter(point: Point, another: Point): boolean`
|
||||
|
||||
Check if a `point` is after `another`.
|
||||
@ -32,6 +40,8 @@ Check if a `point` is exactly equal to `another`.
|
||||
|
||||
Check if a `value` implements the `Point` interface.
|
||||
|
||||
### Transform methods
|
||||
|
||||
###### `Point.transform(point: Point, op: Operation, options?): Point | null`
|
||||
|
||||
Transform a `point` by an `op`.
|
||||
|
Loading…
x
Reference in New Issue
Block a user