@xeokit/xeokit-sdk 2.4.2-beta-30 → 2.4.2-beta-32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,277 +1,281 @@
1
- import { Plugin, Viewer, VBOSceneModel, IFCObjectDefaults } from "../../viewer";
1
+ import {IFCObjectDefaults, Plugin, VBOSceneModel, Viewer} from "../../viewer";
2
2
 
3
3
  export declare type XKTLoaderPluginConfiguration = {
4
- /** Optional ID for this plugin, so that we can find it within {@link Viewer.plugins}. */
5
- id?: string;
6
- /** Map of initial default states for each loaded {@link Entity} that represents an object. Default value is {@link IFCObjectDefaults}.*/
7
- objectDefaults?: IFCObjectDefaults;
8
- /** A custom data source through which the XKTLoaderPlugin can load model and metadata files. Defaults to an instance of {@link XKTDefaultDataSource}, which loads uover HTTP. */
9
- dataSource?: IXKTDefaultDataSource;
10
- /** When loading metadata, only loads objects that have {@link MetaObject}s with {@link MetaObject.type} values in this list. */
11
- includeTypes?: string[];
12
- /** When loading metadata, never loads objects that have {@link MetaObject}s with {@link MetaObject.type} values in this list. */
13
- excludeTypes?: string[];
14
- /** When loading metadata and this is ````true````, will only load {@link Entity}s that have {@link MetaObject}s (that are not excluded). This is useful when we don't want Entitys in the Scene that are not represented within IFC navigation components, such as {@link TreeViewPlugin}. */
15
- excludeUnclassifiedObjects?: boolean;
16
- /** Indicates whether to enable geometry reuse */
17
- reuseGeometries?: boolean;
18
- /** Maximum geometry batch size, as number of vertices. */
19
- maxGeometryBatchSize?: number;
4
+ /** Optional ID for this plugin, so that we can find it within {@link Viewer.plugins}. */
5
+ id?: string;
6
+ /** Map of initial default states for each loaded {@link Entity} that represents an object. Default value is {@link IFCObjectDefaults}.*/
7
+ objectDefaults?: IFCObjectDefaults;
8
+ /** A custom data source through which the XKTLoaderPlugin can load model and metadata files. Defaults to an instance of {@link XKTDefaultDataSource}, which loads uover HTTP. */
9
+ dataSource?: IXKTDefaultDataSource;
10
+ /** When loading metadata, only loads objects that have {@link MetaObject}s with {@link MetaObject.type} values in this list. */
11
+ includeTypes?: string[];
12
+ /** When loading metadata, never loads objects that have {@link MetaObject}s with {@link MetaObject.type} values in this list. */
13
+ excludeTypes?: string[];
14
+ /** When loading metadata and this is ````true````, will only load {@link Entity}s that have {@link MetaObject}s (that are not excluded). This is useful when we don't want Entitys in the Scene that are not represented within IFC navigation components, such as {@link TreeViewPlugin}. */
15
+ excludeUnclassifiedObjects?: boolean;
16
+ /** Indicates whether to enable geometry reuse */
17
+ reuseGeometries?: boolean;
18
+ /** Maximum geometry batch size, as number of vertices. */
19
+ maxGeometryBatchSize?: number;
20
20
  };
21
21
 
