"updated single flow"

This commit is contained in:
SreeNath14
2025-04-10 17:46:11 +05:30
94 changed files with 6519 additions and 3372 deletions

View File

@@ -18,18 +18,21 @@ type PathPoints = {
interface ProcessContainerProps {
processes: any[];
agvRef: any;
MaterialRef: any;
}
const Agv: React.FC<ProcessContainerProps> = ({ processes, agvRef }) => {
const Agv: React.FC<ProcessContainerProps> = ({
processes,
agvRef,
MaterialRef,
}) => {
const [pathPoints, setPathPoints] = useState<PathPoints[]>([]);
const { simulationStates } = useSimulationStates();
const { navMesh } = useNavMesh();
const { isPlaying } = usePlayButtonStore();
const { PlayAgv, setPlayAgv } = usePlayAgv();
useEffect(() => {
console.log("agvRef: ", agvRef);
}, [agvRef]);
useEffect(() => {
if (simulationStates.length > 0) {
@@ -90,6 +93,7 @@ const Agv: React.FC<ProcessContainerProps> = ({ processes, agvRef }) => {
hitCount={pair.hitCount}
processes={processes}
agvRef={agvRef}
MaterialRef={MaterialRef}
/>
{pair.points.slice(1).map((point, idx) => (