@crystaldesign/real-time-viewer 25.10.0 → 25.11.0-beta.10

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.
@@ -46,9 +46,10 @@ import { Matrix as Matrix$1, Vector3 as Vector3$1 } from '@babylonjs/core/Maths/
46
46
  import { EngineFactory } from '@babylonjs/core/Engines/engineFactory';
47
47
  import { Scene } from '@babylonjs/core/scene';
48
48
  import { DracoCompression } from '@babylonjs/core/Meshes/Compression/dracoCompression';
49
- import { LoadAssetContainerAsync } from '@babylonjs/core/Loading/index';
49
+ import { loadAssetContainerAsync } from '@babylonjs/core/Loading/index';
50
50
  import '@babylonjs/loaders/glTF/2.0/';
51
51
  import { UniversalCamera } from '@babylonjs/core/Cameras/universalCamera';
52
+ import { toJS } from 'mobx';
52
53
  import { jsx } from 'react/jsx-runtime';
53
54
 
54
55
  (function() {
@@ -301,6 +302,7 @@ function GetCameraControls(camera) {
301
302
  function getGridControls(scene, element, selected, elements, selectMesh) {
302
303
  var gridStore = useGridStoreContext();
303
304
  var utilStore = useUtilStoreContext();
305
+ var sceneStore = useSceneStoreContext();
304
306
  var _curGrid = selected;
305
307
  var onGridMove = function onGridMove(ev) {
306
308
  var _scene$activeCamera, _scene$getMeshById$me, _scene$getMeshById, _Tags$GetTags;
@@ -317,7 +319,7 @@ function getGridControls(scene, element, selected, elements, selectMesh) {
317
319
  return el === null || el === void 0 ? void 0 : el.bbn.name.endsWith(metadata.elementId + '.' + startGridIdx + '.' + startShelfIdx);
318
320
  })) === null || _elements$find === void 0 ? void 0 : _elements$find.bbn.name) !== null && _elements$find$bbn$na !== void 0 ? _elements$find$bbn$na : '');
319
321
  } else if (metadata.type == 'BOX') {
320
- actualHQRObj = selected;
322
+ actualHQRObj = scene.getTransformNodeByName(sceneStore.getElementById(metadata.elementId).name);
321
323
  }
322
324
  if (!actualHQRObj) return;
323
325
  var mouseX = ev.clientX;
@@ -370,7 +372,6 @@ function getGridControls(scene, element, selected, elements, selectMesh) {
370
372
  (_utilStore$viewHandle = utilStore.viewHandler) === null || _utilStore$viewHandle === void 0 || _utilStore$viewHandle.divaWebPlanner.moveShelfItemToGrid(accessoireBasketId, curBasketId, gridName, curShelfIdx);
371
373
  }
372
374
  Tags.GetTags(_curGrid);
373
- //selectMesh(_curGrid, curGridIdx, curShelfIdx, curBasketId, tags.includes('disableDelete'), tags.includes('disableMove'));
374
375
  (_scene$activeCamera2 = scene.activeCamera) === null || _scene$activeCamera2 === void 0 || _scene$activeCamera2.attachControl();
375
376
  };
376
377
  element === null || element === void 0 || element.addEventListener('pointermove', onGridMove, false);
@@ -378,16 +379,21 @@ function getGridControls(scene, element, selected, elements, selectMesh) {
378
379
  };