22
22
  export declare type LoadXKTModel = {
23
- /** ID to assign to the root {@link Entity.id}, unique among all components in the Viewer's {@link Scene}, generated automatically by default. */
24
- id?: string;
25
- /** Path to a *````.xkt````* file, as an alternative to the ````xkt```` parameter. */
26
- src?: string;
27
- /** The *````.xkt````* file data, as an alternative to the ````src```` parameter. */
28
- xkt?: ArrayBuffer;
29
- /** Path to an optional metadata file, as an alternative to the ````metaModelData```` parameter. */
30
- metaModelSrc?: string;
31
- /** JSON model metadata, as an alternative to the ````metaModelSrc```` parameter. */
32
- metaModelData?: any;
33
- /** Map of initial default states for each loaded {@link Entity} that represents an object. Default value is {@link IFCObjectDefaults}. */
34
- objectDefaults?: object;
35
- /** When loading metadata, only loads objects that have {@link MetaObject}s with {@link MetaObject.type} values in this list. */
36
- includeTypes?: string[]
37
- /** When loading metadata, never loads objects that have {@link MetaObject}s with {@link MetaObject.type} values in this list. */
38
- excludeTypes?: string[];
39
- /** Whether or not xeokit renders the model with edges emphasized. */
40
- edges?: boolean;
41
- /** The model's World-space double-precision 3D origin. Use this to position the model within xeokit's World coordinate system, using double-precision coordinates. */
42
- origin?: number[];
43
- /** The model single-precision 3D position, relative to the ````origin```` parameter. */
44
- position?: number[];
45
- /** The model's scale. */
46
- scale?: number[];
47
- /** The model's orientation, given as Euler angles in degrees, for each of the X, Y and Z axis. */
48
- rotation?: number[];
49
- /** The model's world transform matrix. Overrides the position, scale and rotation parameters. Relative to ````origin````.*/
50
- matrix?: number[];
51
- /** Indicates if Scalable Ambient Obscurance (SAO) will apply to the model. SAO is configured by the Scene's {@link SAO} component. Only works when {@link SAO.enabled} is also ````true```` */
52
- saoEnabled?: boolean;
53
- /** Indicates if physically-based rendering (PBR) will apply to the model. Only works when {@link Scene.pbrEnabled} is also ````true````. */
54
- pbrEnabled?: boolean;
55
- /** When we set this ````true````, then we force rendering of backfaces for the model. */
56
- backfaces?: boolean;
57
- /** When loading metadata and this is ````true````, will only load {@link Entity}s that have {@link MetaObject}s (that are not excluded). */
58
- excludeUnclassifiedObjects?: boolean;
59
- /** Indicates whether to globalize each {@link Entity.id} and {@link MetaObject.id}, in case you need to prevent ID clashes with other models. */
60
- globalizeObjectIds?: boolean;
61
- /** Indicates whether to enable geometry reuse */
62
- reuseGeometries?: boolean;
23
+ /** ID to assign to the root {@link Entity.id}, unique among all components in the Viewer's {@link Scene}, generated automatically by default. */
24
+ id?: string;
25
+ /** Path or URL to a *````.xkt````* file, as an alternative to the ````xkt```` parameter. */
26
+ src?: string;
27
+ /** The *````.xkt````* file data, as an alternative to the ````src```` parameter. */
28
+ xkt?: ArrayBuffer;
29
+ /** Path or URL to an optional metadata file, as an alternative to the ````metaModelData```` parameter. */
30
+ metaModelSrc?: string;
31
+ /** JSON model metadata, as an alternative to the ````metaModelSrc```` parameter. */
32
+ metaModelData?: any;
33
+ /** Path or URL to a JSON manifest file that provides paths or URLs to ````.xkt```` files to load as parts of the model. Use this option to load models that have been split intomultiple XKT files. See [tutorial](https://www.notion.so/xeokit/Automatically-Splitting-Large-Models-for-Better-Performance-165fc022e94742cf966ee50003572259) for more info.*/
34
+ manifestSrc?: any;
35
+ /** A JSON manifest object (as an alternative to a path or URL) that provides paths or URLs to ````.xkt```` files to load as parts of the model. Use this option to load models that have been split intomultiple XKT files. See [tutorial](https://www.notion.so/xeokit/Automatically-Splitting-Large-Models-for-Better-Performance-165fc022e94742cf966ee50003572259) for more info. */
36
+ manifest?: object;
37
+ /** Map of initial default states for each loaded {@link Entity} that represents an object. Default value is {@link IFCObjectDefaults}. */
38
+ objectDefaults?: object;
39
+ /** When loading metadata, only loads objects that have {@link MetaObject}s with {@link MetaObject.type} values in this list. */
40
+ includeTypes?: string[]
41
+ /** When loading metadata, never loads objects that have {@link MetaObject}s with {@link MetaObject.type} values in this list. */
42
+ excludeTypes?: string[];
43
+ /** Whether or not xeokit renders the model with edges emphasized. */
44
+ edges?: boolean;
45
+ /** The model's World-space double-precision 3D origin. Use this to position the model within xeokit's World coordinate system, using double-precision coordinates. */
46
+ origin?: number[];
47
+ /** The model single-precision 3D position, relative to the ````origin```` parameter. */
48
+ position?: number[];
49
+ /** The model's scale. */
50
+ scale?: number[];
51
+ /** The model's orientation, given as Euler angles in degrees, for each of the X, Y and Z axis. */
52
+ rotation?: number[];
53
+ /** The model's world transform matrix. Overrides the position, scale and rotation parameters. Relative to ````origin````.*/
54
+ matrix?: number[];
55
+ /** Indicates if Scalable Ambient Obscurance (SAO) will apply to the model. SAO is configured by the Scene's {@link SAO} component. Only works when {@link SAO.enabled} is also ````true```` */
56
+ saoEnabled?: boolean;
57
+ /** Indicates if physically-based rendering (PBR) will apply to the model. Only works when {@link Scene.pbrEnabled} is also ````true````. */
58
+ pbrEnabled?: boolean;
59
+ /** When we set this ````true````, then we force rendering of backfaces for the model. */
60
+ backfaces?: boolean;
61
+ /** When loading metadata and this is ````true````, will only load {@link Entity}s that have {@link MetaObject}s (that are not excluded). */
62
+ excludeUnclassifiedObjects?: boolean;
63
+ /** Indicates whether to globalize each {@link Entity.id} and {@link MetaObject.id}, in case you need to prevent ID clashes with other models. */
64
+ globalizeObjectIds?: boolean;
65
+ /** Indicates whether to enable geometry reuse */
66
+ reuseGeometries?: boolean;
63
67
  }
