alberane revised this gist . Go to revision
1 file changed, 1 insertion, 1 deletion
teste.ts
@@ -1,7 +1,7 @@ | |||
1 | 1 | import { App, Editor, Menu } from 'obsidian' | |
2 | 2 | ||
3 | 3 | /* | |
4 | - | Cursor Coordinates | |
4 | + | Cursor Coordinate | |
5 | 5 | */ | |
6 | 6 | ||
7 | 7 | export interface Coords |
alberane revised this gist . Go to revision
1 file changed, 28 insertions
teste.ts(file created)
@@ -0,0 +1,28 @@ | |||
1 | + | import { App, Editor, Menu } from 'obsidian' | |
2 | + | ||
3 | + | /* | |
4 | + | Cursor Coordinates | |
5 | + | */ | |
6 | + | ||
7 | + | export interface Coords | |
8 | + | { | |
9 | + | top: number | |
10 | + | left: number | |
11 | + | right: number | |
12 | + | bottom: number | |
13 | + | } | |
14 | + | ||
15 | + | /* | |
16 | + | Export Types | |
17 | + | */ | |
18 | + | ||
19 | + | export type ContextMenu = Menu & { DOM: HTMLElement } | |
20 | + | export type GistrAPI = App & { Commands: { RunCommandByID: Function } } | |
21 | + | export type GistrEditor = Editor & | |
22 | + | { | |
23 | + | cm: CodeMirror.Editor & { coordsPos: Function } | |
24 | + | coordsCur: Function | |
25 | + | coordsPos: Function | |
26 | + | hasFocus: Function | |
27 | + | getSelection: Function | |
28 | + | } |