@smarterplan/ngx-smarterplan-core 1.2.32 → 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.
@@ -3829,8 +3829,11 @@ class MatterportService {
3829
3829
  modelNode.obj3D.rotation.set(obj.rotation.x, obj.rotation.y, obj.rotation.z);
3830
3830
  modelNode.obj3D.scale.set(obj.scale.x, obj.scale.y, obj.scale.z);
3831
3831
  if (isAzimuthalCrown) {
3832
- modelNode.obj3D.scale.set(obj.scale.x / 5000, obj.scale.y / 5000, obj.scale.z / 5000);
3832
+ /*if(modelNode.obj3D.scale.x >= 1.0){
3833
+ modelNode.obj3D.scale.set(obj.scale.x/5000, obj.scale.y/5000, obj.scale.z/5000);
3834
+ }*/
3833
3835
  this.azimuthalCrown = modelNode;
3836
+ this.displayAzimutalCrown();
3834
3837
  }
3835
3838
  // By defaut, during creation, object has translation gizmo
3836
3839
  // => User has to click on lateral panel, and save its position after playing with it!
@@ -3846,6 +3849,8 @@ class MatterportService {
3846
3849
  }
3847
3850
  this.lastObject3D = modelNode.obj3D;
3848
3851
  // Store this in memory Map dictionnary
3852
+ console.log("Adding object: ");
3853
+ console.log(modelNode);
3849
3854
  this.dictionnaryObjects3D.set(modelNode.obj3D.uuid, modelNode);
3850
3855
  this.dictionnarySceneObjects3D.set(modelNode.obj3D.uuid, sceneObject);
3851
3856
  /*this.sdk.Camera.pose.subscribe(
@@ -3936,12 +3941,15 @@ class MatterportService {
3936
3941
  resolve(this.lastObject3D);
3937
3942
  });
3938
3943
  }
3944
+ toggleObjectVisibility(objectId) {
3945
+ let obj = this.dictionnaryObjects3D.get(objectId);
3946
+ obj.obj3D.visible = !obj.obj3D.visible;
3947
+ //return obj.obj3D.visible;
3948
+ }
3939
3949
  getSceneNodeFromObject3DId(uuid) {
3940
3950
  return this.dictionnarySceneObjects3D.get(uuid);
3941
3951
  }
3942
3952
  async displayAzimutalCrown() {
3943
- //this.azimutalCrown.position.set(this.poseCamera.position.x+.5,this.poseCamera.position.y+.5,this.poseCamera.position.z+.5)
3944
- console.log("helooooooo!!!!");
3945
3953
  if (this.azimuthalCrown) {
3946
3954
  this.azimuthalCrown.obj3D.position.set(this.poseCamera.position.x, this.poseCamera.position.y, this.poseCamera.position.z);
3947
3955
  }