@smarterplan/ngx-smarterplan-core 1.2.35 → 1.2.36
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/esm2020/lib/services/matterport.service.mjs +15 -12
- package/fesm2015/smarterplan-ngx-smarterplan-core.mjs +13 -11
- package/fesm2015/smarterplan-ngx-smarterplan-core.mjs.map +1 -1
- package/fesm2020/smarterplan-ngx-smarterplan-core.mjs +13 -11
- package/fesm2020/smarterplan-ngx-smarterplan-core.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -3908,9 +3908,9 @@ class MatterportService {
|
|
|
3908
3908
|
var node = sceneObject.addNode();
|
|
3909
3909
|
// TODO change this 🤮
|
|
3910
3910
|
node.addComponent('mp.lights');
|
|
3911
|
-
node.addComponent('mp.lights');
|
|
3912
|
-
node.addComponent('mp.lights');
|
|
3913
|
-
node.addComponent('mp.lights')
|
|
3911
|
+
//node.addComponent('mp.lights');
|
|
3912
|
+
/*node.addComponent('mp.lights');
|
|
3913
|
+
node.addComponent('mp.lights');*/
|
|
3914
3914
|
node.start();
|
|
3915
3915
|
const nodeControl = sceneObject.addNode();
|
|
3916
3916
|
this.objectControl = nodeControl.addComponent('mp.transformControls');
|
|
@@ -3983,6 +3983,16 @@ class MatterportService {
|
|
|
3983
3983
|
console.log('Format not supported');
|
|
3984
3984
|
break;
|
|
3985
3985
|
}
|
|
3986
|
+
//cache system (i'll try to make it work later ...)
|
|
3987
|
+
/*let objContentsJSON = JSON.stringify(modelNode);
|
|
3988
|
+
console.log(modelNode);
|
|
3989
|
+
console.log(objContentsJSON);
|
|
3990
|
+
console.log(JSON.stringify(modelNode));
|
|
3991
|
+
localStorage.setItem(`testObj_${obj.object}`, objContentsJSON);
|
|
3992
|
+
console.log("stored ?!");
|
|
3993
|
+
console.log(typeof modelNode);*/
|
|
3994
|
+
//let dataS = serialijse.serialize(modelNode);
|
|
3995
|
+
//console.log(dataS);
|
|
3986
3996
|
// Use 3 ?! Ambient lightings
|
|
3987
3997
|
if (this.noLightForObjects) {
|
|
3988
3998
|
const lightsNode = sceneObject.addNode();
|
|
@@ -4020,14 +4030,6 @@ class MatterportService {
|
|
|
4020
4030
|
//console.log(modelNode);
|
|
4021
4031
|
this.dictionnaryObjects3D.set(modelNode.obj3D.uuid, modelNode);
|
|
4022
4032
|
this.dictionnarySceneObjects3D.set(modelNode.obj3D.uuid, sceneObject);
|
|
4023
|
-
/*const poiObject = {
|
|
4024
|
-
coordinate: JSON.stringify(obj.position),
|
|
4025
|
-
type: PoiType.OBJECT3D,
|
|
4026
|
-
elementID: modelNode.obj3D.uuid, //todo: be careful with this
|
|
4027
|
-
} as POI;
|
|
4028
|
-
const objectDb = {id: modelNode.obj3D.uuid} as DbObjectType;
|
|
4029
|
-
|
|
4030
|
-
this.createMattertagFromPOI(PoiType.OBJECT3D, objectDb, poiObject);*/
|
|
4031
4033
|
/*this.sdk.Camera.pose.subscribe(
|
|
4032
4034
|
function (pose: any) {
|
|
4033
4035
|
//console.log("in callback")
|