2025-05-08 12:56:14 +00:00
|
|
|
import React from "react";
|
|
|
|
import VehicleInstance from "./instance/vehicleInstance";
|
|
|
|
import { useVehicleStore } from "../../../../store/simulation/useVehicleStore";
|
2025-05-08 13:38:57 +00:00
|
|
|
import VehicleContentUi from "../../ui3d/VehicleContentUi";
|
feat: Implement Zustand stores for machine, simulation, storage unit, vehicle, and visualization management
- Added `useMachineStore` for managing machine statuses, including actions for adding, removing, and updating machines.
- Introduced `useSimulationStore` to handle product and event management with actions for adding, removing, and updating products and events.
- Created `useStorageUnitStore` for managing storage unit statuses, including load tracking and state updates.
- Developed `useVehicleStore` for vehicle management, including load and state updates.
- Implemented `useChartStore` for managing measurement data and visualization settings.
- Added `useDroppedObjectsStore` for handling dropped objects in visualization zones, including object manipulation actions.
- Created `useZone3DWidgetStore` for managing 3D widget data in zones, including position and rotation updates.
- Introduced `useZoneStore` for managing selected zone states and widget configurations.
2025-04-22 08:58:29 +00:00
|
|
|
|
2025-04-25 12:27:38 +00:00
|
|
|
function VehicleInstances() {
|
2025-05-09 17:20:47 +00:00
|
|
|
const { vehicles } = useVehicleStore();
|
feat: Implement Zustand stores for machine, simulation, storage unit, vehicle, and visualization management
- Added `useMachineStore` for managing machine statuses, including actions for adding, removing, and updating machines.
- Introduced `useSimulationStore` to handle product and event management with actions for adding, removing, and updating products and events.
- Created `useStorageUnitStore` for managing storage unit statuses, including load tracking and state updates.
- Developed `useVehicleStore` for vehicle management, including load and state updates.
- Implemented `useChartStore` for managing measurement data and visualization settings.
- Added `useDroppedObjectsStore` for handling dropped objects in visualization zones, including object manipulation actions.
- Created `useZone3DWidgetStore` for managing 3D widget data in zones, including position and rotation updates.
- Introduced `useZoneStore` for managing selected zone states and widget configurations.
2025-04-22 08:58:29 +00:00
|
|
|
|
2025-05-09 17:20:47 +00:00
|
|
|
return (
|
|
|
|
<>
|
|
|
|
{vehicles.map((vehicle: VehicleStatus) => (
|
|
|
|
<React.Fragment key={vehicle.modelUuid}>
|
|
|
|
<VehicleInstance agvDetail={vehicle} />
|
|
|
|
<VehicleContentUi vehicle={vehicle} />
|
|
|
|
</React.Fragment>
|
|
|
|
))}
|
|
|
|
</>
|
|
|
|
);
|
feat: Implement Zustand stores for machine, simulation, storage unit, vehicle, and visualization management
- Added `useMachineStore` for managing machine statuses, including actions for adding, removing, and updating machines.
- Introduced `useSimulationStore` to handle product and event management with actions for adding, removing, and updating products and events.
- Created `useStorageUnitStore` for managing storage unit statuses, including load tracking and state updates.
- Developed `useVehicleStore` for vehicle management, including load and state updates.
- Implemented `useChartStore` for managing measurement data and visualization settings.
- Added `useDroppedObjectsStore` for handling dropped objects in visualization zones, including object manipulation actions.
- Created `useZone3DWidgetStore` for managing 3D widget data in zones, including position and rotation updates.
- Introduced `useZoneStore` for managing selected zone states and widget configurations.
2025-04-22 08:58:29 +00:00
|
|
|
}
|
|
|
|
|
2025-05-08 12:56:14 +00:00
|
|
|
export default VehicleInstances;
|