shop-components 0.1.48 → 0.1.50
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.
package/dist/shop-components.mjs
CHANGED
|
@@ -62209,7 +62209,7 @@ var hK = Object.defineProperty, uK = Object.getOwnPropertyDescriptor, Xv = (n, A
|
|
|
62209
62209
|
};
|
|
62210
62210
|
class fK extends Ie {
|
|
62211
62211
|
constructor() {
|
|
62212
|
-
super(), this._box3 = new ve(), this._line11 = new gf("长:"), this._line12 = new gf("宽:"), this._line13 = new gf("高:"), this._outline = new qS(0, 0), this._radius = 0, this._hasWidthConfig = !1, this._hasLengthConfig = !1, this._hasHeightConfig = !1, this.follow = "", this.followOrigin = 0, this.followScale = 1, this.originOffset = 0, this.translateCache = 0, this._changeSize = DR((A) => {
|
|
62212
|
+
super(), this._box3 = new ve(), this._line11 = new gf("长:"), this._line12 = new gf("宽:"), this._line13 = new gf("高:"), this._outline = new qS(0, 0), this._radius = 0, this._hasWidthConfig = !1, this._hasLengthConfig = !1, this._hasHeightConfig = !1, this.follow = "", this.followOrigin = 0, this.followScale = 1, this.originOffset = 0, this.translateCache = 0, this.head = 0, this.tail = 0, this._changeSize = DR((A) => {
|
|
62213
62213
|
this._line11.updateSize(A), this._line12.updateSize(A), this._line13.updateSize(A);
|
|
62214
62214
|
}, 100), this._change = () => {
|
|
62215
62215
|
if (!this._app)
|
|
@@ -62254,7 +62254,7 @@ class fK extends Ie {
|
|
|
62254
62254
|
if (!this._object)
|
|
62255
62255
|
return;
|
|
62256
62256
|
const e = this._object, { box: t, maxRadius: i, hasLength: r, hasHeight: s, hasWidth: o } = cS(e);
|
|
62257
|
-
this._hasWidthConfig = o, this._hasLengthConfig = r, this._hasHeightConfig = s, this._box3.copy(t), this._radius = i, this.follow && A && (this.originOffset = (this.followOrigin - A) * this.followScale), this._outline.update(this._radius), this._change();
|
|
62257
|
+
this.tail = Math.abs(t.min.x), this.head = Math.abs(t.max.x), this._hasWidthConfig = o, this._hasLengthConfig = r, this._hasHeightConfig = s, this._box3.copy(t), this._radius = i, this.follow && A && (this.originOffset = (this.followOrigin - A) * this.followScale), this._outline.update(this._radius), this._change();
|
|
62258
62258
|
const a = this._box3.min.x, l = this._box3.max.x, u = this._box3.min.z, c = this._box3.max.z, h = this._box3.min.y, f = this._box3.max.y;
|
|
62259
62259
|
let p = 0.3;
|
|
62260
62260
|
const m = new O(a, 0, u), d = new O(l, 0, u);
|
|
@@ -65121,11 +65121,11 @@ class cH {
|
|
|
65121
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) {
|
|
65122
65122
|
this.sampleCount < this.maxSample ? this.sampleCount++ : this.pathTracer.pausePathTracing = !0, this.pathTracer.renderSample();
|
|
65123
65123
|
const i = this.renderer.autoClear;
|
|
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;
|
|
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);
|
|
65125
65125
|
} else
|
|
65126
65126
|
this.amr.slots.forEach((i) => {
|
|
65127
65127
|
this._dragging ? i.getCanInstall() && i.render(this) : i.render(this);
|
|
65128
|
-
}), Ds.update(), this.controls.update(), this.css2dRenderer.render(this.scene, this.camera), this.updatePosition(), this.scene.overrideMaterial = null, this.
|
|
65128
|
+
}), Ds.update(), this.controls.update(), this.css2dRenderer.render(this.scene, this.camera), this.updatePosition(), this.scene.overrideMaterial = null, this._composer.render();
|
|
65129
65129
|
this.stats.end();
|
|
65130
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(
|
|
65131
65131
|
"vec3 CustomToneMapping( vec3 color ) { return color; }",
|