import React from 'react'; import { useDesignStore } from '../../store/useDesignStore'; export const SectionView: React.FC = () => { const { geometry, anchorage } = useDesignStore(); const { plateShape, widthZ, lengthX, diameter, thickness, support } = geometry; const { hef, diameter: rodDiameter } = anchorage; // Viewport calculation // Width: Support width + margin // Height: Support thickness + Plate thickness + margin const supportWidth = Math.max(support.widthWp1, support.lengthLp1); // Simplified const plateWidth = plateShape === 'rectangular' ? Math.max(widthZ, lengthX) : diameter; // Assume support depth is at least 1.5 * hef for visualization if not specified // Or just use a fixed visual depth const supportDepth = Math.max(support.groutThickness + hef * 1.5, 20); const totalHeight = thickness + supportDepth + 10; const totalWidth = supportWidth * 1.5; const viewBox = `${-totalWidth / 2} ${-10} ${totalWidth} ${totalHeight}`; return (
{/* Concrete Support */} {/* Grout */} {/* Base Plate */} {/* Anchor Rods (Side View) */} {/* Draw two rods representing the outer bounds */} {/* Heads/Nuts */} {/* Breakout Cone (Schematic) */} {/* Dimensions */} hef = {hef}"

SECTION

); };