From ceadbd16276ca0a841321ddbfe83c9e8c84d5dc5 Mon Sep 17 00:00:00 2001 From: Ian Storm Taylor Date: Tue, 12 Jul 2016 11:28:41 -0700 Subject: [PATCH] update reference --- docs/reference/models/selection.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/reference/models/selection.md b/docs/reference/models/selection.md index c1a8c2a19..1f2ea3d1c 100644 --- a/docs/reference/models/selection.md +++ b/docs/reference/models/selection.md @@ -137,32 +137,32 @@ Create a new `Selection` instance with `properties`. ## Checking Methods -### `has{Edge}AtStartOf` +### `has{Edge}AtStartOf(node)` `has{Edge}AtStartOf(node: Node) => Boolean` Determine whether a selection has an edge at the start of a `node`. Where `{Edge}` can be one of: `Anchor`, `Focus`, `Start`, `End` or `Edge` (referring to either point). -### `has{Edge}AtEndOf` +### `has{Edge}AtEndOf(node)` `has{Edge}AtEndOf(node: Node) => Boolean` Determine whether a selection has an edge at the end of a `node`. Where `{Edge}` can be one of: `Anchor`, `Focus`, `Start`, `End` or `Edge` (referring to either point). -### `has{Edge}Between` +### `has{Edge}Between(node, start, end)` `has{Edge}Between(node: Node, start: Number, end: Number) => Boolean` Determine whether a selection has an edge in a `node` between its `start` and `end` offset. Where `{Edge}` can be one of: `Anchor`, `Focus`, `Start`, `End` or `Edge` (referring to either point). -### `has{Edge}In` -`has{Edge}In(node: Node, start: Number, end: Number) => Boolean` +### `has{Edge}In(node)` +`has{Edge}In(node: Node) => Boolean` Determine whether a selection has an edge inside a `node`. Where `{Edge}` can be one of: `Anchor`, `Focus`, `Start`, `End` or `Edge` (referring to either point). -### `isAtStartOf` +### `isAtStartOf(node)` `isAtStartOf(node: Node) => Boolean` Determine whether the selection is at the start of a `node`. -### `isAtEndOf` +### `isAtEndOf(node)` `isAtEndOf(node: Node) => Boolean` Determine whether the selection is at the end of a `node`.