@colijnit/homedecorator 261.20.2 → 262.1.0

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.
@@ -19031,8 +19031,7 @@ class UtilsService {
19031
19031
  // Now you can use the `imageData` URL for display or download
19032
19032
  // this._downloadImage(`${object.name}_thumbnail.jpg`, imageData);
19033
19033
  }
19034
- _downloadImage(fileName, imageData) {
19035
- // Create a link and trigger the download
19034
+ downloadImage(fileName, imageData) {
19036
19035
  const link = document.createElement('a');
19037
19036
  link.href = imageData;
19038
19037
  link.download = fileName;
@@ -29110,7 +29109,7 @@ class NewRenderService {
29110
29109
  };
29111
29110
  scene.name = 'mrp_room_' + scene.uuid;
29112
29111
  const glb = await this._getGlbFromObject(scene, options);
29113
- this._utilsService.downloadFile(scene.name + '.glb', new Blob([glb], { type: 'model/gltf-binary' }));
29112
+ // this._utilsService.downloadFile(scene.name + '.glb', new Blob([glb], {type: 'model/gltf-binary'}));
29114
29113
  ObjectUtils.DisposeObject(scene);
29115
29114
  scene = null;
29116
29115
  return glb;
@@ -29206,7 +29205,7 @@ class NewRenderService {
29206
29205
  // }
29207
29206
  // }
29208
29207
  async _handleAjaxRender(data) {
29209
- this.blenderRenderStarted.emit();
29208
+ this.blenderRenderStarted.next(true);
29210
29209
  const result = await axios({
29211
29210
  headers: {
29212
29211
  'Content-Type': 'application/json'
@@ -29230,7 +29229,7 @@ class NewRenderService {
29230
29229
  }
29231
29230
  }
29232
29231
  async _handleAjaxGlbRender(data, preview = false) {
29233
- this.blenderRenderStarted.emit();
29232
+ this.blenderRenderStarted.next(true);
29234
29233
  let host = this._settingsService.settings.renderParameters.host;
29235
29234
  if (host) {
29236
29235
  if (!host.endsWith('/')) {
@@ -29255,8 +29254,7 @@ class NewRenderService {
29255
29254
  this.messageService.emit(MessageType.BlenderRenderPreviewReady, result.data.image);
29256
29255
  }
29257
29256
  else {
29258
- const file = new Blob([result.data.image], { type: 'image/jpg' });
29259
- this._utilsService.downloadFile(`test.jpg`, file);
29257
+ this._utilsService.downloadImage(`render.jpg`, result.data.image);
29260
29258
  this.messageService.emit(MessageType.HideLoadingIndicator);
29261
29259
  }
29262
29260
  }
@@ -29264,6 +29262,8 @@ class NewRenderService {
29264
29262
  this.renderImageChanged.next('');
29265
29263
  this.renderImageError.next(this._dictionaryService.get('BLENDER_PRODUCT_RENDER_ERROR'));
29266
29264
  }
29265
+ // Remove the loading indicator.
29266
+ this._messageBusService.emit(MessageType.RenderUploadFinished, true);
29267
29267
  }
29268
29268
  }
29269
29269
  }
@@ -34281,7 +34281,7 @@ class RenderControlsComponent {
34281
34281
  </div>
34282
34282
  }
34283
34283
  <rp-render-progress
34284
- [title]="'UPLOADING' | localize"
34284
+ [title]="'PREPARE_TO_RENDER' | localize"
34285
34285
  [show]="startUploading"
34286
34286
  >
34287
34287
  </rp-render-progress>
@@ -34511,7 +34511,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
34511
34511
  </div>
34512
34512
  }
34513
34513
  <rp-render-progress
34514
- [title]="'UPLOADING' | localize"
34514
+ [title]="'PREPARE_TO_RENDER' | localize"
34515
34515
  [show]="startUploading"
34516
34516
  >
34517
34517
  </rp-render-progress>