@smarterplan/ngx-smarterplan-core 1.2.36 → 1.2.38

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.
@@ -3480,7 +3480,16 @@ class MatterportService {
3480
3480
  });
3481
3481
  }
3482
3482
  getObject3DModelNodeFromDictionnary(uuid) {
3483
- return this.dictionnaryObjects3D.get(uuid);
3483
+ let obj = this.dictionnaryObjects3D.get(uuid);
3484
+ if (!obj) {
3485
+ console.log("weird thing again");
3486
+ return null;
3487
+ }
3488
+ //might break things or fix everything ..?
3489
+ if (obj.obj3D.uuid != uuid) {
3490
+ console.log("we have THE problem");
3491
+ obj.obj3D.uuid = uuid;
3492
+ }
3484
3493
  }
3485
3494
  /**
3486
3495
  * Creates MattertagData and start repositioning (creates temporary mattertag that follows the cursor)
@@ -4122,7 +4131,10 @@ class MatterportService {
4122
4131
  toggleObjectVisibility(objectId) {
4123
4132
  let obj = this.dictionnaryObjects3D.get(objectId);
4124
4133
  obj.obj3D.visible = !obj.obj3D.visible;
4125
- //return obj.obj3D.visible;
4134
+ }
4135
+ isObjectVisible(objectId) {
4136
+ let obj = this.dictionnaryObjects3D.get(objectId);
4137
+ return obj.obj3D.visible;
4126
4138
  }
4127
4139
  pointCameraTo3DObject(objectId) {
4128
4140
  return __awaiter(this, void 0, void 0, function* () {