UNPKG

@xeokit/xeokit-sdk

Version:

3D BIM IFC Viewer SDK for AEC engineering applications. Open Source JavaScript Toolkit based on pure WebGL for top performance, real-world coordinates and full double precision

85 lines (70 loc) 1.73 kB
import { MetaScene } from "./MetaScene"; import { PropertySet } from "./PropertySet"; import { MetaObject } from "./MetaObject"; /** * Metadata corresponding to an {@link Entity} that represents a model. */ export declare class MetaModel { /** * Creates a new MetaModel. * @param param */ constructor(param: { metaScene: MetaScene; id: any | String | Number | string | number }); /** * Globally-unique ID. * * MetaModels are registered by ID in {@link MetaScene.metaModels}. * * When this MetaModel corresponds to an {@link Entity} then this ID will match the {@link Entity.id}. * */ id: string | number; /** * The project ID */ projectId: string | number; /** * The revision ID, if available. */ revisionId?: string | number; /** * The model author, if available. */ author?: string; /** * The date the model was created, if available. */ createdAt?: string; /** * The application that created the model, if available. */ creatingApplication?: string; /** * The model schema version, if available. */ schema?: string; /** * Metadata on the {@link Scene}. */ metaScene?: MetaScene; /** * The {@link PropertySet}s in this MetaModel. */ propertySets: { String: PropertySet; }; /** * The root {@link MetaObject} in this MetaModel's composition structure hierarchy. */ rootMetaObject: MetaObject; /** * Finalizes this MetaModel. */ finalize(): void; /** * Loads data into this MetaModel. * @param metaModelData * @param options */ loadData(metaModelData: any, options: { includeTypes: String[]; excludeTypes: String[]; globalizeObjectIds: any }): void; }