@operato/scene-storage 10.0.0-beta.56 → 10.0.0-beta.58
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/CHANGELOG.md +33 -0
- package/dist/crane.js +13 -7
- package/dist/crane.js.map +1 -1
- package/dist/rack-grid-cell.d.ts +4 -1
- package/dist/rack-grid.js +3 -3
- package/dist/rack-grid.js.map +1 -1
- package/dist/spot.js +2 -0
- package/dist/spot.js.map +1 -1
- package/dist/stockpile-3d.d.ts +0 -5
- package/dist/stockpile-3d.js +89 -93
- package/dist/stockpile-3d.js.map +1 -1
- package/dist/stockpile-grid-3d.js +5 -1
- package/dist/stockpile-grid-3d.js.map +1 -1
- package/dist/stockpile-grid.js +3 -3
- package/dist/stockpile-grid.js.map +1 -1
- package/dist/stockpile.d.ts +12 -0
- package/dist/stockpile.js +22 -3
- package/dist/stockpile.js.map +1 -1
- package/dist/storage-rack.js +3 -3
- package/dist/storage-rack.js.map +1 -1
- package/package.json +3 -3
- package/src/crane.ts +14 -7
- package/src/rack-grid.ts +3 -3
- package/src/spot.ts +2 -0
- package/src/stockpile-3d.ts +76 -106
- package/src/stockpile-grid-3d.ts +5 -1
- package/src/stockpile-grid.ts +3 -3
- package/src/stockpile.ts +35 -4
- package/src/storage-rack.ts +3 -3
- package/tsconfig.tsbuildinfo +1 -1
package/dist/rack-grid.js
CHANGED
|
@@ -30,7 +30,7 @@ import { __decorate } from "tslib";
|
|
|
30
30
|
* - cellId = `${col-1}-${row-1}-${shelf-1}` (0-based, 3 segments) — *grid + shelf*
|
|
31
31
|
* - 자식 StorageRack 내부에서는 `0-0-${shelf-1}` (자체 cellId 형식). RackGrid 가 변환.
|
|
32
32
|
*/
|
|
33
|
-
import { Component, ContainerAbstract, Layout, Model, sceneComponent } from '@hatiolab/things-scene';
|
|
33
|
+
import { Component, ContainerAbstract, Holdable, Layout, Model, sceneComponent } from '@hatiolab/things-scene';
|
|
34
34
|
import * as THREE from 'three';
|
|
35
35
|
import { CarrierHolder, Placeable, RecordStorage, SlotTarget, componentBoundingBox } from '@operato/scene-base';
|
|
36
36
|
import { RackGrid3D } from './rack-grid-3d.js';
|
|
@@ -156,7 +156,7 @@ const rowControlHandler = {
|
|
|
156
156
|
// handler 안 `this` 가 *해당 RackGrid 인스턴스* 를 가리키도록 (화살표 함수가
|
|
157
157
|
// getter 의 `this` 를 capture). rack-table-cell 의 동일 패턴.
|
|
158
158
|
// ─── RackGrid ─────────────────────────────────────────────────────────────────
|
|
159
|
-
let RackGrid = class RackGrid extends RecordStorage()(CarrierHolder(Placeable(ContainerAbstract))) {
|
|
159
|
+
let RackGrid = class RackGrid extends RecordStorage()(Holdable(CarrierHolder(Placeable(ContainerAbstract)))) {
|
|
160
160
|
// RecordStorage mixin hook overrides.
|
|
161
161
|
// record.cellId 가 slotId (3-segment '{col}-{row}-{shelf}' format).
|
|
162
162
|
_recordToSlotId(record) {
|
|
@@ -1120,7 +1120,7 @@ let RackGrid = class RackGrid extends RecordStorage()(CarrierHolder(Placeable(Co
|
|
|
1120
1120
|
zPos: cellBottomY
|
|
1121
1121
|
};
|
|
1122
1122
|
const carrier = new CarrierClass(carrierState, this._app);
|
|
1123
|
-
this.
|
|
1123
|
+
this.addHolding(carrier); // transient carrier → _holdings (§1.2)
|
|
1124
1124
|
// 3D 강제 빌드 + holder attach + manual placement/anchor.
|
|
1125
1125
|
void carrier.realObject;
|
|
1126
1126
|
carrier.applyHolderAttachPoint?.();
|