379
380
  var registerBox = function registerBox() {
380
381
  var _onGridMoveOut2 = function onGridMoveOut() {
381
- var _scene$activeCamera3, _curGrid4;
382
+ var _curGrid4, _scene$activeCamera3, _utilStore$viewHandle2;
382
383
  element === null || element === void 0 || element.removeEventListener('pointermove', onGridMove, false);
383
384
  element === null || element === void 0 || element.removeEventListener('pointerup', _onGridMoveOut2, false);
384
- (_scene$activeCamera3 = scene.activeCamera) === null || _scene$activeCamera3 === void 0 || _scene$activeCamera3.attachControl();
385
385
  _curGrid = scene.getMeshByName((_curGrid4 = _curGrid) === null || _curGrid4 === void 0 ? void 0 : _curGrid4.name);
386
386
  if (!_curGrid) return;
387
- /* Wait for dedicated function this only works when moved to nearby grid where copy works
388
- utilStore.onElementDeleted(_curGrid.metadata.setId, _curGrid.metadata.elementId)
389
- utilStore.viewHandler?.viewPlannerHandler.onElementCopy(_curGrid.metadata.setId, _curGrid.metadata.elementId, _curGrid.metadata.direction);
390
- */
387
+ var r = _curGrid.name.split('_');
388
+ (_scene$activeCamera3 = scene.activeCamera) === null || _scene$activeCamera3 === void 0 || _scene$activeCamera3.attachControl();
389
+ if (_curGrid.name == selected.name) return;
390
+ (_utilStore$viewHandle2 = utilStore.viewHandler) === null || _utilStore$viewHandle2 === void 0 || _utilStore$viewHandle2.viewPlannerHandler.onElementCopy(_curGrid.metadata.setId, _curGrid.metadata.elementId, {
391
+ x: Number(r[1]),
392
+ y: Number(r[2]),
393
+ z: 0
394
+ }).then(function () {
395
+ return utilStore.onElementDeleted(selected.metadata.setId, selected.metadata.elementId);
396
+ });
391
397
  };
392
398
  element === null || element === void 0 || element.addEventListener('pointermove', onGridMove, false);
393
399
  element === null || element === void 0 || element.addEventListener('pointerup', _onGridMoveOut2, false);
@@ -424,18 +430,18 @@ function Grids () {
424
430
  grid.matrix.forEach(function (c) {
425
431
  c.forEach(function (cell) {
426
432
  var _cell$plannedElement$, _cell$plannedElement, _cell$plannedElement$2, _cell$plannedElement2, _gp$selectedElement;
427
- if (!gp.selectedElement && !cell.plannedElement) return; // no selection=no planning; can only delete existing
433
+ if (!gp.selectedElement) return; // no selection=no planning; can only delete existing
428
434
  var name = 'box_' + cell.index.x + '_' + cell.index.y;
429
435
  var size = (_cell$plannedElement$ = (_cell$plannedElement = cell.plannedElement) === null || _cell$plannedElement === void 0 ? void 0 : _cell$plannedElement.size) !== null && _cell$plannedElement$ !== void 0 ? _cell$plannedElement$ : gp.selectedElement.size;
430
- var pos = new Vector3(-size.width * cell.index.x / 100, (size.height * cell.index.y + size.height / 2) / 100, (size.depth + size.depth / 2) / 100);
436
+ var pos = new Vector3(size.width * cell.index.x / 100, (size.height * cell.index.y + size.height / 2) / 100, 0);
431
437
  createPreviewBox('box', name, {
432
- width: size.width / 100,
433
- height: size.height / 100,
434
- depth: size.depth / 100
435
- }, pos, 0, true, true, undefined, {
438
+ width: (size.width + 1) / 100,
439
+ height: (size.height + 1) / 100,
440
+ depth: (size.depth + 1) / 100
441
+ }, pos, 0, !cell.plannedElement, !cell.plannedElement, undefined, {
436
442
  elementId: (_cell$plannedElement$2 = (_cell$plannedElement2 = cell.plannedElement) === null || _cell$plannedElement2 === void 0 ? void 0 : _cell$plannedElement2.elementId) !== null && _cell$plannedElement$2 !== void 0 ? _cell$plannedElement$2 : (_gp$selectedElement = gp.selectedElement) === null || _gp$selectedElement === void 0 ? void 0 : _gp$selectedElement.elementId,
437
443
  setId: key,
438
- direction: 'LEFT',
444
+ direction: cell.index.y > 0 ? 'TOP' : cell.index.x < 0 ? 'LEFT' : 'RIGHT',
439
445
  type: 'BOX'
440
446
  });
441
447
  });
@@ -642,7 +648,8 @@ function Grids () {
642
648
  return onPreviewClick(gridStore.getSelectedGrid());
643
649
  }));
644
650
  fakeBBox.actionManager.registerAction(new ExecuteCodeAction(ActionManager.OnPickDownTrigger, function () {
645
- return gridStore.selectedGrid == gridStore.getSelectedGrid() && noMove == false && gridStore.onGridMove(gridStore.getSelectedGrid());
651
+ var _gridStore$selectedGr, _gridStore$getSelecte;
652
+ return ((_gridStore$selectedGr = gridStore.selectedGrid) === null || _gridStore$selectedGr === void 0 ? void 0 : _gridStore$selectedGr.id) == ((_gridStore$getSelecte = gridStore.getSelectedGrid()) === null || _gridStore$getSelecte === void 0 ? void 0 : _gridStore$getSelecte.id) && noMove == false && gridStore.onGridMove(gridStore.getSelectedGrid());
646
653
  }));
647
654
  fakeBBox.actionManager.registerAction(new ExecuteCodeAction(ActionManager.OnPointerOutTrigger, function () {
648
655
  return box.edgesWidth = 0.2;
@@ -654,14 +661,26 @@ function Grids () {
654
661
  }
655
662
  function onPreviewClick(mesh) {
656
663
  var tag = Tags.GetTags(mesh);
657
- if (tag.includes('grid')) onGridClick(tag, mesh);else if (tag.includes('box')) onBoxClick(tag, mesh);
664
+ if (tag.includes('grid')) {
665
+ onGridClick(tag, mesh);
666
+ } else if (tag.includes('box')) {
667
+ onBoxClick(tag, mesh);
668
+ gridStore.selectBox(mesh);
669
+ }
658
670
  }
659
671
  function onBoxClick(tag, mesh) {
660
- var _utilStore$viewHandle;
661
- (_utilStore$viewHandle = utilStore.viewHandler) === null || _utilStore$viewHandle === void 0 || _utilStore$viewHandle.viewPlannerHandler.onElementCopy(mesh.metadata.setId, mesh.metadata.elementId, mesh.metadata.direction);
672
+ if (tag.includes('free')) {
673
+ var _utilStore$viewHandle;
674
+ var r = mesh.name.split('_');
675
+ (_utilStore$viewHandle = utilStore.viewHandler) === null || _utilStore$viewHandle === void 0 || _utilStore$viewHandle.viewPlannerHandler.onElementCopy(mesh.metadata.setId, mesh.metadata.elementId, {
676
+ x: Number(r[1]),
677
+ y: Number(r[2]),
678
+ z: 0
679
+ });
680
+ }
662
681
  }
663
682
  function onGridClick(tag, mesh) {
664
- var _gridStore$selectedGr;
683
+ var _gridStore$selectedGr2;
665
684
  if (!utilStore.viewHandler) return;
666
685
  var _ref3 = gridStore.getDataFromGridName(mesh.name, mesh.metadata.elementId),
667
686
  basketId = _ref3.parentBasketId,
@@ -679,7 +698,7 @@ function Grids () {
679
698
  var accessorie = grid.accessories.find(function (accessorie) {
680
699
  return accessorie.index == shelfIdx;
681
700
  });
682
- if (tag.includes('free') && mesh.id !== ((_gridStore$selectedGr = gridStore.selectedGrid) === null || _gridStore$selectedGr === void 0 ? void 0 : _gridStore$selectedGr.id)) {
701
+ if (tag.includes('free') && mesh.id !== ((_gridStore$selectedGr2 = gridStore.selectedGrid) === null || _gridStore$selectedGr2 === void 0 ? void 0 : _gridStore$selectedGr2.id)) {
683
702
  gridStore.selectGrid(mesh, gridIdx, shelfIdx, basketId, tag.includes('disableDelete'), tag.includes('disableMove'));
684
703
  utilStore.viewHandler.paletteViewHandler.addAccessorieOnShelfPlannerView(gridIdx, shelfIdx, basketId);
685
704
  } else {
@@ -767,10 +786,20 @@ var GridStore = /*#__PURE__*/function () {
767
786
  this._gridControls = getGridControls(this._sceneStore.scene, this._sceneStore.scene.getEngine().getRenderingCanvas(), this._sceneStore.scene.getMeshByName(box.name), this._sceneStore.elements, this.selectGrid.bind(this));
768
787
  this._gridControls.registerGrid(parentBasketId, gridIdx, shelfIdx, accessoireBasketId);
769
788
  } else if (this._type == 'BoxPlanner') {
770
- this._gridControls = getGridControls(this._sceneStore.scene, this._sceneStore.scene.getEngine().getRenderingCanvas(), this._sceneStore.scene.getTransformNodeByName(box.name), this._sceneStore.elements, this.selectGrid.bind(this));
789
+ this._gridControls = getGridControls(this._sceneStore.scene, this._sceneStore.scene.getEngine().getRenderingCanvas(), this._sceneStore.scene.getMeshByName(box.name), this._sceneStore.elements, this.selectGrid.bind(this));
771
790
  this._gridControls.registerBox();
772
791
  }
773
792
  }
793
+ }, {
794
+ key: "selectBox",
795
+ value: function selectBox(mesh) {
796
+ this._sceneStore.scene.getMeshesByTags('box').forEach(function (mesh) {
797
+ return mesh.edgesWidth = 0.2;
798
+ });
799
+ mesh.edgesWidth = 0.7;
800
+ mesh.enableEdgesRendering();
801
+ this._selectedGrid = mesh;
802
+ }
774
803
  }, {
775
804
  key: "selectGrid",
776
805
  value: function selectGrid(mesh, gridIdx, shelfIdx, basketId, disableDelete, disableMove) {
@@ -805,7 +834,7 @@ var GridStore = /*#__PURE__*/function () {
805
834
  }
806
835
  return _context.abrupt("return");
807
836
  case 4:
808
- this.getGrids(freePlaces, this._plannedPlacesOnGrids, true, true);
837
+ this.getGrids('ShelfPlanner', undefined, freePlaces, this._plannedPlacesOnGrids, true, true);
809
838
  case 5:
810
839
  case "end":
811
840
  return _context.stop();
@@ -838,7 +867,7 @@ var GridStore = /*#__PURE__*/function () {
838
867
  key: "rerenderGrids",
839
868
  value: function rerenderGrids() {
840
869
  if (!this._freePlacesOnGrids || !this._plannedPlacesOnGrids) return;
841
- this.getGrids(this._freePlacesOnGrids, this._plannedPlacesOnGrids);
870
+ this.getGrids('ShelfPlanner', undefined, this._freePlacesOnGrids, this._plannedPlacesOnGrids);
842
871
  }
843
872
  }, {
844
873
  key: "_buildPlannedOptions",
@@ -853,55 +882,36 @@ var GridStore = /*#__PURE__*/function () {
853
882
  return res;
854
883
  }
855
884
  }, {
856
- key: "getGrids1",
885
+ key: "getGrids",
857
886
  value: function () {
858
- var _getGrids = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2(generalPlanningState, callback) {
887
+ var _getGrids = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2(type, generalPlanningState, freePlacesOnGrids, plannedPlacesOnGrids, doNotRelod, doNotOverwrite, callback) {
888
+ var _this$_viewHandler4;
889
+ var _this$_viewHandler3, _this$_sceneStore$api, res;
859
890
  return _regeneratorRuntime.wrap(function _callee2$(_context2) {
860
891
  while (1) switch (_context2.prev = _context2.next) {
861
- case 0:
862
- this._generalPlanningState = generalPlanningState;
863
- if (!this._grid) this._grid = Grids();
864
- this._grid.deleteAllGrids();
865
- this._grid.setupPreviewBoxs(generalPlanningState);
866
- callback();
867
- case 5:
868
- case "end":
869
- return _context2.stop();
870
- }
871
- }, _callee2, this);
872
- }));
873
- function getGrids1(_x3, _x4) {
874
- return _getGrids.apply(this, arguments);
875
- }
876
- return getGrids1;
877
- }()
878
- }, {
879
- key: "getGrids",
880
- value: function () {
881
- var _getGrids2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3(freePlacesOnGrids, plannedPlacesOnGrids, doNotRelod, doNotOverwrite) {
882
- var _this$_viewHandler3, _this$_viewHandler4;
883
- var _this$_sceneStore$api, res;
884
- return _regeneratorRuntime.wrap(function _callee3$(_context3) {
885
- while (1) switch (_context3.prev = _context3.next) {
886
892
  case 0:
887
893
  if (!this._grid) this._grid = Grids();
894
+ if (!(type == 'ShelfPlanner')) {
895
+ _context2.next = 18;
896
+ break;
897
+ }
888
898
  if (!(!((_this$_viewHandler3 = this._viewHandler) !== null && _this$_viewHandler3 !== void 0 && _this$_viewHandler3.tabgroupTypeActive('SHELFPLANNER')) || !freePlacesOnGrids && !plannedPlacesOnGrids)) {
889
- _context3.next = 5;
899
+ _context2.next = 6;
890
900
  break;
891
901
  }
892
902
  this._grid.deleteAllGrids();
893
903
  this._uiStore.removeGridGui();
894
- return _context3.abrupt("return");
895
- case 5:
904
+ return _context2.abrupt("return");
905
+ case 6:
896
906
  if (!(!doNotRelod && plannedPlacesOnGrids && JSON.stringify(plannedPlacesOnGrids[0].plannedOptions) != JSON.stringify(this._plannedOptions))) {
897
- _context3.next = 15;
907
+ _context2.next = 16;
898
908
  break;
899
909
  }
900
910
  this._plannedOptions = this._buildPlannedOptions(plannedPlacesOnGrids);
901
911
  plannedPlacesOnGrids.forEach(function (pP) {
902
912
  return pP.shelf3DName;
903
913
  });
904
- _context3.next = 10;
914
+ _context2.next = 11;
905
915
  return fetch(((_this$_sceneStore$api = this._sceneStore.apiConfig) === null || _this$_sceneStore$api === void 0 ? void 0 : _this$_sceneStore$api.constructorService) + '/articles/grids/all?catalogCodex=' + plannedPlacesOnGrids[0].catalogCodex + '&catalogILN=' + plannedPlacesOnGrids[0].iln + '&debug=' + !!this._sceneStore.apiConfig.useDebugUrl, {
906
916
  headers: {
907
917
  Authorization: "Bearer ".concat(this._sceneStore.jwt),
@@ -913,41 +923,56 @@ var GridStore = /*#__PURE__*/function () {
913
923
  freePlacesOnGrids: freePlacesOnGrids !== null && freePlacesOnGrids !== void 0 ? freePlacesOnGrids : []
914
924
  })
915
925
  });
916
- case 10:
917
- res = _context3.sent;
926
+ case 11:
927
+ res = _context2.sent;
918
928
  this._plannedOptions = this._buildPlannedOptions(plannedPlacesOnGrids);
919
- _context3.next = 14;
929
+ _context2.next = 15;
920
930
  return res.json();
921
- case 14:
922
- this._allGrids = _context3.sent;
923
931
  case 15:
932
+ this._allGrids = _context2.sent;
933
+ case 16:
934
+ _context2.next = 25;
935
+ break;
936
+ case 18:
937
+ this._generalPlanningState = generalPlanningState;
938
+ if (!this._grid) this._grid = Grids();
939
+ this._grid.deleteAllGrids();
940
+ if (generalPlanningState) {
941
+ _context2.next = 23;
942
+ break;
943
+ }
944
+ return _context2.abrupt("return");
945
+ case 23:
946
+ this._grid.setupPreviewBoxs(generalPlanningState);
947
+ callback === null || callback === void 0 || callback();
948
+ case 25:
924
949
  if (this._allGrids) {
925
- _context3.next = 17;
950
+ _context2.next = 27;
926
951
  break;
927
952
  }
928
- return _context3.abrupt("return");
929
- case 17:
953
+ return _context2.abrupt("return");
954
+ case 27:
930
955
  if (!(!((_this$_viewHandler4 = this._viewHandler) !== null && _this$_viewHandler4 !== void 0 && _this$_viewHandler4.tabgroupTypeActive('SHELFPLANNER')) || !freePlacesOnGrids && !plannedPlacesOnGrids)) {
931
- _context3.next = 21;
956
+ _context2.next = 31;
932
957
  break;
933
958
  }
934
959
  this._grid.deleteAllGrids();
935
960
  this._uiStore.removeGridGui();
936
- return _context3.abrupt("return");
937
- case 21:
961
+ return _context2.abrupt("return");
962
+ case 31:
938
963
  if (plannedPlacesOnGrids) this._grid.setupPreviewGrids(this._allGrids, plannedPlacesOnGrids, freePlacesOnGrids);
939
964
  if (!doNotOverwrite) {
940
965
  this._freePlacesOnGrids = freePlacesOnGrids;
941
966
  this._plannedPlacesOnGrids = plannedPlacesOnGrids;
942
967
  }
943
- case 23:
968
+ case 33:
944
969
  case "end":
945
- return _context3.stop();
970
+ return _context2.stop();
946
971
  }
947
- }, _callee3, this);
972
+ }, _callee2, this);
948
973
  }));
949
- function getGrids(_x5, _x6, _x7, _x8) {
950
- return _getGrids2.apply(this, arguments);
974
+ function getGrids(_x3, _x4, _x5, _x6, _x7, _x8, _x9) {
975
+ return _getGrids.apply(this, arguments);
951
976
  }
952
977
  return getGrids;
953
978
  }()
@@ -1426,8 +1451,8 @@ var SceneStore = /*#__PURE__*/function () {
1426
1451
  return undefined;
1427
1452
  }
1428
1453
  }, {
1429
- key: "getElementNameById",
1430
- value: function getElementNameById(id) {
1454
+ key: "getElementById",
1455
+ value: function getElementById(id) {
1431
1456
  var _this$_sceneConstruct6, _this$_sceneConstruct7;
1432
1457
  if (!((_this$_sceneConstruct6 = this._sceneConstruct.root) !== null && _this$_sceneConstruct6 !== void 0 && _this$_sceneConstruct6.sets)) return undefined;
1433
1458
  var _iterator7 = _createForOfIteratorHelper$7((_this$_sceneConstruct7 = this._sceneConstruct.root) === null || _this$_sceneConstruct7 === void 0 ? void 0 : _this$_sceneConstruct7.sets),
@@ -1443,7 +1468,7 @@ var SceneStore = /*#__PURE__*/function () {
1443
1468
  var nm = element.bbn.name;
1444
1469
  var elementPos = nm.slice(nm.lastIndexOf('E') + 1, nm.length);
1445
1470
  if (elementPos == id.toString()) {
1446
- return element.bbn.name;
1471
+ return element.bbn;
1447
1472
  }
1448
1473
  }
1449
1474
  } catch (err) {
@@ -1713,7 +1738,7 @@ var SceneStore = /*#__PURE__*/function () {
1713
1738
  });
1714
1739
  case 2:
1715
1740
  res = _context.sent;
1716
- setGlb(res.files['fileName.glb']);
1741
+ setGlb(res.glTFFiles['fileName.glb']);
1717
1742
  case 4:
1718
1743
  case "end":
1719
1744
  return _context.stop();
@@ -1831,7 +1856,14 @@ function SelHandler (_ref) {
1831
1856
  var element = hit === null || hit === void 0 ? void 0 : hit.pickedMesh;
1832
1857
  clearTimeout(timeoutId);
1833
1858
  timeoutId = setTimeout(function () {
1859
+ var _element$metadata;
1834
1860
  var res = utilStore.findParentElementAndSet(element);
1861
+ if (hit && element && ((_element$metadata = element.metadata) === null || _element$metadata === void 0 ? void 0 : _element$metadata.type) == 'BOX') {
1862
+ element = sceneStore.getElementById(element.metadata.elementId);
1863
+ if (!element) throw new Error("can't find element of box on selection");
1864
+ onElementSelected(sceneStore.scene.getTransformNodeByName(element.name), hit);
1865
+ return;
1866
+ }
1835
1867
  if (res.element) {
1836
1868
  element = res.element;
1837
1869
  pickedElement = true;
@@ -2410,7 +2442,11 @@ var UIStore = /*#__PURE__*/function () {
2410
2442
  });
2411
2443
  target.onPointerClickObservable.add(function () {
2412
2444
  var _this10$_onElementCop;
2413
- return (_this10$_onElementCop = _this10._onElementCopy) === null || _this10$_onElementCop === void 0 ? void 0 : _this10$_onElementCop.call(_this10, elementInfo.setId, elementInfo.elementId, 'LEFT');
2445
+ return (_this10$_onElementCop = _this10._onElementCopy) === null || _this10$_onElementCop === void 0 ? void 0 : _this10$_onElementCop.call(_this10, elementInfo.setId, elementInfo.elementId, {
2446
+ x: -1,
2447
+ y: 0,
2448
+ z: 0
2449
+ });
2414
2450
  });
2415
2451
  break;
2416
2452
  case 'BoxCopyRight':
@@ -2433,7 +2469,11 @@ var UIStore = /*#__PURE__*/function () {
2433
2469
  });
2434
2470
  target.onPointerClickObservable.add(function () {
2435
2471
  var _this10$_onElementCop2;
2436
- return (_this10$_onElementCop2 = _this10._onElementCopy) === null || _this10$_onElementCop2 === void 0 ? void 0 : _this10$_onElementCop2.call(_this10, elementInfo.setId, elementInfo.elementId, 'RIGHT');
2472
+ return (_this10$_onElementCop2 = _this10._onElementCopy) === null || _this10$_onElementCop2 === void 0 ? void 0 : _this10$_onElementCop2.call(_this10, elementInfo.setId, elementInfo.elementId, {
2473
+ x: 1,
2474
+ y: 0,
2475
+ z: 0
2476
+ });
2437
2477
  });
2438
2478
  break;
2439
2479
  case 'BoxCopyTop':
@@ -2441,7 +2481,11 @@ var UIStore = /*#__PURE__*/function () {
2441
2481
  guiElement.position = element.absolutePosition.add(new Vector3(-(bbox.max.x - bbox.min.x) / 2, bbox.max.y - bbox.min.y, bbox.max.z - bbox.min.z));
2442
2482
  target.onPointerClickObservable.add(function () {
2443
2483
  var _this10$_onElementCop3;
2444
- return (_this10$_onElementCop3 = _this10._onElementCopy) === null || _this10$_onElementCop3 === void 0 ? void 0 : _this10$_onElementCop3.call(_this10, elementInfo.setId, elementInfo.elementId, 'TOP');
2484
+ return (_this10$_onElementCop3 = _this10._onElementCopy) === null || _this10$_onElementCop3 === void 0 ? void 0 : _this10$_onElementCop3.call(_this10, elementInfo.setId, elementInfo.elementId, {
2485
+ x: 0,
2486
+ y: 1,
2487
+ z: 0
2488
+ });
2445
2489
  });
2446
2490
  break;
2447
2491
  }
@@ -3092,7 +3136,7 @@ function _findAssets() {
3092
3136
  size = 0;
3093
3137
  _context2.prev = 4;
3094
3138
  _context2.next = 7;
3095
- return LoadAssetContainerAsync(path + geo.name + '.glb', sceneStore.scene);
3139
+ return loadAssetContainerAsync(path + geo.name + '.glb', sceneStore.scene);
3096
3140
  case 7:
3097
3141
  result = _context2.sent;
3098
3142
  utilStore.setAnalyzeDataRow({
@@ -3784,14 +3828,14 @@ function deacCache(cache) {
3784
3828
  var parser = /*#__PURE__*/function () {
3785
3829
  var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
3786
3830
  var _changedElements$upda;
3787
- var sceneStore, hasRendered, hqRenderScript, scene, cache, changedElements, utilStore, gridStore, _yield$findAssets, cacheGroup, newCache, _changedElements$upda2, _sceneStore$scene$get, root;
3831
+ var sceneStore, hasRendered, hqRenderScript, scene, cache, changedElements, utilStore, _yield$findAssets, cacheGroup, newCache, _changedElements$upda2;
3788
3832
  return _regeneratorRuntime.wrap(function _callee$(_context) {
3789
3833
  while (1) switch (_context.prev = _context.next) {
3790
3834
  case 0:
3791
3835
  sceneStore = useSceneStoreContext();
3792
3836
  hasRendered = sceneStore.hasRendered, hqRenderScript = sceneStore.hqRenderScript, scene = sceneStore.scene, cache = sceneStore.cache, changedElements = sceneStore.changedElements;
3793
3837
  utilStore = useUtilStoreContext();
3794
- gridStore = useGridStoreContext(); //disable elementrows from old cache
3838
+ useGridStoreContext(); //disable elementrows from old cache
3795
3839
  changedElements === null || changedElements === void 0 || (_changedElements$upda = changedElements.updatedElements) === null || _changedElements$upda === void 0 || _changedElements$upda.forEach(function (el) {
3796
3840
  return utilStore.disableElementRows(el.name, cache);
3797
3841
  });
@@ -3822,7 +3866,6 @@ var parser = /*#__PURE__*/function () {
3822
3866
  parentNode: parent
3823
3867
  });
3824
3868
  findMaterials(newCache);
3825
- gridStore.setupElementMove([updatedElement.name], utilStore.moveObjectInDirection);
3826
3869
  });
3827
3870
  } else if (!hasRendered) {
3828
3871
  buildScene({
@@ -3831,10 +3874,6 @@ var parser = /*#__PURE__*/function () {
3831
3874
  cachedAssets: newCache
3832
3875
  });
3833
3876
  findMaterials(newCache);
3834
- root = (_sceneStore$scene$get = sceneStore.scene.getTransformNodeByName(hqRenderScript.scene.nodes[0].name)) === null || _sceneStore$scene$get === void 0 || (_sceneStore$scene$get = _sceneStore$scene$get.getChildren()) === null || _sceneStore$scene$get === void 0 || (_sceneStore$scene$get = _sceneStore$scene$get[0]) === null || _sceneStore$scene$get === void 0 || (_sceneStore$scene$get = _sceneStore$scene$get.getChildren()) === null || _sceneStore$scene$get === void 0 || (_sceneStore$scene$get = _sceneStore$scene$get[0]) === null || _sceneStore$scene$get === void 0 ? void 0 : _sceneStore$scene$get.getChildren().map(function (r) {
3835
- return r.name;
3836
- });
3837
- gridStore.setupElementMove(root !== null && root !== void 0 ? root : [], utilStore.moveObjectInDirection);
3838
3877
  }
3839
3878
  utilStore.setRTVAnalyzeData();
3840
3879
  deacCache(cacheGroup);
@@ -3992,7 +4031,7 @@ function useRealTimeRenderData (_ref) {
3992
4031
  if (!elements || (!elements.deletedElements || elements.deletedElements.length == 0) && (!elements.updatedElements || elements.updatedElements.length == 0)) {
3993
4032
  var _callbacks$onInitiali;
3994
4033
  if (!elementsInfo) return false;
3995
- if (freePlacesOnGrids || plannedPlacesOnGrids) gridStore.getGrids(freePlacesOnGrids, plannedPlacesOnGrids);
4034
+ if ((freePlacesOnGrids || plannedPlacesOnGrids) && (uiConfig === null || uiConfig === void 0 ? void 0 : uiConfig.plannerMode) != 'BoxPlanner') gridStore.getGrids('ShelfPlanner', undefined, freePlacesOnGrids, plannedPlacesOnGrids);
3996
4035
  (_callbacks$onInitiali = callbacks.onInitialized) === null || _callbacks$onInitiali === void 0 || _callbacks$onInitiali.call(callbacks);
3997
4036
  sceneStore.isInitializing = false;
3998
4037
  return false;
@@ -4047,12 +4086,11 @@ function useRealTimeRenderData (_ref) {
4047
4086
  return parser();
4048
4087
  case 20:
4049
4088
  uiStore.initGui(callbacks.onElementSelected, sceneStore.elements);
4050
- if (viewHandler !== null && viewHandler !== void 0 && viewHandler.settingsState.generalPlanningState) gridStore.getGrids1(viewHandler.settingsState.generalPlanningState, uiStore.excludePreviewBoxes.bind(uiStore));
4051
- if (freePlacesOnGrids || plannedPlacesOnGrids) gridStore.getGrids(freePlacesOnGrids, plannedPlacesOnGrids);
4052
- _context2.next = 30;
4089
+ if ((uiConfig === null || uiConfig === void 0 ? void 0 : uiConfig.plannerMode) == 'BoxPlanner' && viewHandler !== null && viewHandler !== void 0 && viewHandler.settingsState.generalPlanningState) gridStore.getGrids('BoxPlanner', viewHandler.settingsState.generalPlanningState, undefined, undefined, false, false, uiStore.excludePreviewBoxes.bind(uiStore));else if (freePlacesOnGrids || plannedPlacesOnGrids) gridStore.getGrids('ShelfPlanner', undefined, freePlacesOnGrids, plannedPlacesOnGrids);
4090
+ _context2.next = 29;
4053
4091
  break;
4054
- case 25:
4055
- _context2.prev = 25;
4092
+ case 24:
4093
+ _context2.prev = 24;
4056
4094
  _context2.t0 = _context2["catch"](16);
4057
4095
  LOG.errorTransaction('BUILD_SCENE', 'RTS_0001', _context2.t0.message);
4058
4096
  LOG.error(new DivaError('Error building scene', {
@@ -4060,7 +4098,7 @@ function useRealTimeRenderData (_ref) {
4060
4098
  code: 'RTS_0001'
4061
4099
  }));
4062
4100
  sceneStore.isInitializing = false;
4063
- case 30:
4101
+ case 29:
4064
4102
  if (callbacks.setGlb) {
4065
4103
  sceneStore.exportScene(callbacks.setGlb);
4066
4104
  } else {
@@ -4072,11 +4110,11 @@ function useRealTimeRenderData (_ref) {
4072
4110
  sceneStore.runRenderLoopForTime(5000);
4073
4111
  sceneStore.scene.onAfterRenderObservable.add(onFirstFrame);
4074
4112
  LOG.successTransaction('BUILD_SCENE');
4075
- case 35:
4113
+ case 34:
4076
4114
  case "end":
4077
4115
  return _context2.stop();
4078
4116
  }
4079
- }, _callee2, null, [[16, 25]]);
4117
+ }, _callee2, null, [[16, 24]]);
4080
4118
  }));
4081
4119
  return _onSceneReady.apply(this, arguments);
4082
4120
  }
@@ -4222,8 +4260,9 @@ function useRealTimeRenderData (_ref) {
4222
4260
  useEffect(function () {
4223
4261
  var _sceneStore3;
4224
4262
  if (!(viewHandler !== null && viewHandler !== void 0 && viewHandler.settingsState.generalPlanningState) || !((_sceneStore3 = sceneStore) !== null && _sceneStore3 !== void 0 && _sceneStore3.scene) || !elementsInfo) return;
4263
+ LOG.debug('rtv -> generalPlanningState: ', toJS(viewHandler.settingsState.generalPlanningState));
4225
4264
  sceneStore.scene.executeWhenReady(function () {
4226
- gridStore.getGrids1(viewHandler.settingsState.generalPlanningState, uiStore.excludePreviewBoxes.bind(uiStore));
4265
+ return gridStore.getGrids('BoxPlanner', viewHandler.settingsState.generalPlanningState, undefined, undefined, false, false, uiStore.excludePreviewBoxes.bind(uiStore));
4227
4266
  });
4228
4267
  sceneStore.runRenderLoopForTime(5000);
4229
4268
  }, [viewHandler === null || viewHandler === void 0 ? void 0 : viewHandler.settingsState.generalPlanningState]);
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/SelectionHandler/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AAOnE,UAAU,KAAK;IACb,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;CAC3D;AAED,MAAM,WAAW,gBAAgB;IAC/B,WAAW,EAAE,CAAC,GAAG,EAAE,WAAW,KAAK,IAAI,CAAC;CACzC;AAED,MAAM,CAAC,OAAO,WAAW,EAAE,YAAY,EAAE,EAAE,KAAK,GAAG,gBAAgB,CA8ElE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/SelectionHandler/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AAOnE,UAAU,KAAK;IACb,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;CAC3D;AAED,MAAM,WAAW,gBAAgB;IAC/B,WAAW,EAAE,CAAC,GAAG,EAAE,WAAW,KAAK,IAAI,CAAC;CACzC;AAED,MAAM,CAAC,OAAO,WAAW,EAAE,YAAY,EAAE,EAAE,KAAK,GAAG,gBAAgB,CAmFlE"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/controls/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAC;AAE1E,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAG9D,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAEzC,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,eAAe,qBAmQxD;AAED,MAAM,WAAW,YAAY;IAC3B,YAAY,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,kBAAkB,EAAE,MAAM,KAAK,IAAI,CAAC;IACxG,WAAW,EAAE,MAAM,IAAI,CAAC;CACzB;AAED,wBAAgB,eAAe,CAC7B,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,iBAAiB,EAC1B,QAAQ,EAAE,IAAI,GAAG,aAAa,EAC9B,QAAQ,EAAE,OAAO,EAAE,EACnB,UAAU,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,aAAa,EAAE,OAAO,EAAE,WAAW,EAAE,OAAO,KAAK,IAAI;6BA2DnG,MAAM,WAAW,MAAM,YAAY,MAAM,sBAAsB,MAAM;;EA+CtG"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/controls/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,E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AQ,EAAQ,MAAM,gBAAgB,CAAC;AAEhD,MAAM,CAAC,OAAO;6CAWoC;QAAE,CAAC,KAAK,EAAE,MAAM,GAAG,oBAAoB,CAAA;KAAE;kCA0BpD,QAAQ,EAAE,wBAAwB,oBAAoB,EAAE,sBAAsB,iBAAiB,EAAE;2BA4MxG,IAAI;;EAkCnC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/grids/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAC;AAKnD,OAAO,EAAE,iBAAiB,EAAE,oBAAoB,EAAiC,MAAM,UAAU,CAAC;AAElG,OAAO,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAElD,OAAO,yCAAyC,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAQ,MAAM,gBAAgB,CAAC;AAEhD,MAAM,CAAC,OAAO;6CAWoC;QAAE,CAAC,KAAK,EAAE,MAAM,GAAG,oBAAoB,CAAA;KAAE;kCAqCpD,QAAQ,EAAE,wBAAwB,oBAAoB,EAAE,sBAAsB,iBAAiB,EAAE;2BA4MxG,IAAI;;EAsCnC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/parser/index.ts"],"names":[],"mappings":"AAUA,QAAA,MAAM,MAAM,qBAwCX,CAAC;AAEF,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/parser/index.ts"],"names":[],"mappings":"AAUA,QAAA,MAAM,MAAM,qBAoCX,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -25,15 +25,15 @@ export declare class GridStore {
25
25
  get selectedGrid(): Mesh | undefined;
26
26
  getSelectedGrid(): Mesh;
27
27
  onGridMove(box: Mesh | TransformNode): void;
28
+ selectBox(mesh: Mesh): void;
28
29
  selectGrid(mesh: Mesh, gridIdx: number, shelfIdx: number, basketId: string, disableDelete: boolean, disableMove: boolean): void;
29
30
  getMoveGrids(gridName: string, basketId: string): Promise<void>;
30
31
  deselectGrids(triggerUpdate?: boolean): void;
31
32
  rerenderGrids(): void;
32
33
  private _buildPlannedOptions;
33
- getGrids1(generalPlanningState: {
34
+ getGrids(type: 'BoxPlanner' | 'ShelfPlanner', generalPlanningState?: {
34
35
  [setId: string]: GeneralPlanningState;
35
- }, callback: () => void): Promise<void>;
36
- getGrids(freePlacesOnGrids?: FreePlacesOnGrids[], plannedPlacesOnGrids?: PlannedPlacesOnGrids[], doNotRelod?: boolean, doNotOverwrite?: boolean): Promise<void>;
36
+ }, freePlacesOnGrids?: FreePlacesOnGrids[], plannedPlacesOnGrids?: PlannedPlacesOnGrids[], doNotRelod?: boolean, doNotOverwrite?: boolean, callback?: () => void): Promise<void>;
37
37
  getDataFromGridName(name: string, elementId: string): {
38
38
  elementId: string;
39
39
  gridIdx: number;
@@ -1 +1 @@
1
- {"version":3,"file":"GridStore.d.ts","sourceRoot":"","sources":["../../../../../src/store/GridStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AAErE,OAAO,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,WAAW,EAAiC,MAAM,UAAU,CAAC;AAI/G,OAAO,EAAe,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAE/D,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AASpC,qBAAa,SAAS;IACpB,OAAO,CAAC,aAAa,CAAuC;IAC5D,OAAO,CAAC,SAAS,CAAC,CAAa;IAC/B,OAAO,CAAC,eAAe,CAAC,CAAmB;IAC3C,OAAO,CAAC,KAAK,CAAC,CAAoD;IAClE,OAAO,CAAC,kBAAkB,CAAC,CAAsB;IACjD,OAAO,CAAC,qBAAqB,CAAC,CAAyB;IACvD,OAAO,CAA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,GAAG,SAAS,EACpG,WAAW,CAAC,EAAE,WAAW;IAQ3B,IAAI,oBAAoB,uCAEvB;IAED,IAAI,iBAAiB,oCAEpB;IAED,IAAI,YAAY,qBAEf;IAEM,eAAe,IAQqC,IAAI;IAGxD,UAAU,CAAC,GAAG,EAAE,IAAI,GAAG,aAAa;IAwBpC,SAAS,CAAC,IAAI,EAAE,IAAI;IASpB,UAAU,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,aAAa,EAAE,OAAO,EAAE,WAAW,EAAE,OAAO;IAqBlH,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IAUrD,aAAa,CAAC,aAAa,GAAE,OAAc;IAc3C,aAAa;IAKpB,OAAO,CAAC,oBAAoB;IAQf,QAAQ,CACnB,IAAI,EAAE,YAAY,GAAG,cAAc,EACnC,oBAAoB,CAAC,EAAE;QAAE,CAAC,KAAK,EAAE,MAAM,GAAG,oBAAoB,CAAA;KAAE,EAChE,iBAAiB,CAAC,EAAE,iBAAiB,EAAE,EACvC,oBAAoB,CAAC,EAAE,oBAAoB,EAAE,EAC7C,UAAU,CAAC,EAAE,OAAO,EACpB,cAAc,CAAC,EAAE,OAAO,EACxB,QAAQ,CAAC,EAAE,MAAM,IAAI;IAuDhB,mBAAmB,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;;;;;;;;IAanD,gBAAgB,CAAC,YAAY,EAAE,MAAM,EAAE,EAAE,qBAAqB,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI;CAmC1H"}
@@ -82,7 +82,7 @@ export declare class SceneStore {
82
82
  set isInitializing(isInit: boolean);
83
83
  enableSSAO(enable: boolean): void;
84
84
  getElementByName(name: string): import("./types").Element | undefined;
85
- getElementNameById(id: number): string | undefined;
85
+ getElementById(id: number): TransformNode | undefined;
86
86
  get hasRendered(): boolean;
87
87
  get hasPlanned(): boolean;
88
88
  get cams(): ArcRotateCamera[];
@@ -1 +1 @@
1
- {"version":3,"file":"SceneStore.d.ts","sourceRoot":"","sources":["../../../../../src/store/SceneStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,mCAAmC,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AAErE,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAa,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACxF,OAAO,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAC;AAE1E,OAAO,EAAE,sBAAsB,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACjG,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAG5C,OAAO,EAAE,KAAK,EAAG,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAGxC,OAAO,EAAkB,aAAa,EAAE,MAAM,SAAS,CAAC;AACxD,OAAO,EAAE,SAAS,EAAwB,MAAM,0BAA0B,CAAC;AAO3E,qBAAa,UAAU;IACrB,OAAO,CAAC,eAAe,CAAiB;IACxC,OAAO,CAAC,uBAAuB,CAA6B;IAC5D,OAAO,CAAC,MAAM,CAAQ;IACtB,OAAO,CAAC,KAAK,CAAyB;IACtC,OAAO,CAAC,KAAK,CAAuB;IACpC,OAAO,CAAC,eAAe,CAAsB;IAC7C,OAAO,CAAC,YAAY,CAAkB;IACtC,OAAO,CAAC,WAAW,CAAkB;IACrC,OAAO,CAAC,eAAe,CAAa;IACpC,OAAO,CAAC,UAAU,CAAY;IAC9B,OAAO,CAAC,MAAM,CAAe;IAC7B,OAAO,CAAC,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AG7B;IAED,IAAI,UAAU,CAAC,KAAK,EAAE,OAAO,EAG5B;IAED,IAAI,cAAc,CAAC,cAAc,EAAE,wBAAwB,EAE1D;IAED,IAAI,IAAI,CAAC,IAAI,EAAE,sBAAsB,EAEpC;IAED,OAAO,CAAC,UAAU;IAQX,aAAa;IAMb,yBAAyB;IAKzB,oBAAoB,CAAC,EAAE,EAAE,MAAM;IAQ/B,cAAc;IAOrB,OAAO,CAAC,aAAa;IAmBd,kBAAkB;IAkBlB,kBAAkB,CAAC,aAAa,EAAE,aAAa;IAI/C,oBAAoB;IAIpB,IAAI,CAAC,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,iBAAiB,GAAG,IAAI,EAAE,SAAS,CAAC,EAAE,gBAAgB,EAAE,UAAU,CAAC,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE;IAQjI,OAAO,CAAC,GAAG,EAAE,aAAa,EAAE,GAAG,EAAE,QAAQ;IAQzC,MAAM,CAAC,GAAG,EAAE,aAAa,EAAE,GAAG,EAAE,QAAQ;IAOxC,UAAU,CAAC,GAAG,EAAE,aAAa,EAAE,GAAG,EAAE,QAAQ;IAQ5C,aAAa,CAAC,GAAG,EAAE,QAAQ;IAQlC,OAAO,CAAC,YAAY;IAOb,YAAY;IAMN,WAAW,CAAC,MAAM,EAAE,GAAG;IAiB7B,aAAa;IAIb,eAAe;IAUf,KAAK,CAAC,EAAE,EAAE,IAAI,GAAG,MAAM;IASvB,YAAY,CAAC,IAAI,CAAC,EAAE,aAAa;IAyBjC,oBAAoB;;;;CAM5B"}
@@ -39,7 +39,11 @@ export declare class UIStore {
39
39
  constructor(scene: Scene, enableSSAO: (enable: boolean) => void, utilStore: UtilStore, uiConfig?: UIConfig, requestNewOverlayImage?: (viewpoint: ViewpointCamInfo) => void, overlayImage?: {
40
40
  base64: string;
41
41
  isStaticBg: boolean;
42
- }, onElementCopy?: (setId: string, elementId: number, copyDir: 'LEFT' | 'RIGHT' | 'TOP' | 'STD') => void, runRenderLoopForTime?: (ms: number) => void, tabgroupTypeActive?: (type: TabGroupTypes) => boolean, isMobile?: boolean, getPlannerInteractionInformation?: () => PlannerInteractionInformation | undefined);
42
+ }, onElementCopy?: (setId: string, elementId: number, copyIndex: {
43
+ x: number;
44
+ y: number;
45
+ z: number;
46
+ }) => void, runRenderLoopForTime?: (ms: number) => void, tabgroupTypeActive?: (type: TabGroupTypes) => boolean, isMobile?: boolean, getPlannerInteractionInformation?: () => PlannerInteractionInformation | undefined);
43
47
  get isStaticBg(): boolean;
44
48
  get unityCombActive(): boolean;
45
49
  private initSelectionHandler;
@@ -1 +1 @@
1
- {"version":3,"file":"UIStore.d.ts","sourceRoot":"","sources":["../../../../../src/store/UIStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AAOrE,OAAO,iEAAiE,CAAC;AACzE,OAAO,8DAA8D,CAAC;AACtE,OAAO,+DAA+D,CAAC;AACvE,OAAO,sEAAsE,CAAC;AAM9E,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,WAAW,EAAE,6BAA6B,EAAE,MAAM,UAAU,CAAC;AAC/F,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAC;AAEnD,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAW9C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAQxC,qBAAa,OAAO;IAClB,OAAO,CAAC,UAAU,CAAY;IAC9B,OAAO,CAAC,SAAS,CAAW;IAC5B,OAAO,CAAC,IAAI,CAAyB;IACrC,OAAO,CAAC,uBAAuB,CAAC,CAStB;IACV,OAAO,CAAC,cAAc,CAAC,CAAwF;IAC/G,OAAO,CAAC,UAAU,CAAC,CAAiB;IACpC,OA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