Created
September 10, 2015 13:49
-
-
Save leefsmp/eff56368c6b246d114fb to your computer and use it in GitHub Desktop.
TypeScript declarations for View & Data Client API
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
declare module Autodesk { | |
export module Viewing { | |
export function Initializer( | |
options: InitializerOptions, | |
callback: () => void): void; | |
interface InitializerOptions { | |
env: string; | |
getAccessToken: Function; | |
refreshToken: Function; | |
} | |
export class Document { | |
static load( | |
documentId: string, | |
successCallback: (doc: Document) => void, | |
errorCallback: (msg: string) => void): void; | |
static getSubItemsWithProperties( | |
item: Object, | |
properties: Properties, | |
recursive: boolean): Object[]; | |
getRootItem(): Object; | |
getViewablePath(item: Object): string; | |
} | |
interface Properties { | |
type: string; | |
role: string; | |
} | |
} | |
export module Viewing.Private { | |
export class GuiViewer3D { | |
constructor(container: HTMLElement); | |
start(): void; | |
load(path: any): void; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment