shop-components 0.1.1 → 0.1.2
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.
|
@@ -65,7 +65,7 @@ export declare class Amr extends Object3D {
|
|
|
65
65
|
width: number;
|
|
66
66
|
height: number;
|
|
67
67
|
}): void;
|
|
68
|
-
|
|
68
|
+
setShelfLevel(levelMax?: number): void;
|
|
69
69
|
generateOuterLine(): void;
|
|
70
70
|
generateController(m: Object3D, amr: Object3D): void;
|
|
71
71
|
generateDimension(m: Object3D, amr: Object3D): void;
|
package/dist/shop-components.mjs
CHANGED
|
@@ -34207,10 +34207,10 @@ class dO extends yt {
|
|
|
34207
34207
|
A && (this._object = A), this.update(t);
|
|
34208
34208
|
}
|
|
34209
34209
|
show() {
|
|
34210
|
-
this.visible = !0, this.traverse((A) => A.visible = !0);
|
|
34210
|
+
this.visible = !0, this._outline.visible = !0, this.traverse((A) => A.visible = !0);
|
|
34211
34211
|
}
|
|
34212
34212
|
hide() {
|
|
34213
|
-
this.visible = !1, this.traverse((A) => A.visible = !1);
|
|
34213
|
+
this.visible = !1, this._outline.visible = !1, this.traverse((A) => A.visible = !1);
|
|
34214
34214
|
}
|
|
34215
34215
|
dispose() {
|
|
34216
34216
|
var A;
|
|
@@ -34560,7 +34560,7 @@ class wO extends yt {
|
|
|
34560
34560
|
this.shapeKeys.has(r) && (this.sizeBox.follow = r, this.sizeBox.followOrigin = this._shapeKeys.get(r) || 0, this.sizeBox.followScale = t.userData[s]);
|
|
34561
34561
|
}
|
|
34562
34562
|
});
|
|
34563
|
-
}), A.updateMatrixWorld(!0), this._container.add(A), this.sizeBox.generate(A), this.sizeBox.show(), this.
|
|
34563
|
+
}), A.updateMatrixWorld(!0), this._container.add(A), this.sizeBox.generate(A), this.sizeBox.show(), this.setShelfLevel();
|
|
34564
34564
|
}
|
|
34565
34565
|
// 设置长宽高,针对可配置的车体生效
|
|
34566
34566
|
setHeight(A) {
|
|
@@ -34600,7 +34600,7 @@ class wO extends yt {
|
|
|
34600
34600
|
});
|
|
34601
34601
|
}
|
|
34602
34602
|
// 设置料箱料斗层数
|
|
34603
|
-
|
|
34603
|
+
setShelfLevel(A = 3) {
|
|
34604
34604
|
if (!this._shelf)
|
|
34605
34605
|
return;
|
|
34606
34606
|
const { shelfLevel: t, levelOffset: e } = this._shelf.userData || {};
|