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> {
1616 /** 現在のページ本文を取得する */
1717 get lines ( ) : BaseLine [ ] ;
1818
19- /** 現在の選択範囲を取得する */
19+ /** 現在の選択範囲を取得する
20+ *
21+ * @param init 選択範囲の先頭位置がRange.startになるよう並び替えたいときは`init.normalizeOrder`を`true`にする
22+ * @return 現在の選択範囲
23+ */
2024 getRange ( init ?: { normalizeOrder : boolean } ) : Range ;
2125
2226 /** 選択範囲を変更する */
@@ -25,9 +29,10 @@ export declare class Selection extends BaseStore<undefined> {
2529 /** 選択を解除する */
2630 clear ( ) : void ;
2731
28- /** algorithmがよくわからない
32+ /** 選択範囲の先頭位置がrange.startになるよう並び替える
2933 *
30- * 何らかの条件に基づいて、startとendを入れ替えているのはわかる
34+ * @param range 並び替えたい選択範囲
35+ * @return 並び替えた選択範囲
3136 */
3237 normalizeOrder ( range : Range ) : Range ;
3338
You can’t perform that action at this time.
0 commit comments