-
Notifications
You must be signed in to change notification settings - Fork 0
/
typings.d.ts
50 lines (45 loc) · 1021 Bytes
/
typings.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
declare module '*.css';
declare module '*.less';
declare module '*.png';
interface Window {
TWEEN: any;
autoSave: boolean;
scene: THREE.Scene;
orbitControl: any;
transformControl: any;
vector3: THREE.Vector3;
quaternion: THREE.Quaternion;
cmd: TProcess.default;
projectId: number;
loader: TLoader.default;
multiple: boolean;
enableSelect: boolean;
globalEnv: any; // 脚本本地变量
cloudEnv: any; // 云端数据
myScript: TMyScript.default; // 脚本绑定
myService: TMyServices.default; // 接口更新
modelUrl?: {
name: string;
value: string;
type: string;
};
}
declare module '*.svg' {
export function ReactComponent(
props: React.SVGProps<SVGSVGElement>,
): React.ReactElement;
const url: string;
export default url;
}
declare module '*.jpg' {
const src: string;
export default src;
}
declare module '*.jpeg' {
const src: string;
export default src;
}
declare module 'three-fbxloader-offical' {
const src: any;
export default src;
}