Skip to content

Commit

Permalink
Merge pull request #1127 from xeokit/load-multipart-xkt
Browse files Browse the repository at this point in the history
Add MetaModel types for multi XKT loading support
  • Loading branch information
xeolabs authored Sep 7, 2023
2 parents c679b32 + 8daec6f commit 3e7d8b4
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions types/viewer/metadata/MetaModel.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ 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.
*
Expand Down Expand Up @@ -62,4 +69,16 @@ export declare class MetaModel {
* 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;
}

0 comments on commit 3e7d8b4

Please sign in to comment.