@xeokit/xeokit-sdk 2.5.2-beta-29 → 2.5.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xeokit/xeokit-sdk",
3
- "version": "2.5.2-beta-29",
3
+ "version": "2.5.2-beta-32",
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",
@@ -53,7 +53,7 @@
53
53
  "@loaders.gl/gltf": "^3.2.6",
54
54
  "@loaders.gl/las": "^3.2.6",
55
55
  "html2canvas": "^1.4.1",
56
- "web-ifc": "^0.0.41"
56
+ "web-ifc": "^0.0.51"
57
57
  },
58
58
  "devDependencies": {
59
59
  "@babel/core": "^7.18.6",
@@ -750,7 +750,7 @@ class WebIFCLoaderPlugin extends Plugin {
750
750
  }
751
751
 
752
752
  _parseSpatialChildren(ctx, ifcElement, parentMetaObjectId) {
753
- const metaObjectType = ifcElement.__proto__.constructor.name;
753
+ const metaObjectType = this._ifcAPI.GetNameFromTypeCode(ifcElement.type);
754
754
  if (ctx.includeTypes && (!ctx.includeTypes[metaObjectType])) {
755
755
  return;
756
756
  }
@@ -765,7 +765,7 @@ class WebIFCLoaderPlugin extends Plugin {
765
765
 
766
766
  _createMetaObject(ctx, ifcElement, parentMetaObjectId) {
767
767
  const id = ifcElement.GlobalId.value;
768
- const metaObjectType = ifcElement.__proto__.constructor.name;
768
+ const metaObjectType = this._ifcAPI.GetNameFromTypeCode(ifcElement.type);
769
769
  const metaObjectName = (ifcElement.Name && ifcElement.Name.value !== "") ? ifcElement.Name.value : metaObjectType;
770
770
  const metaObject = {
771
771
  id: id,