Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Cursor

カーソル操作クラス

class Cursor extends BaseStore {
constructor();
private data: Position;
private focusTextarea: boolean;
private temporalHorizontalPoint: number;
private visible: boolean;
private visiblePopupMenu: boolean;
get lines(): unknown[];
get pages(): unknown;
 
private emitScroll(): void;
private getNextLineHead(): void;
private getPrevLineTail(): void;
private getWordHead(): Position;
private getWordTail(): Position;
private goBackward(init?: {
scrollInView: boolean;
}
): void;
private goBottom(): void;
private goDown(): void;
private goForward(init?: {
scrollInView: boolean;
}
): void;
private goLeft(): void;
private goLineHead(): void;
private goLineTail(): void;
private goPageDown(): void;
private goPageUp(): void;
private goRight(): void;
private goTop(): void;
private goUp(): void;
private goWordHead(): void;
private goWordTail(): void;
private sync(): void;
private syncNow(): void;
private updateTemporalHorizontalPoint(): number;
blur(): void;
clear(): void;
emitChange(event: string): void;
fixPosition(): void;
focus(): void;
getPosition(): Position;
getVisible(): boolean;
goByAction(action:
| "go-up"
| "go-down"
| "go-left"
| "go-right"
| "go-forward"
| "go-backward"
| "go-top"
| "go-bottom"
| "go-word-head"
| "go-word-tail"
| "go-line-head"
| "go-line-tail"
| "go-pagedown"
| "go-pageup"
): void;
hide(): void;
hidePopupMenu(): void;
isAtLineHead(): boolean;
isAtLineTail(): boolean;
setPosition(position: Position, option?: SetPositionOptions): void;
show(): void;
showEditPopupMenu(): void;
}

§Extends

§
BaseStore
[src]

§Constructors

§
new Cursor()
[src]

§Properties

§
focusTextarea: boolean
[src]
§
temporalHorizontalPoint: number
[src]
§
visible: boolean
[src]
§
visiblePopupMenu: boolean
[src]
§
lines: unknown[] readonly
[src]
§
pages: unknown readonly
[src]

§Methods

§
emitScroll(): void private
[src]
§
getNextLineHead(): void private
[src]
§
getPrevLineTail(): void private
[src]
§
getWordHead(): Position private
[src]
§
getWordTail(): Position private
[src]
§
goBackward(init?: {
scrollInView: boolean;
}
): void private
[src]
§
goBottom(): void private
[src]

最後の行の末尾に飛ぶ

§
goDown(): void private
[src]
§
goForward(init?: {
scrollInView: boolean;
}
): void private
[src]
§
goLeft(): void private
[src]
§
goLineHead(): void private
[src]

インデントの後ろに飛ぶ

インデントの後ろかインデントの中にいるときは行頭に飛ぶ

§
goLineTail(): void private
[src]

行末に飛ぶ

§
goPageDown(): void private
[src]
§
goPageUp(): void private
[src]
§
goRight(): void private
[src]
§
goTop(): void private
[src]

タイトルの先頭文字に飛ぶ

§
goUp(): void private
[src]
§
goWordHead(): void private
[src]
§
goWordTail(): void private
[src]
§
sync(): void private
[src]
§
syncNow(): void private
[src]
§
updateTemporalHorizontalPoint(): number private
[src]
§
blur(): void
[src]

#text-inputからfocusを外す。カーソルの表示状態は変えない

§
clear(): void
[src]

カーソルの位置を初期化し、editorからカーソルを外す

§
emitChange(event: string): void
[src]
§
fixPosition(): void
[src]

カーソルの位置が行や列の外に出ていた場合に、存在する行と列の中に納める

§
focus(): void
[src]

#text-inputにカーソルをfocusし、同時にカーソルを表示する

§
getPosition(): Position
[src]

カーソルの位置を取得する

§
getVisible(): boolean
[src]

カーソルが表示されているか調べる

§
goByAction(action: "go-up" | "go-down" | "go-left" | "go-right" | "go-forward" | "go-backward" | "go-top" | "go-bottom" | "go-word-head" | "go-word-tail" | "go-line-head" | "go-line-tail" | "go-pagedown" | "go-pageup"): void
[src]

カーソル操作コマンド

Command Description
go-up 1行上に動かす
go-down 1行下に動かす
go-left 1文字左に動かす
go-right 1文字右に動かす
go-forward Emacs key bindingsで使われているコマンド。go-rightとほぼ同じ
go-backward Emacs key bindingsで使われているコマンド。go-leftとほぼ同じ
go-top タイトル行の行頭に飛ぶ
go-bottom 最後の行の行末に飛ぶ
go-word-head 1単語右に動かす
go-word-tail 1単語左に動かす
go-line-head 行頭に飛ぶ
go-line-tail 行末に飛ぶ
go-pagedown 1ページ分下の行に飛ぶ
go-pageup 1ページ分上の行に飛ぶ
§
hide(): void
[src]

カーソルを非表示にする

touch deviceの場合は、#text-inputからfocusを外す

§
hidePopupMenu(): void
[src]

popup menuを消す

§
isAtLineHead(): boolean
[src]

カーソルが行頭にいてかつ表示されていたらtrue

§
isAtLineTail(): boolean
[src]

カーソルが行末にいてかつ表示されていたらtrue

§
setPosition(position: Position, option?: SetPositionOptions): void
[src]

カーソルを指定した位置に動かす

§
show(): void
[src]

カーソルを表示する

#text-inputのfocus状態は変えない

§
showEditPopupMenu(): void
[src]

popup menuを表示する