@smarterplan/ngx-smarterplan-core 1.2.33 → 1.2.34

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.
@@ -3849,6 +3849,8 @@ class MatterportService {
3849
3849
  }
3850
3850
  this.lastObject3D = modelNode.obj3D;
3851
3851
  // Store this in memory Map dictionnary
3852
+ console.log("Adding object: ");
3853
+ console.log(modelNode);
3852
3854
  this.dictionnaryObjects3D.set(modelNode.obj3D.uuid, modelNode);
3853
3855
  this.dictionnarySceneObjects3D.set(modelNode.obj3D.uuid, sceneObject);
3854
3856
  /*this.sdk.Camera.pose.subscribe(
@@ -3939,6 +3941,11 @@ class MatterportService {
3939
3941
  resolve(this.lastObject3D);
3940
3942
  });
3941
3943
  }
3944
+ toggleObjectVisibility(objectId) {
3945
+ let obj = this.dictionnaryObjects3D.get(objectId);
3946
+ obj.obj3D.visible = !obj.obj3D.visible;
3947
+ //return obj.obj3D.visible;
3948
+ }
3942
3949
  getSceneNodeFromObject3DId(uuid) {
3943
3950
  return this.dictionnarySceneObjects3D.get(uuid);
3944
3951
  }