import React from 'react'; import { useDesignStore } from '../../store/useDesignStore'; import { getBoltCoordinates, getIShapePath } from '../../utils/geometry'; export const PlanView: React.FC = () => { const { geometry, anchorage } = useDesignStore(); const { plateShape, widthZ, lengthX, diameter, columnDetails, support } = geometry; // Viewport calculation const maxDim = Math.max( plateShape === 'rectangular' ? Math.max(widthZ, lengthX) : diameter, Math.max(support.widthWp1, support.lengthLp1) ) * 1.5; // 1.5x zoom out const viewBox = `${-maxDim / 2} ${-maxDim / 2} ${maxDim} ${maxDim}`; const bolts = getBoltCoordinates(geometry, anchorage); return (
{/* Definitions for markers/patterns if needed */} {/* Concrete Support */} {plateShape === 'rectangular' ? ( ) : ( )} {/* Base Plate */} {plateShape === 'rectangular' ? ( ) : ( )} {/* Column */} {/* Anchor Rods */} {bolts.map((bolt, i) => ( ))} {/* Axes */} X Z

PLAN

); };