File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,11 @@ export declare class Selection extends BaseStore<undefined> {
16
16
/** 現在のページ本文を取得する */
17
17
get lines ( ) : BaseLine [ ] ;
18
18
19
- /** 現在の選択範囲を取得する */
19
+ /** 現在の選択範囲を取得する
20
+ *
21
+ * @param init 選択範囲の先頭位置がRange.startになるよう並び替えたいときは`init.normalizeOrder`を`true`にする
22
+ * @return 現在の選択範囲
23
+ */
20
24
getRange ( init ?: { normalizeOrder : boolean } ) : Range ;
21
25
22
26
/** 選択範囲を変更する */
@@ -25,9 +29,10 @@ export declare class Selection extends BaseStore<undefined> {
25
29
/** 選択を解除する */
26
30
clear ( ) : void ;
27
31
28
- /** algorithmがよくわからない
32
+ /** 選択範囲の先頭位置がrange.startになるよう並び替える
29
33
*
30
- * 何らかの条件に基づいて、startとendを入れ替えているのはわかる
34
+ * @param range 並び替えたい選択範囲
35
+ * @return 並び替えた選択範囲
31
36
*/
32
37
normalizeOrder ( range : Range ) : Range ;
33
38
You can’t perform that action at this time.
0 commit comments