-
Notifications
You must be signed in to change notification settings - Fork 3
/
types.ts
44 lines (37 loc) · 813 Bytes
/
types.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import { WorkspaceLeaf } from "obsidian";
export interface NodePosition {
id: string;
x: number,
y: number;
}
export interface GraphData {
options: any;
nodePositions: NodePosition[];
}
export interface GraphLeaf {
view: {
renderer: {
idleFrames: number;
/** Graph View requestAnimationFrame timer */
renderTimer: number;
nodes: NodePosition[],
worker: Worker,
autoRestored: boolean;
};
dataEngine: {
controlsEl: HTMLDivElement,
getOptions(): any,
setOptions(options: any): void
}
};
}
export type CustomLeaf = WorkspaceLeaf & GraphLeaf;
export interface WorkspacesInstance {
activeWorkspace: string;
workspaces: {
[activeWorkspace: string]: any;
};
}
export interface Workspaces {
instance: WorkspacesInstance;
}