64
68
 
65
69
  export declare interface IXKTDefaultDataSource {
66
- /**
70
+ /**
67
71
  * Gets metamodel JSON.
68
72
  *
69
73
  * @param {String|Number} metaModelSrc Identifies the metamodel JSON asset.
70
74
  * @param {Function(*)} ok Fired on successful loading of the metamodel JSON asset.
71
75
  * @param {Function(*)} error Fired on error while loading the metamodel JSON asset.
72
76
  */
73
- getMetaModel(metaModelSrc: string | number, ok: (json: any)=> void, error: (e: Error)=> void): void;
77
+ getMetaModel(metaModelSrc: string | number, ok: (json: any) => void, error: (e: Error) => void): void;
74
78
 
75
- /**
79
+ /**
76
80
  * Gets the contents of the given ````.xkt```` file in an arraybuffer.
77
81
  *
78
82
  * @param {String|Number} src Path or ID of an ````.xkt```` file.
79
83
  * @param {Function} ok Callback fired on success, argument is the ````.xkt```` file in an arraybuffer.
80
84
  * @param {Function} error Callback fired on error.
81
85
  */
82
- getXKT(src: string | number, ok: (buffer: ArrayBuffer)=> void, error: (e: Error)=> void): void;
86
+ getXKT(src: string | number, ok: (buffer: ArrayBuffer) => void, error: (e: Error) => void): void;
83
87
  }
84
88
 
85
89
  /**
86
90
  * {@link Viewer} plugin that loads models from xeokit's optimized *````.XKT````* format.
87
91
  *
88
92
  */
