@smarterplan/ngx-smarterplan-core 1.2.25 → 1.2.27
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-import.service.mjs +4 -1
- package/esm2020/lib/services/matterport.service.mjs +11 -11
- package/fesm2015/smarterplan-ngx-smarterplan-core.mjs +13 -10
- package/fesm2015/smarterplan-ngx-smarterplan-core.mjs.map +1 -1
- package/fesm2020/smarterplan-ngx-smarterplan-core.mjs +13 -10
- package/fesm2020/smarterplan-ngx-smarterplan-core.mjs.map +1 -1
- package/lib/services/matterport.service.d.ts +3 -2
- package/package.json +1 -1
|
@@ -2487,8 +2487,9 @@ class Config {
|
|
|
2487
2487
|
}
|
|
2488
2488
|
|
|
2489
2489
|
class MatterportService {
|
|
2490
|
-
constructor(config, router, visibilityService, ngZone) {
|
|
2490
|
+
constructor(config, router, activeRoute, visibilityService, ngZone) {
|
|
2491
2491
|
this.router = router;
|
|
2492
|
+
this.activeRoute = activeRoute;
|
|
2492
2493
|
this.visibilityService = visibilityService;
|
|
2493
2494
|
this.ngZone = ngZone;
|
|
2494
2495
|
this.slots = []; //SlotNode[] = [];
|
|
@@ -3442,21 +3443,20 @@ class MatterportService {
|
|
|
3442
3443
|
break;
|
|
3443
3444
|
case MattertagActionMode.POSITION_DATA:
|
|
3444
3445
|
if (lastTag) {
|
|
3445
|
-
this.router.navigate([
|
|
3446
|
-
|
|
3446
|
+
this.router.navigate([], {
|
|
3447
|
+
relativeTo: this.activeRoute,
|
|
3448
|
+
queryParams: { positioning: true }, queryParamsHandling: "merge"
|
|
3447
3449
|
});
|
|
3448
3450
|
}
|
|
3449
3451
|
break;
|
|
3450
3452
|
case MattertagActionMode.POSITION_ROOM:
|
|
3451
3453
|
if (lastTag) {
|
|
3452
|
-
this.router.navigate([
|
|
3453
|
-
|
|
3454
|
+
this.router.navigate([], {
|
|
3455
|
+
relativeTo: this.activeRoute,
|
|
3456
|
+
queryParams: { positioning: true }, queryParamsHandling: "merge"
|
|
3454
3457
|
});
|
|
3455
3458
|
}
|
|
3456
3459
|
break;
|
|
3457
|
-
default:
|
|
3458
|
-
this.router.navigate([`${this.router.url}`]);
|
|
3459
|
-
break;
|
|
3460
3460
|
}
|
|
3461
3461
|
}
|
|
3462
3462
|
/**
|
|
@@ -3956,7 +3956,7 @@ class MatterportService {
|
|
|
3956
3956
|
this.securityCameraAnimator.toggleViewFrustum();
|
|
3957
3957
|
}
|
|
3958
3958
|
}
|
|
3959
|
-
MatterportService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: MatterportService, deps: [{ token: 'config' }, { token: i1$1.Router }, { token: BaseVisibilityService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3959
|
+
MatterportService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: MatterportService, deps: [{ token: 'config' }, { token: i1$1.Router }, { token: i1$1.ActivatedRoute }, { token: BaseVisibilityService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3960
3960
|
MatterportService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: MatterportService, providedIn: 'root' });
|
|
3961
3961
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: MatterportService, decorators: [{
|
|
3962
3962
|
type: Injectable,
|
|
@@ -3966,7 +3966,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImpor
|
|
|
3966
3966
|
}], ctorParameters: function () { return [{ type: Config, decorators: [{
|
|
3967
3967
|
type: Inject,
|
|
3968
3968
|
args: ['config']
|
|
3969
|
-
}] }, { type: i1$1.Router }, { type: BaseVisibilityService }, { type: i0.NgZone }]; } });
|
|
3969
|
+
}] }, { type: i1$1.Router }, { type: i1$1.ActivatedRoute }, { type: BaseVisibilityService }, { type: i0.NgZone }]; } });
|
|
3970
3970
|
|
|
3971
3971
|
/* eslint-disable no-await-in-loop */
|
|
3972
3972
|
class ViewerService {
|
|
@@ -11611,9 +11611,12 @@ class MatterportImportService {
|
|
|
11611
11611
|
else {
|
|
11612
11612
|
console.log('Abandoning import because it was cancelled');
|
|
11613
11613
|
resolve(false);
|
|
11614
|
+
this.removeFrame();
|
|
11614
11615
|
break;
|
|
11615
11616
|
}
|
|
11616
11617
|
}
|
|
11618
|
+
resolve(true);
|
|
11619
|
+
this.removeFrame();
|
|
11617
11620
|
});
|
|
11618
11621
|
}
|
|
11619
11622
|
async getUploadedImageCount(modelID) {
|