🚀 Auto-deploy: BrainWind atualizado em 24/08/2026 11:28:13
This commit is contained in:
@@ -37,9 +37,6 @@ function BridgeModel({
|
|||||||
deckHeight,
|
deckHeight,
|
||||||
heg,
|
heg,
|
||||||
cx,
|
cx,
|
||||||
cz,
|
|
||||||
fxPerLength,
|
|
||||||
fzPerLength,
|
|
||||||
alpha,
|
alpha,
|
||||||
viewMode = 'solid',
|
viewMode = 'solid',
|
||||||
}: Bridge3DInput) {
|
}: Bridge3DInput) {
|
||||||
@@ -135,7 +132,7 @@ function BridgeModel({
|
|||||||
}
|
}
|
||||||
|
|
||||||
export default function Bridge3DViewer(props: Bridge3DInput) {
|
export default function Bridge3DViewer(props: Bridge3DInput) {
|
||||||
const { lp, width, deckHeight, heg, cx, cz, fxPerLength, fzPerLength, alpha, viewMode = 'solid' } = props;
|
const { lp, width, deckHeight, heg, cx, cz, fxPerLength, fzPerLength, viewMode = 'solid' } = props;
|
||||||
const cameraDistance = Math.max(lp * 1.2, width * 2, deckHeight * 2, 15);
|
const cameraDistance = Math.max(lp * 1.2, width * 2, deckHeight * 2, 15);
|
||||||
const theme = useCanvasTheme();
|
const theme = useCanvasTheme();
|
||||||
const isDark = theme === 'dark';
|
const isDark = theme === 'dark';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import React, { useState } from 'react';
|
import { useState } from 'react';
|
||||||
import { getDragCoefficient } from '@/lib/drag';
|
import { getDragCoefficient } from '@/lib/drag';
|
||||||
import { useI18n } from '@/store/i18nStore';
|
import { useI18n } from '@/store/i18nStore';
|
||||||
import { DragCoefficientChart } from '@/components/DragCoefficientChart';
|
import { DragCoefficientChart } from '@/components/DragCoefficientChart';
|
||||||
@@ -12,7 +12,7 @@ import { Slider } from '@/components/ui/slider';
|
|||||||
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card';
|
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card';
|
||||||
|
|
||||||
export default function CalcCaModule() {
|
export default function CalcCaModule() {
|
||||||
const { t } = useI18n();
|
const i18n = useI18n(); // Apenas chamando caso necessário no ciclo de vida, sem extrair 't'
|
||||||
const [l1, setL1] = useState<number>(20);
|
const [l1, setL1] = useState<number>(20);
|
||||||
const [l2, setL2] = useState<number>(40);
|
const [l2, setL2] = useState<number>(40);
|
||||||
const [h, setH] = useState<number>(10);
|
const [h, setH] = useState<number>(10);
|
||||||
|
|||||||
Reference in New Issue
Block a user