shop-components 0.1.60 → 0.1.61

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.
@@ -62589,7 +62589,7 @@ class pK extends Ie {
62589
62589
  });
62590
62590
  }
62591
62591
  async load(A) {
62592
- this._url = A, this.name = A.substring(A.lastIndexOf("/") + 1, A.lastIndexOf(".")), !A.startsWith("blob") && A.endsWith(".sglb");
62592
+ this._url = A, this.name || (this.name = A.substring(A.lastIndexOf("/") + 1, A.lastIndexOf("."))), !A.startsWith("blob") && A.endsWith(".sglb");
62593
62593
  let e;
62594
62594
  if (A.endsWith(".glb"))
62595
62595
  e = (await Nc.loadAsync(A)).scene;
@@ -65196,11 +65196,9 @@ class rH {
65196
65196
  }
65197
65197
  async download() {
65198
65198
  return this.usePathTracing ? Promise.resolve(this.renderer.domElement.toDataURL("image/png")) : new Promise((A, e) => {
65199
- this.amr.sizeBox.hide();
65200
- const t = this.amr.bodyOpacity;
65201
- this.amr.bodyOpacity = 1, setTimeout(() => {
65202
- const i = this.renderer.domElement.toDataURL("image/png");
65203
- return this.amr.sizeBox.show(), this.amr.bodyOpacity = t, A(i);
65199
+ this.amr.sizeBox.hide(), setTimeout(() => {
65200
+ const t = this.renderer.domElement.toDataURL("image/png");
65201
+ return this.amr.sizeBox.show(), A(t);
65204
65202
  }, this.fpsAverage);
65205
65203
  });
65206
65204
  }