@@ -15,7 +15,7 @@ export interface ChangeDetail {
1515/**
1616 * The {@link SelectionDetailPart} interface allows to specify a range of text
1717 * selection or a single caret position in the document.
18- *
18+ *
1919 * If the `at` field is specified, the selection set will contain one selection,
2020 * the one created at the specified position. If the `at` field is not specified,
2121 * the selection set will contain all cursors in the document at their current
@@ -27,11 +27,11 @@ export interface SelectionDetailPart {
2727 * operation is applied over all cursors in the document at their current
2828 * positions. Or if operation is specified only for one cursor, it will be
2929 * applied to the first (main) cursor.
30- *
30+ *
3131 * If specified, a new temporary selection is created which is used to perform
3232 * the operation on. Then, if specified, this selection is used to create a
3333 * new main cursor, while all other cursors are removed.
34- *
34+ *
3535 * @default undefined
3636 */
3737 at ?: Selection ;
@@ -57,7 +57,7 @@ export interface SelectionMoveDetailPart {
5757export type SelectionMoveInstruction = [
5858 /**
5959 * Specifies the selection edge to perform the operation on.
60- *
60+ *
6161 * - `'start'`: The start edge of the selection.
6262 * - `'end'`: The end edge of the selection.
6363 * - `'focus'`: The focus edge of the selection. If the selection does not have
@@ -66,11 +66,10 @@ export type SelectionMoveInstruction = [
6666 * - `'anchor'`: The anchor edge of the selection. If the selection does not
6767 * have an anchor edge (i.e. it is a {@link Range}, not a {@link Cursor}), the
6868 * anchor is assumed to be the `'start'` edge of the selection.
69- *
69+ *
7070 * @default 'focus'
7171 */
7272 edge : 'start' | 'end' | 'focus' | 'anchor' ,
73-
7473 /**
7574 * Absolute position is specified using {@link Position} type. In which case
7675 * the next `len` field is ignored.
@@ -94,21 +93,19 @@ export type SelectionMoveInstruction = [
9493 * - `'block'`: Moves to the beginning or end of block, i.e. paragraph,
9594 * blockquote, etc.
9695 * - `'all'`: Moves to the beginning or end of the document.
97- *
96+ *
9897 * @todo Introduce 'vline', "visual line" - soft line break.
9998 */
10099 to : Position | 'point' | 'char' | 'word' | 'line' | 'vline' | 'vert' | 'block' | 'all' ,
101-
102100 /**
103101 * Specify the length of the movement (the number of steps) in units
104102 * specified by the `to` field. If not specified, the default value is `0`,
105103 * which results in no movement. If the value is negative, the movement will
106104 * be backwards. If positive, the movement will be forwards.
107- *
105+ *
108106 * @default 0
109107 */
110108 len ?: number ,
111-
112109 /**
113110 * If `true`, the selection will be collapsed to a single point. The other
114111 * edge of the selection will be moved to the same position as the specified
@@ -122,11 +119,11 @@ export type SelectionMoveInstruction = [
122119 * which apply change to a range (selection) of text in the document. Usually,
123120 * the events will apply changes to all ranges in the selection, some event may
124121 * use only the first range in the selection (like the "buffer" event).
125- *
122+ *
126123 * Selection-based events work by first constructing a *selection set*, which
127124 * is a list of {@link Range} or {@link Cursor} instances. They then apply the
128125 * event to each selection in the selection set.
129- *
126+ *
130127 * The selection set is constructed by using the `at` field to specify a single
131128 * {@link Range} or, if not specified, all {@link Cursor} instances in the
132129 * document are used. Then the `move` field is used to specify one or more move
@@ -155,7 +152,7 @@ export interface DeleteDetail extends RangeEventDetail {}
155152 * The `cursor` event is emitted when caret or selection is changed. The event
156153 * is applied to all cursors in the document. If the `at` field is specified,
157154 * a new cursor is created at that position, and all other cursors are removed.
158- *
155+ *
159156 * The `at` field allows to insert a new cursors at a specified location in the
160157 * document and remove all other cursors. The `move` fields allows to perform
161158 * one or more move operations to all cursors in the document.
@@ -197,10 +194,10 @@ export interface DeleteDetail extends RangeEventDetail {}
197194 * ```ts
198195 * {move: [['anchor', 'line', -1]]}
199196 * ```
200- *
197+ *
201198 * Move *anchor* edge of the selection exactly to after the second character in
202199 * the document:
203- *
200+ *
204201 * ```ts
205202 * {move: [['anchor', 2]]}
206203 * ```
@@ -216,9 +213,9 @@ export interface DeleteDetail extends RangeEventDetail {}
216213 * ```ts
217214 * {at: [0], move: [['focus', 'all', 1]]}
218215 * ```
219- *
216+ *
220217 * or
221- *
218+ *
222219 * ```ts
223220 * {move: [
224221 * ['start', 'all', -1],
@@ -240,7 +237,7 @@ export interface CursorDetail extends RangeEventDetail {
240237 * a new cursor will be inserted at the specified position into the document.
241238 * Otherwise, the selection specified by the `at` field will be used to
242239 * replace all other cursors in the document.
243- *
240+ *
244241 * @default false
245242 */
246243 add ?: boolean ;
0 commit comments