@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.
@@ -2603,8 +2603,9 @@ class Config {
2603
2603
  }
2604
2604
 
2605
2605
  class MatterportService {
2606
- constructor(config, router, visibilityService, ngZone) {
2606
+ constructor(config, router, activeRoute, visibilityService, ngZone) {
2607
2607
  this.router = router;
2608
+ this.activeRoute = activeRoute;
2608
2609
  this.visibilityService = visibilityService;
2609
2610
  this.ngZone = ngZone;
2610
2611
  this.slots = []; //SlotNode[] = [];
@@ -3590,21 +3591,20 @@ class MatterportService {
3590
3591
  break;
3591
3592
  case MattertagActionMode.POSITION_DATA:
3592
3593
  if (lastTag) {
3593
- this.router.navigate([`${this.router.url}`], {
3594
- queryParams: { positioning: true },
3594
+ this.router.navigate([], {
3595
+ relativeTo: this.activeRoute,
3596
+ queryParams: { positioning: true }, queryParamsHandling: "merge"
3595
3597
  });
3596
3598
  }
3597
3599
  break;
3598
3600
  case MattertagActionMode.POSITION_ROOM:
3599
3601
  if (lastTag) {
3600
- this.router.navigate([`${this.router.url}`], {
3601
- queryParams: { positioning: true },
3602
+ this.router.navigate([], {
3603
+ relativeTo: this.activeRoute,
3604
+ queryParams: { positioning: true }, queryParamsHandling: "merge"
3602
3605
  });
3603
3606
  }
3604
3607
  break;
3605
- default:
3606
- this.router.navigate([`${this.router.url}`]);
3607
- break;
3608
3608
  }
3609
3609
  }
3610
3610
  /**
@@ -4126,7 +4126,7 @@ class MatterportService {
4126
4126
  this.securityCameraAnimator.toggleViewFrustum();
4127
4127
  }
4128
4128
  }
4129
- 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 });
4129
+ 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 });
4130
4130
  MatterportService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: MatterportService, providedIn: 'root' });
4131
4131
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: MatterportService, decorators: [{
4132
4132
  type: Injectable,
@@ -4137,7 +4137,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImpor
4137
4137
  return [{ type: Config, decorators: [{
4138
4138
  type: Inject,
4139
4139
  args: ['config']
4140
- }] }, { type: i1$1.Router }, { type: BaseVisibilityService }, { type: i0.NgZone }];
4140
+ }] }, { type: i1$1.Router }, { type: i1$1.ActivatedRoute }, { type: BaseVisibilityService }, { type: i0.NgZone }];
4141
4141
  } });
4142
4142
 
4143
4143
  class ViewerService {
@@ -12271,9 +12271,12 @@ class MatterportImportService {
12271
12271
  else {
12272
12272
  console.log('Abandoning import because it was cancelled');
12273
12273
  resolve(false);
12274
+ this.removeFrame();
12274
12275
  break;
12275
12276
  }
12276
12277
  }
12278
+ resolve(true);
12279
+ this.removeFrame();
12277
12280
  }));
12278
12281
  });
12279
12282
  }