shop-components 0.1.47 → 0.1.49

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.
@@ -54,6 +54,7 @@ export declare class Amr extends Object3D {
54
54
  length: number;
55
55
  height: number;
56
56
  };
57
+ get goodsSize(): ObjectSize;
57
58
  get showController(): boolean;
58
59
  set showController(s: boolean);
59
60
  get slots(): Slot[];
@@ -62488,6 +62488,9 @@ class vK extends Ie {
62488
62488
  height: A.y
62489
62489
  };
62490
62490
  }
62491
+ get goodsSize() {
62492
+ return this._goodsSize;
62493
+ }
62491
62494
  get showController() {
62492
62495
  return this._showController;
62493
62496
  }
@@ -62555,7 +62558,7 @@ class vK extends Ie {
62555
62558
  this._generateAmr(e.clone(!0)), e = null, this._emitter.emit("amr-loaded");
62556
62559
  }
62557
62560
  changeSkin(A, e) {
62558
- A && (A.change(e), this._app && this._app.usePathTracing && (this._app.sampleCount = 0, this._app.pathTracer.reset(), this._app.pathTracer.updateMaterials()));
62561
+ A && (A.change(e), this._app && this._app.usePathTracing && (this._app.sampleCount = 0, this._app.usePathTracing && (this._app.pathTracer.pausePathTracing = !1, this._app.pathTracer.updateMaterials())));
62559
62562
  }
62560
62563
  changeLogo(A, e) {
62561
62564
  A.change(e.url, new uA(e.scaleX, e.scaleY), new uA(
@@ -65118,11 +65121,11 @@ class cH {
65118
65121
  if (this.usePathTracing || (this._fpsCache.length > this._fpsCacheMax && this._fpsCache.shift(), this._fpsCache.push(t)), this.renderer.domElement.dispatchEvent(new CustomEvent("ticker")), requestAnimationFrame(this.ticker), this.renderer.autoClear = !1, this.renderer.clear(), this.usePathTracing) {
65119
65122
  this.sampleCount < this.maxSample ? this.sampleCount++ : this.pathTracer.pausePathTracing = !0, this.pathTracer.renderSample();
65120
65123
  const i = this.renderer.autoClear;
65121
- this.renderer.autoClear = !1, this.scene.overrideMaterial = KF, this.renderer.clearDepth(), this.renderer.render(this.scene, this.camera), this.scene.overrideMaterial = null, this.renderer.render(this.overlayScene, this.camera), this.renderer.autoClear = i;
65124
+ this.renderer.autoClear = !1, this.scene.overrideMaterial = KF, this.renderer.clearDepth(), this.renderer.render(this.scene, this.camera), this.scene.overrideMaterial = null, this.renderer.render(this.overlayScene, this.camera), this.renderer.autoClear = i, this.renderer.render(this.overlayScene, this.camera);
65122
65125
  } else
65123
65126
  this.amr.slots.forEach((i) => {
65124
65127
  this._dragging ? i.getCanInstall() && i.render(this) : i.render(this);
65125
- }), Ds.update(), this.controls.update(), this.css2dRenderer.render(this.scene, this.camera), this.updatePosition(), this.scene.overrideMaterial = null, this.renderer.render(this.scene, this.camera), this.renderer.render(this.overlayScene, this.camera);
65128
+ }), Ds.update(), this.controls.update(), this.css2dRenderer.render(this.scene, this.camera), this.updatePosition(), this.scene.overrideMaterial = null, this._composer.render();
65126
65129
  this.stats.end();
65127
65130
  }, this.stats.showPanel(0), this.hideState(), A.fov && (this.camera.fov = A.fov, this.camera.updateProjectionMatrix()), this._ground.visible = !1, this.controls = new GE(this.camera, this.renderer.domElement), this.controls.enablePan = !1, this.controls.rotateSpeed = 0.5, this.controls.dampingFactor = t2, this.controls.enableDamping = !0, this.controls.maxDistance = 5, this.controls.minDistance = 1, this.controls.zoomSpeed = bR() ? 0.2 : 1, this.renderer.setPixelRatio(window.devicePixelRatio || 1), this.renderer.autoClear = !0, this.renderer.toneMapping = W0, this.renderer.toneMappingExposure = 1.2, this.renderer.outputColorSpace = ke, this.renderer.localClippingEnabled = !0, this.css2dRenderer.domElement.style.pointerEvents = "none", this.css2dRenderer.domElement.style.position = "absolute", this.css2dRenderer.domElement.style.top = "0px", ae.tonemapping_pars_fragment = ae.tonemapping_pars_fragment.replace(
65128
65131
  "vec3 CustomToneMapping( vec3 color ) { return color; }",