shop-components 0.1.42 → 0.1.43
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
|
@@ -62528,7 +62528,7 @@ class mK extends Ie {
|
|
|
62528
62528
|
this._app = A, this.sizeBox.init(A), this.addEventListener("shape-key-changed", (e, t) => {
|
|
62529
62529
|
this._slots.forEach((i) => i.shapeKeyChanged(e, t)), this.sizeBox.follow === e ? (this.sizeBox.generate(this._container, t), this.sizeBox.originOffset && (this._container.traverse((i) => {
|
|
62530
62530
|
i instanceof Pe && !i.userData.isDevice && !i.userData.isBracket && i.geometry.translate(this.sizeBox.originOffset - this.sizeBox.translateCache, 0, 0), i instanceof lI && i.parent && i.parent.position.add(new O(this.sizeBox.originOffset - this.sizeBox.translateCache, 0, 0));
|
|
62531
|
-
}), this.sizeBox.translateCache = this.sizeBox.originOffset, this.sizeBox.generate(this._container))) : this.sizeBox.generate(this._container);
|
|
62531
|
+
}), this.sizeBox.translateCache = this.sizeBox.originOffset, this.sizeBox.generate(this._container))) : this.sizeBox.generate(this._container), ["width", "length", "height"].includes(e) && this._emitter.emit("size-changed", e, t);
|
|
62532
62532
|
});
|
|
62533
62533
|
}
|
|
62534
62534
|
async load(A) {
|
|
@@ -62542,7 +62542,7 @@ class mK extends Ie {
|
|
|
62542
62542
|
return;
|
|
62543
62543
|
e = i.glb;
|
|
62544
62544
|
}
|
|
62545
|
-
this._generateAmr(e.clone(!0)), e = null;
|
|
62545
|
+
this._generateAmr(e.clone(!0)), e = null, this._emitter.emit("amr-loaded");
|
|
62546
62546
|
}
|
|
62547
62547
|
changeSkin(A, e) {
|
|
62548
62548
|
A && (A.change(e), this._app && this._app.usePathTracing && (this._app.sampleCount = 0, this._app.pathTracer.reset(), this._app.pathTracer.updateMaterials()));
|