shop-components 0.1.44 → 0.1.45
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
|
@@ -57448,7 +57448,7 @@ class lI extends Iv {
|
|
|
57448
57448
|
const i = this.props.follows.get(A);
|
|
57449
57449
|
if (i) {
|
|
57450
57450
|
let r = "x";
|
|
57451
|
-
A === "height" ? r = "y" :
|
|
57451
|
+
A === "height" ? r = "y" : ["width", "liftOuterWidth"].includes(A) && (r = "z");
|
|
57452
57452
|
const s = ((t = this.props.slot) == null ? void 0 : t.position[r]) > 0 ? 1 : -1;
|
|
57453
57453
|
this._wrapper.position[r] = (e - i.origin) * i.scale * s;
|
|
57454
57454
|
}
|
|
@@ -62533,7 +62533,7 @@ class mK extends Ie {
|
|
|
62533
62533
|
init(A) {
|
|
62534
62534
|
this._app = A, this.sizeBox.init(A), this.addEventListener("shape-key-changed", (e, t) => {
|
|
62535
62535
|
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) => {
|
|
62536
|
-
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));
|
|
62536
|
+
i instanceof Pe && !i.userData.isDevice && !i.userData.isBracket && i.geometry.translate(this.sizeBox.originOffset - this.sizeBox.translateCache, 0, 0), i instanceof lI && !i.props.slot.userData.ignoreOriginChanged && i.parent && i.parent.position.add(new O(this.sizeBox.originOffset - this.sizeBox.translateCache, 0, 0));
|
|
62537
62537
|
}), 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);
|
|
62538
62538
|
});
|
|
62539
62539
|
}
|