@xeokit/xeokit-sdk 2.6.46 → 2.6.48

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xeokit/xeokit-sdk",
3
- "version": "2.6.46",
3
+ "version": "2.6.48",
4
4
  "description": "Web Programming Toolkit for 3D/2D BIM and AEC Graphics",
5
5
  "module": "./dist/xeokit-sdk.es.js",
6
6
  "main": "./dist/xeokit-sdk.cjs.js",
@@ -126,9 +126,9 @@ class MetaModel {
126
126
  * The {@link MetaObject}s in this MetaModel, each mapped to its ID.
127
127
  *
128
128
  * @property metaObjects
129
- * @type {MetaObject[]}
129
+ * @type {{String:MetaObject}}
130
130
  */
131
- this.metaObjects = [];
131
+ this.metaObjects = {};
132
132
 
133
133
  /**
134
134
  * Connectivity graph.
@@ -227,7 +227,7 @@ class MetaModel {
227
227
  this.metaScene.metaObjects[id] = metaObject;
228
228
  metaObject.metaModels = [];
229
229
  }
230
- this.metaObjects.push(metaObject);
230
+ this.metaObjects[id] =metaObject;
231
231
  if (!metaObjectData.parent) {
232
232
  this.rootMetaObjects.push(metaObject);
233
233
  metaScene.rootMetaObjects[id] = metaObject;
@@ -351,8 +351,9 @@ class MetaModel {
351
351
  metaObjects: [],
352
352
  propertySets: []
353
353
  };
354
- for (let i = 0, len = this.metaObjects.length; i < len; i++) {
355
- const metaObject = this.metaObjects[i];
354
+ const metaObjectsList = Object.values(this.metaObjects);
355
+ for (let i = 0, len = metaObjectsList.length; i < len; i++) {
356
+ const metaObject = metaObjectsList[i];
356
357
  const metaObjectCfg = {
357
358
  id: metaObject.id,
358
359
  originalSystemId: metaObject.originalSystemId,