89
- export declare class XKTLoaderPlugin extends Plugin {
90
- /**
91
- * @constructor
92
- *
93
- * @param {Viewer} viewer The Viewer.
94
- * @param {XKTLoaderPluginConfiguration} cfg Plugin configuration.
95
- */
96
- constructor(viewer: Viewer, cfg?: XKTLoaderPluginConfiguration);
93
+ export declare class XKTLoaderPlugin extends Plugin {
94
+ /**
95
+ * @constructor
96
+ *
97
+ * @param {Viewer} viewer The Viewer.
98
+ * @param {XKTLoaderPluginConfiguration} cfg Plugin configuration.
99
+ */
100
+ constructor(viewer: Viewer, cfg?: XKTLoaderPluginConfiguration);
97
101
 
98
- /**
99
- * Sets a custom data source through which the XKTLoaderPlugin can load models and metadata.
100
- *
101
- * Default value is {@link XKTDefaultDataSource}, which loads via HTTP.
102
- *
103
- * @type {IXKTDefaultDataSource}
104
- */
105
- set dataSource(arg: IXKTDefaultDataSource);
102
+ /**
103
+ * Sets a custom data source through which the XKTLoaderPlugin can load models and metadata.
104
+ *
105
+ * Default value is {@link XKTDefaultDataSource}, which loads via HTTP.
106
+ *
107
+ * @type {IXKTDefaultDataSource}
108
+ */
109
+ set dataSource(arg: IXKTDefaultDataSource);
106
110
 
107
- /**
108
- * Gets the custom data source through which the XKTLoaderPlugin can load models and metadata.
109
- *
110
- * Default value is {@link XKTDefaultDataSource}, which loads via HTTP.
111
- *
112
- * @type {IXKTDefaultDataSource}
113
- */
114
- get dataSource(): IXKTDefaultDataSource;
111
+ /**
112
+ * Gets the custom data source through which the XKTLoaderPlugin can load models and metadata.
113
+ *
114
+ * Default value is {@link XKTDefaultDataSource}, which loads via HTTP.
115
+ *
116
+ * @type {IXKTDefaultDataSource}
117
+ */
118
+ get dataSource(): IXKTDefaultDataSource;
115
119
 
116
- /**
117
- * Sets map of initial default states for each loaded {@link Entity} that represents an object.
118
- *
119
- * @type {IFCObjectDefaults}
120
- */
121
- set objectDefaults(arg: IFCObjectDefaults);
120
+ /**
121
+ * Sets map of initial default states for each loaded {@link Entity} that represents an object.
122
+ *
123
+ * @type {IFCObjectDefaults}
124
+ */
125
+ set objectDefaults(arg: IFCObjectDefaults);
122
126
 
123
- /**
124
- * Gets map of initial default states for each loaded {@link Entity} that represents an object.
125
- *
126
- * @type {IFCObjectDefaults}
127
- */
128
- get objectDefaults(): IFCObjectDefaults;
127
+ /**
128
+ * Gets map of initial default states for each loaded {@link Entity} that represents an object.
129
+ *
130
+ * @type {IFCObjectDefaults}
131
+ */
132
+ get objectDefaults(): IFCObjectDefaults;
129
133
 
130
- /**
131
- * Sets the whitelist of the IFC types loaded by this XKTLoaderPlugin.
132
- *
133
- * When loading models with metadata, causes this XKTLoaderPlugin to only load objects whose types are in this
134
- * list. An object's type is indicated by its {@link MetaObject}'s {@link MetaObject.type}.
135
- *
136
- * Default value is ````undefined````.
137
- *
138
- * @type {String[]}
139
- */
140
- set includeTypes(arg: string[]);
134
+ /**
135
+ * Sets the whitelist of the IFC types loaded by this XKTLoaderPlugin.
136
+ *
137
+ * When loading models with metadata, causes this XKTLoaderPlugin to only load objects whose types are in this
138
+ * list. An object's type is indicated by its {@link MetaObject}'s {@link MetaObject.type}.
139
+ *
140
+ * Default value is ````undefined````.
141
+ *
142
+ * @type {String[]}
143
+ */
144
+ set includeTypes(arg: string[]);
141
145
 
142
- /**
143
- * Gets the whitelist of the IFC types loaded by this XKTLoaderPlugin.
144
- *
145
- * When loading models with metadata, causes this XKTLoaderPlugin to only load objects whose types are in this
146
- * list. An object's type is indicated by its {@link MetaObject}'s {@link MetaObject.type}.
147
- *
148
- * Default value is ````undefined````.
149
- *
150
- * @type {String[]}
151
- */
146
+ /**
147
+ * Gets the whitelist of the IFC types loaded by this XKTLoaderPlugin.
148
+ *
149
+ * When loading models with metadata, causes this XKTLoaderPlugin to only load objects whose types are in this
150
+ * list. An object's type is indicated by its {@link MetaObject}'s {@link MetaObject.type}.
151
+ *
152
+ * Default value is ````undefined````.
153
+ *
154
+ * @type {String[]}
155
+ */
152
156
 
153
- get includeTypes(): string[];
157
+ get includeTypes(): string[];
154
158
 
155
- /**
156
- * Sets the blacklist of IFC types that are never loaded by this XKTLoaderPlugin.
157
- *
158
- * When loading models with metadata, causes this XKTLoaderPlugin to **not** load objects whose types are in this
159
- * list. An object's type is indicated by its {@link MetaObject}'s {@link MetaObject.type}.
160
- *
161
- * Default value is ````undefined````.
162
- *
163
- * @type {String[]}
164
- */
165
- set excludeTypes(arg: string[]);
159
+ /**
160
+ * Sets the blacklist of IFC types that are never loaded by this XKTLoaderPlugin.
161
+ *
162
+ * When loading models with metadata, causes this XKTLoaderPlugin to **not** load objects whose types are in this
163
+ * list. An object's type is indicated by its {@link MetaObject}'s {@link MetaObject.type}.
164
+ *
165
+ * Default value is ````undefined````.
166
+ *
167
+ * @type {String[]}
168
+ */
169
+ set excludeTypes(arg: string[]);
166
170
 
167
- /**
168
- * Gets the blacklist of IFC types that are never loaded by this XKTLoaderPlugin.
169
- *
170
- * When loading models with metadata, causes this XKTLoaderPlugin to **not** load objects whose types are in this
171
- * list. An object's type is indicated by its {@link MetaObject}'s {@link MetaObject.type}.
172
- *
173
- * Default value is ````undefined````.
174
- *
175
- * @type {String[]}
176
- */
177
- get excludeTypes(): string[];
171
+ /**
172
+ * Gets the blacklist of IFC types that are never loaded by this XKTLoaderPlugin.
173
+ *
174
+ * When loading models with metadata, causes this XKTLoaderPlugin to **not** load objects whose types are in this
175
+ * list. An object's type is indicated by its {@link MetaObject}'s {@link MetaObject.type}.
176
+ *
177
+ * Default value is ````undefined````.
178
+ *
179
+ * @type {String[]}
180
+ */
181
+ get excludeTypes(): string[];
178
182
 
179
- /**
180
- * Sets whether we load objects that don't have IFC types.
181
- *
182
- * When loading models with metadata and this is ````true````, XKTLoaderPlugin will not load objects
183
- * that don't have IFC types.
184
- *
185
- * Default value is ````false````.
186
- *
187
- * @type {Boolean}
188
- */
189
- set excludeUnclassifiedObjects(arg: boolean);
183
+ /**
184
+ * Sets whether we load objects that don't have IFC types.
185
+ *
186
+ * When loading models with metadata and this is ````true````, XKTLoaderPlugin will not load objects
187
+ * that don't have IFC types.
188
+ *
189
+ * Default value is ````false````.
190
+ *
191
+ * @type {Boolean}
192
+ */
193
+ set excludeUnclassifiedObjects(arg: boolean);
190
194
 
191
- /**
192
- * Gets whether we load objects that don't have IFC types.
193
- *
194
- * When loading models with metadata and this is ````true````, XKTLoaderPlugin will not load objects
195
- * that don't have IFC types.
196
- *
197
- * Default value is ````false````.
198
- *
199
- * @type {Boolean}
200
- */
201
- get excludeUnclassifiedObjects(): boolean;
195
+ /**
196
+ * Gets whether we load objects that don't have IFC types.
197
+ *
198
+ * When loading models with metadata and this is ````true````, XKTLoaderPlugin will not load objects
199
+ * that don't have IFC types.
200
+ *
201
+ * Default value is ````false````.
202
+ *
203
+ * @type {Boolean}
204
+ */
205
+ get excludeUnclassifiedObjects(): boolean;
202
206
 
203
- /**
204
- * Sets whether XKTLoaderPlugin enables geometry reuse when loading models.
205
- *
206
- * Default value is ````true````.
207
- *
208
- * Geometry reuse saves memory, but can impact Viewer performance when there are many reused geometries. For
209
- * this reason, we can set this ````false```` to disable geometry reuse for models loaded by this XKTLoaderPlugin
210
- * (which will then "expand" the geometry instances into batches instead).
211
- *
212
- * The result will be be less WebGL draw calls (which are expensive), at the cost of increased memory footprint.
213
- *
214
- * See [.769](https://github.com/xeokit/xeokit-sdk/issues/769) for more info.
215
- *
216
- * @type {Boolean}
217
- */
218
- set reuseGeometries(arg: boolean);
207
+ /**
208
+ * Sets whether XKTLoaderPlugin enables geometry reuse when loading models.
209
+ *
210
+ * Default value is ````true````.
211
+ *
212
+ * Geometry reuse saves memory, but can impact Viewer performance when there are many reused geometries. For
213
+ * this reason, we can set this ````false```` to disable geometry reuse for models loaded by this XKTLoaderPlugin
214
+ * (which will then "expand" the geometry instances into batches instead).
215
+ *
216
+ * The result will be be less WebGL draw calls (which are expensive), at the cost of increased memory footprint.
217
+ *
218
+ * See [.769](https://github.com/xeokit/xeokit-sdk/issues/769) for more info.
219
+ *
220
+ * @type {Boolean}
221
+ */
222
+ set reuseGeometries(arg: boolean);
219
223
 
220
- /**
221
- * Gets whether XKTLoaderPlugin enables geometry reuse when loading models.
222
- *
223
- * Default value is ````true````.
224
- *
225
- * @type {Boolean}
226
- */
227
- get reuseGeometries(): boolean;
224
+ /**
225
+ * Gets whether XKTLoaderPlugin enables geometry reuse when loading models.
226
+ *
227
+ * Default value is ````true````.
228
+ *
229
+ * @type {Boolean}
230
+ */
231
+ get reuseGeometries(): boolean;
228
232
 
229
- /**
230
- * Gets the ````.xkt```` format versions supported by this XKTLoaderPlugin/
231
- * @returns {string[]}
232
- */
233
- get supportedVersions(): string[];
233
+ /**
234
+ * Gets the ````.xkt```` format versions supported by this XKTLoaderPlugin/
235
+ * @returns {string[]}
236
+ */
237
+ get supportedVersions(): string[];
234
238
 
235
- /**
236
- * Sets whether XKTLoaderPlugin globalizes each {@link Entity.id} and {@link MetaObject.id} as it loads a model.
237
- *
238
- * Set this ````true```` when you need to load multiple instances of the same model, to avoid ID clashes
239
- * between the objects in the different instances.
240
- *
241
- * When we load a model with this set ````true````, then each {@link Entity.id} and {@link MetaObject.id} will be
242
- * prefixed by the ID of the model, ie. ````<modelId>.<objectId>````.
243
- *
244
- * {@link Entity.originalSystemId} and {@link MetaObject.originalSystemId} will always hold the original, un-prefixed, ID values.
245
- *
246
- * Default value is ````false````.
247
- *
248
- * See the main {@link XKTLoaderPlugin} class documentation for usage info.
249
- *
250
- * @type {Boolean}
251
- */
252
- set globalizeObjectIds(arg: boolean);
239
+ /**
240
+ * Sets whether XKTLoaderPlugin globalizes each {@link Entity.id} and {@link MetaObject.id} as it loads a model.
241
+ *
242
+ * Set this ````true```` when you need to load multiple instances of the same model, to avoid ID clashes
243
+ * between the objects in the different instances.
244
+ *
245
+ * When we load a model with this set ````true````, then each {@link Entity.id} and {@link MetaObject.id} will be
246
+ * prefixed by the ID of the model, ie. ````<modelId>.<objectId>````.
247
+ *
248
+ * {@link Entity.originalSystemId} and {@link MetaObject.originalSystemId} will always hold the original, un-prefixed, ID values.
249
+ *
250
+ * Default value is ````false````.
251
+ *
252
+ * See the main {@link XKTLoaderPlugin} class documentation for usage info.
253
+ *
254
+ * @type {Boolean}
255
+ */
256
+ set globalizeObjectIds(arg: boolean);
253
257
 
254
- /**
255
- * Gets whether XKTLoaderPlugin globalizes each {@link Entity.id} and {@link MetaObject.id} as it loads a model.
256
- *
257
- * Default value is ````false````.
258
- *
259
- * @type {Boolean}
260
- */
261
- get globalizeObjectIds(): boolean;
258
+ /**
259
+ * Gets whether XKTLoaderPlugin globalizes each {@link Entity.id} and {@link MetaObject.id} as it loads a model.
260
+ *
261
+ * Default value is ````false````.
262
+ *
263
+ * @type {Boolean}
264
+ */
265
+ get globalizeObjectIds(): boolean;
262
266
 
263
267
 
264
- /**
265
- * Loads an ````.xkt```` model into this XKTLoaderPlugin's {@link Viewer}.
266
- *
267
- * Since xeokit/xeokit-sdk 1.9.0, XKTLoaderPlugin has supported XKT 8, which bundles the metamodel
268
- * data (eg. an IFC element hierarchy) in the XKT file itself. For XKT 8, we therefore no longer need to
269
- * load the metamodel data from a separate accompanying JSON file, as we did with previous XKT versions.
270
- * However, if we do choose to specify a separate metamodel JSON file to load (eg. for backward compatibility
271
- * in data pipelines), then that metamodel will be loaded and the metamodel in the XKT 8 file will be ignored.
272
- *
273
- * @param {LoadXKTModel} params Loading parameters.
274
- * @returns {VBOSceneModel} Entity representing the model, which will have {@link Entity.isModel} set ````true```` and will be registered by {@link Entity.id} in {@link Scene.models}.
275
- */
276
- load(params: LoadXKTModel): VBOSceneModel;
268
+ /**
269
+ * Loads an ````.xkt```` model into this XKTLoaderPlugin's {@link Viewer}.
270
+ *
271
+ * Since xeokit/xeokit-sdk 1.9.0, XKTLoaderPlugin has supported XKT 8, which bundles the metamodel
272
+ * data (eg. an IFC element hierarchy) in the XKT file itself. For XKT 8, we therefore no longer need to
273
+ * load the metamodel data from a separate accompanying JSON file, as we did with previous XKT versions.
274
+ * However, if we do choose to specify a separate metamodel JSON file to load (eg. for backward compatibility
275
+ * in data pipelines), then that metamodel will be loaded and the metamodel in the XKT 8 file will be ignored.
276
+ *
277
+ * @param {LoadXKTModel} params Loading parameters.
278
+ * @returns {VBOSceneModel} Entity representing the model, which will have {@link Entity.isModel} set ````true```` and will be registered by {@link Entity.id} in {@link Scene.models}.
279
+ */
280
+ load(params: LoadXKTModel): VBOSceneModel;
277
281
  }