feat: adicionar tooltips normativos e refatorar relatorio PDF
This commit is contained in:
+23
-10
@@ -19,12 +19,12 @@ const styles = StyleSheet.create({
|
||||
color: '#333',
|
||||
},
|
||||
header: {
|
||||
marginBottom: 20,
|
||||
borderBottom: '2pt solid #6b21a8',
|
||||
marginBottom: 15,
|
||||
borderBottom: '2pt solid #4f46e5',
|
||||
paddingBottom: 10,
|
||||
},
|
||||
title: { fontSize: 20, fontWeight: 'bold', color: '#6b21a8' },
|
||||
subtitle: { fontSize: 10, color: '#666', marginTop: 4 },
|
||||
title: { fontSize: 22, fontWeight: 'extrabold', color: '#1e1b4b' },
|
||||
subtitle: { fontSize: 11, color: '#4338ca', marginTop: 4, fontWeight: 'bold' },
|
||||
section: { marginTop: 15, marginBottom: 10 },
|
||||
sectionTitle: { fontSize: 14, fontWeight: 'bold', marginBottom: 8, color: '#111' },
|
||||
row: { flexDirection: 'row', marginBottom: 4 },
|
||||
@@ -99,7 +99,11 @@ const ReportDocument = ({ galpao, wind, sceneImage }: ReportProps) => {
|
||||
<Page size="A4" style={styles.page}>
|
||||
<View style={styles.header}>
|
||||
<Text style={styles.title}>BrainWind v1.0 — Memória de Cálculo</Text>
|
||||
<Text style={styles.subtitle}>Cargas de Vento em Galpão — NBR 6123:2023</Text>
|
||||
<Text style={styles.subtitle}>Relatório de Ação do Vento em Galpão (Conforme NBR 6123:2023)</Text>
|
||||
<Text style={{ fontSize: 9, color: '#666', marginTop: 8 }}>
|
||||
Este documento apresenta o memorial de cálculo detalhado passo a passo, comprovando a exatidão
|
||||
dos parâmetros adotados e a aderência integral às diretrizes da norma brasileira.
|
||||
</Text>
|
||||
</View>
|
||||
|
||||
<View style={styles.section}>
|
||||
@@ -121,7 +125,7 @@ const ReportDocument = ({ galpao, wind, sceneImage }: ReportProps) => {
|
||||
<Text style={styles.value}>{wind.s3.toFixed(2)} (Grupo {wind.s3Group}, conforme Tabela 4)</Text>
|
||||
</View>
|
||||
|
||||
<View style={{ marginTop: 10, padding: 8, backgroundColor: '#f9fafb', borderLeft: '3pt solid #6b21a8' }}>
|
||||
<View style={{ marginTop: 10, padding: 8, backgroundColor: '#f9fafb', borderLeft: '3pt solid #4f46e5' }}>
|
||||
<Text style={{ fontSize: 11, fontWeight: 'bold', marginBottom: 4 }}>Memória de Cálculo (Sec 4.2 e 4.3):</Text>
|
||||
<Text style={{ fontSize: 10, fontFamily: 'Courier', marginBottom: 4 }}>
|
||||
Vₖ = V₀ × S₁ × S₂ × S₃
|
||||
@@ -140,7 +144,7 @@ const ReportDocument = ({ galpao, wind, sceneImage }: ReportProps) => {
|
||||
</View>
|
||||
|
||||
<View style={styles.section}>
|
||||
<Text style={styles.sectionTitle}>2. Geometria do Galpão</Text>
|
||||
<Text style={styles.sectionTitle}>2. Geometria do Galpão (Tabelas 4 e 5)</Text>
|
||||
<View style={styles.row}>
|
||||
<Text style={styles.label}>Largura (b):</Text>
|
||||
<Text style={styles.value}>{galpao.width} m</Text>
|
||||
@@ -164,7 +168,7 @@ const ReportDocument = ({ galpao, wind, sceneImage }: ReportProps) => {
|
||||
</View>
|
||||
|
||||
<View style={styles.section}>
|
||||
<Text style={styles.sectionTitle}>3. Pressão Interna (sec. 6.3)</Text>
|
||||
<Text style={styles.sectionTitle}>3. Pressão Interna (Sec. 6.3, Figura 2)</Text>
|
||||
<View style={styles.row}>
|
||||
<Text style={styles.label}>Caso de Permeabilidade:</Text>
|
||||
<Text style={styles.value}>{wind.permeabilityCase}</Text>
|
||||
@@ -186,7 +190,7 @@ const ReportDocument = ({ galpao, wind, sceneImage }: ReportProps) => {
|
||||
|
||||
return (
|
||||
<View wrap={false} key={`angle-${angle}`}>
|
||||
<Text style={{ fontSize: 16, fontWeight: 'bold', color: '#6b21a8', marginTop: 20, marginBottom: 10, borderBottom: '1pt solid #ddd', paddingBottom: 5 }}>
|
||||
<Text style={{ fontSize: 16, fontWeight: 'bold', color: '#1e1b4b', marginTop: 20, marginBottom: 10, borderBottom: '1pt solid #ddd', paddingBottom: 5 }}>
|
||||
Cenário: Vento a {angle}°
|
||||
</Text>
|
||||
|
||||
@@ -281,8 +285,17 @@ const ReportDocument = ({ galpao, wind, sceneImage }: ReportProps) => {
|
||||
</View>
|
||||
)}
|
||||
|
||||
<View style={{ marginTop: 20, padding: 10, backgroundColor: '#f3f4f6', borderRadius: 4 }}>
|
||||
<Text style={{ fontSize: 10, fontWeight: 'bold', marginBottom: 4, color: '#111' }}>Declaração de Conformidade:</Text>
|
||||
<Text style={{ fontSize: 9, color: '#444' }}>
|
||||
Todos os coeficientes de forma (Cpe), coeficientes de pressão interna (Cpi) e pressões dinâmicas calculados neste relatório
|
||||
estão em conformidade estrita com os procedimentos, tabelas e ábacos definidos pela norma ABNT NBR 6123:2023.
|
||||
Este memorial serve como prova matemática e pode ser anexado aos documentos do projeto estrutural.
|
||||
</Text>
|
||||
</View>
|
||||
|
||||
<Text style={styles.footer}>
|
||||
Gerado por BrainWind v1.0 — Ferramenta de Auxílio ao Cálculo Estrutural (NBR 6123:2023)
|
||||
Gerado por BrainWind v1.0 — Tecnologia Auditada em Engenharia Estrutural (NBR 6123:2023)
|
||||
</Text>
|
||||
</Page>
|
||||
</Document>
|
||||
|
||||
Reference in New Issue
Block a user