@smarterplan/ngx-smarterplan-core 1.2.12 → 1.2.14

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.
@@ -11378,7 +11378,7 @@ class MatterportImportService {
11378
11378
  this.importingImages = new Subject();
11379
11379
  this.sweepProcessedCount = new Subject();
11380
11380
  this.totalSweepsCount = new Subject();
11381
- this.MAX_SCANS_RELOAD = 5;
11381
+ this.MAX_SCANS_RELOAD = 500;
11382
11382
  }
11383
11383
  get spaceID() {
11384
11384
  return this._spaceID;
@@ -11411,10 +11411,11 @@ class MatterportImportService {
11411
11411
  const element = document.querySelector('#viewer-frame');
11412
11412
  element.append(iframe);
11413
11413
  this.currentFrame = iframe;
11414
+ const showcaseWindow = iframe.contentWindow;
11414
11415
  return new Promise((res, rej) => {
11415
11416
  iframe.addEventListener('load', async () => {
11416
11417
  try {
11417
- this.sdk = await window.MP_SDK.connect(iframe, 'qn9wsasuy5h2fzrbrn1nzr0id', '3.11');
11418
+ this.sdk = await showcaseWindow.MP_SDK.connect(iframe, 'qn9wsasuy5h2fzrbrn1nzr0id', '3.11');
11418
11419
  // Subscribe to Floor data
11419
11420
  this.sdk.Floor.data.subscribe({
11420
11421
  onCollectionUpdated: function upd(collection) {