import { IHttpClient } from "./IHttpClient"; import { File } from "./File"; import { Assembly } from "./Assembly"; /** * The class representing the is a description of view of the file or assembly. For example, * for `dwg` it is a `Model` space or layout, and for `rvt` files it is a `3D` view. */ export declare class Model { private _data; private _file; httpClient: IHttpClient; path: string; /** * @param data - An object that implements model data storage. * @param file - The `File` of 'Assembly' instance that owns the model. */ constructor(data: any, file: File | Assembly); /** * The `Assembly` instance that owns the model. * * @readonly */ get assembly(): Assembly; /** * Raw model data received from the server. * * @readonly */ get data(): any; private set data(value); /** * Scene description file resource ID. Use {@link Model#downloadResource | downloadResource()} * to download scene description file. * * @readonly */ get database(): string; /** * `true` if this is default model. * * @readonly */ get default(): boolean; /** * The `File` instance that owns the model. * * @readonly */ get file(): File; /** * The ID of the file that owns the model. * * @readonly */ get fileId(): string; /** * The list of resource IDs for geometry data files. Use * {@link Model#downloadResource | downloadResource()} to download geometry data files. * * @readonly */ get geometry(): string[]; /** * Unique model ID. * * @readonly */ get id(): string; /** * Model name. * * @readonly */ get name(): string; get version(): string; /** * Returns model viewpoint list. * * _**Note**: Assemblу models do not support viewpoints_. * * @async */ getViewpoints(): Promise; /** * Add new model viewpoint. To create a new viewpoint use * {@link Viewer#createViewpoint | Viewer.createViewpoint()}. * * _**Note**: Assemblу models do not support viewpoints_. * * @async * @param viewpoint - Viewpoint. */ saveViewpoint(viewpoint: any): Promise; /** * Delete model viewpoint. * * _**Note**: Assemblу models do not support viewpoints_. * * @async * @param guid - Viewpoint GUID. * @returns Returns the raw data of a deleted viewpoint. */ deleteViewpoint(guid: string): Promise; /** * Returns viewpoint preview image as Data URL. * * @async * @param guid - Viewpoint GIID. */ getSnapshot(guid: string): Promise; /** * Returns snapshot data. * * @async * @param guid - Viewpoint GUID. * @param bitmapGuid - Bitmap GUID. */ getSnapshotData(guid: string, bitmapGuid: string): Promise; /** * Downloads model resource, such as scene description file or geometry data files. * * @async * @param resourceId - Resource ID. * @param onProgress - Download progress callback. * @param signal - An AbortSignal object instance. Allows to communicate with a fetch request * and abort it if desired. */ downloadResource(dataId: string, onProgress?: (progress: number) => void, signal?: AbortSignal): Promise; partialDownloadResource(dataId: string, onProgress?: (progress: number, downloaded: Uint8Array) => void, signal?: AbortSignal): Promise; downloadFileRange(requestId: number, records: any | null, dataId: string, onProgress?: (progress: number, downloaded: Uint8Array, requestId: number) => void, signal?: AbortSignal): Promise; /** * Returns a list of references to files used to extract geometry data. * * @async * @param [signal] - An AbortController * signal object instance, which can be used to abort waiting as desired. */ getReferences(signal?: AbortSignal): Promise | Promise<{ fileId: string; references: any[]; }>; } //# sourceMappingURL=Model.d.ts.map