-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdecs.d.ts
41 lines (32 loc) · 1.21 KB
/
decs.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
declare namespace Autodesk {
namespace Viewing {
const OBJECT_TREE_CREATED_EVENT = 'objectTreeCreated';
class Model {
constructor(data: object);
getInstanceTree(): InstanceTree;
getPropertyDb(): Private.PropDbLoader;
}
class InstanceTree {
getRootId(): number;
enumNodeChildren(node: number, callback: (dbId: number) => void | boolean, recursive?: boolean): void
}
class EventDispatcher {
addEventListener(type: string, listener: (event: any) => void, options?: any): void;
}
class BubbleNode {
isSVF2(): boolean;
findPropertyDbPath(): string;
}
class Document {
getFullPath(urn: string): string;
getAcmSessionId(url: string): string | undefined;
}
namespace Private {
class PropDbLoader {
constructor(propertyDbPath: string, model: Model, eventDispatcher?: EventDispatcher);
load(): void;
executeUserFunction<TResult, TOptions>(code: ((pdb: any, tag?: TOptions) => TResult) | string, tag?: TOptions): Promise<TResult>;
}
}
}
}