shop-components 0.1.1 → 0.1.4
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
|
@@ -29356,7 +29356,7 @@ var EI = {};
|
|
|
29356
29356
|
})();
|
|
29357
29357
|
/*!
|
|
29358
29358
|
* Spatial Plugin - Adds support for stereo and 3D audio where Web Audio is supported.
|
|
29359
|
-
*
|
|
29359
|
+
*
|
|
29360
29360
|
* howler.js v2.2.4
|
|
29361
29361
|
* howlerjs.com
|
|
29362
29362
|
*
|
|
@@ -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;
|
|
@@ -34449,7 +34449,7 @@ class wO extends yt {
|
|
|
34449
34449
|
}
|
|
34450
34450
|
init(A) {
|
|
34451
34451
|
this._app = A, this.sizeBox.init(A), this.addEventListener("shape-key-changed", (t, e) => {
|
|
34452
|
-
this._slots.forEach((i) => i.shapeKeyChanged(t, e)), this.sizeBox.follow === t ? (this.sizeBox.generate(this._container, e), this.sizeBox.originOffset && (this._container.traverse((i) => {
|
|
34452
|
+
this._slots.forEach((i) => i.shapeKeyChanged(t, e)), this.sizeBox.follow === t ? (this.sizeBox.generate(this._container, e), this.sizeBox.originOffset && (console.log(this.sizeBox.originOffset, this.sizeBox.translateCache), this._container.traverse((i) => {
|
|
34453
34453
|
if (i instanceof qt && i.geometry.translate(this.sizeBox.originOffset - this.sizeBox.translateCache, 0, 0), i instanceof Sm) {
|
|
34454
34454
|
const s = new E(this.sizeBox.originOffset, 0, 0).applyQuaternion(i.parent.quaternion);
|
|
34455
34455
|
i.position.add(s);
|
|
@@ -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 || {};
|
|
@@ -36474,7 +36474,7 @@ class eb {
|
|
|
36474
36474
|
}
|
|
36475
36475
|
class C5 extends eb {
|
|
36476
36476
|
constructor() {
|
|
36477
|
-
const A = new Worker(new URL("
|
|
36477
|
+
const A = new Worker(new URL("./assets/generateMeshBVH.worker-NFSCTTDt.js", import.meta.url), { type: "module" });
|
|
36478
36478
|
super(A), this.name = "GenerateMeshBVHWorker";
|
|
36479
36479
|
}
|
|
36480
36480
|
runTask(A, t, e = {}) {
|
|
@@ -36519,7 +36519,7 @@ class C5 extends eb {
|
|
|
36519
36519
|
const ib = typeof navigator < "u" ? navigator.hardwareConcurrency : 4;
|
|
36520
36520
|
class x5 extends eb {
|
|
36521
36521
|
constructor() {
|
|
36522
|
-
const A = new Worker(new URL("
|
|
36522
|
+
const A = new Worker(new URL("./assets/parallelMeshBVH.worker-TP6qJGKX.js", import.meta.url), { type: "module" });
|
|
36523
36523
|
if (super(A), this.name = "ParallelMeshBVHWorker", this.maxWorkerCount = Math.max(ib, 4), !x0())
|
|
36524
36524
|
throw new Error("ParallelMeshBVHWorker: Shared Array Buffers are not supported.");
|
|
36525
36525
|
}
|
|
@@ -58469,7 +58469,7 @@ R2.defaultStyle = {
|
|
|
58469
58469
|
fontFamily: "Arial",
|
|
58470
58470
|
/**
|
|
58471
58471
|
* See {@link PIXI.TextStyle.fontSize}
|
|
58472
|
-
* @type {number|string}
|
|
58472
|
+
* @type {number|string}
|
|
58473
58473
|
*/
|
|
58474
58474
|
fontSize: 26,
|
|
58475
58475
|
/**
|
|
@@ -58510,7 +58510,7 @@ R2.defaultStyle = {
|
|
|
58510
58510
|
/** See {@link PIXI.TextStyle.strokeThickness} */
|
|
58511
58511
|
strokeThickness: 0,
|
|
58512
58512
|
/**
|
|
58513
|
-
* See {@link PIXI.TextStyle.textBaseline}
|
|
58513
|
+
* See {@link PIXI.TextStyle.textBaseline}
|
|
58514
58514
|
* @type {'alphabetic'|'top'|'hanging'|'middle'|'ideographic'|'bottom'}
|
|
58515
58515
|
*/
|
|
58516
58516
|
textBaseline: "alphabetic",
|