@smarterplan/ngx-smarterplan-core 1.2.26 → 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.
@@ -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([`${this.router.url}`], {
3446
- queryParams: { positioning: true },
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([`${this.router.url}`], {
3453
- queryParams: { positioning: true },
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 {