Debugged agv and conveyor interaction.

This commit is contained in:
2025-04-11 17:52:07 +05:30
parent 8ed035b969
commit 1256f33342
14 changed files with 906 additions and 858 deletions

View File

@@ -20,7 +20,6 @@ async function loadInitialFloorItems(
const organization = (email!.split("@")[1]).split(".")[0];
const items = await getFloorAssets(organization);
console.log('items: ', items);
localStorage.setItem("FloorItems", JSON.stringify(items));
await initializeDB();

View File

@@ -14,7 +14,6 @@ import CopyPasteControls from "./copyPasteControls";
import MoveControls from "./moveControls";
import RotateControls from "./rotateControls";
import useModuleStore from "../../../../store/useModuleStore";
import { detectModifierKeys } from "../../../../utils/shortcutkeys/detectModifierKeys";
const SelectionControls: React.FC = () => {
const { camera, controls, gl, scene, pointer } = useThree();
@@ -102,13 +101,12 @@ const SelectionControls: React.FC = () => {
};
const onKeyDown = (event: KeyboardEvent) => {
const keyCombination = detectModifierKeys(event);
if (movedObjects.length > 0 || rotatedObjects.length > 0) return;
if (keyCombination === "ESCAPE") {
if (event.key.toLowerCase() === "escape") {
event.preventDefault();
clearSelection();
}
if (keyCombination === "DELETE") {
if (event.key.toLowerCase() === "delete") {
event.preventDefault();
deleteSelection();
}