diff --git a/app/src/components/Warehouse3D.tsx b/app/src/components/Warehouse3D.tsx index d139e40..d3e707d 100644 --- a/app/src/components/Warehouse3D.tsx +++ b/app/src/components/Warehouse3D.tsx @@ -141,6 +141,9 @@ export function WarehouseModel() { const roofHeight = (width / 2) * Math.tan((roofPitch * Math.PI) / 180); const theta = (roofPitch * Math.PI) / 180; const widthSlope = width / 2 / Math.cos(theta); + const maxDim = Math.max(width, length, height); + const titleFontSize = Math.max(0.65, Math.min(1.25, maxDim / 14)); + const zoneFontSize = Math.max(0.45, Math.min(0.85, maxDim / 18)); const wallAColor = useMemo(() => pressureColor(wallCpe.A, cpi), [wallCpe.A, cpi]); const wallBColor = useMemo(() => pressureColor(wallCpe.B, cpi), [wallCpe.B, cpi]); @@ -378,15 +381,104 @@ export function WarehouseModel() { + {/* Linhas de Divisão das Zonas no Telhado */} + + + + + + + + + + + + + + + + + + {/* Rótulo e Título da Água */} - {isParallel ? 'Telhado (Zonas E/F/G/H)' : 'Telhado E/F (Barlavento)'} + {isParallel ? 'Telhado (Zonas E/F/G/H)' : 'Água Barlavento (Zonas E, F, J)'} + + + {/* Marcações Individuais das Zonas */} + + {isParallel ? `Zona E (${roofCpe.E})` : `Zona F (${roofCpe.F})`} + + + {isParallel ? `Zona F (${roofCpe.F})` : `Zona E (${roofCpe.E})`} + + + {isParallel ? `Zona G (${roofCpe.G})` : `Zona E (${roofCpe.E})`} + + + {isParallel ? `Zona H (${roofCpe.H})` : `Zona F (${roofCpe.F})`} + + + {`Zona J (Borda: ${roofCpe.J})`} @@ -420,15 +512,104 @@ export function WarehouseModel() { + {/* Linhas de Divisão das Zonas no Telhado */} + + + + + + + + + + + + + + + + + + {/* Rótulo e Título da Água */} - {isParallel ? 'Telhado (Zonas E/F/G/H)' : 'Telhado G/H (Sotavento)'} + {isParallel ? 'Telhado (Zonas E/F/G/H)' : 'Água Sotavento (Zonas G, H, I)'} + + + {/* Marcações Individuais das Zonas */} + + {isParallel ? `Zona E (${roofCpe.E})` : `Zona H (${roofCpe.H})`} + + + {isParallel ? `Zona F (${roofCpe.F})` : `Zona G (${roofCpe.G})`} + + + {isParallel ? `Zona G (${roofCpe.G})` : `Zona G (${roofCpe.G})`} + + + {isParallel ? `Zona H (${roofCpe.H})` : `Zona H (${roofCpe.H})`} + + + {`Zona I (Borda: ${roofCpe.I})`} @@ -453,9 +634,12 @@ export function WarehouseModel() { {/* Rótulo Parede Frontal */} @@ -464,10 +648,13 @@ export function WarehouseModel() { {/* Rótulo Parede Traseira */} @@ -476,10 +663,13 @@ export function WarehouseModel() { {/* Rótulo Parede Esquerda */} @@ -488,10 +678,13 @@ export function WarehouseModel() { {/* Rótulo Parede Direita */} diff --git a/app/src/pages/ShelterModule.tsx b/app/src/pages/ShelterModule.tsx index ea41a72..4ada2b1 100644 --- a/app/src/pages/ShelterModule.tsx +++ b/app/src/pages/ShelterModule.tsx @@ -337,7 +337,7 @@ const ShelterModule: React.FC = () => { }; return ( - + {/* Coluna Esquerda: Controles do Abrigo */}