-
Notifications
You must be signed in to change notification settings - Fork 0
/
declarations.d.ts
56 lines (53 loc) · 1.12 KB
/
declarations.d.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
45
46
47
48
49
50
51
52
53
54
55
56
declare module "weas" {
export class Atoms {
constructor(props: {
symbols: string[];
positions: number[][];
cell: number[][];
});
}
export class VFManager {
addSetting(props: {
origins: string;
vectors: string;
color: string;
radius: number;
}): void;
show: boolean;
}
export class AtomsViewer {
modelStyle: number;
bondedAtoms: boolean;
atomScale: number;
bondManager: {
hideLongBonds: boolean;
};
boundary: number[][];
frameDuration: number;
VFManager: VFManager;
showCell: boolean;
drawModels(): void;
fromPhononMode(props: {
atoms: Atoms;
eigenvectors: number[][][];
amplitude: number;
nframes: number;
kpoint: number[];
repeat: number[];
}): void;
tjs: {
updateCameraAndControls(props: { direction: number[] }): void;
};
pause(): void;
}
export class WEAS {
constructor(props: {
domElement: HTMLDivElement | null;
guiConfig: object;
viewerConfig: object;
});
avr: AtomsViewer;
clear(): void;
render(): void;
}
}