feat: Ferramenta de rotação 90° e trava de memória no Analisador 3D
This commit is contained in:
@@ -42,6 +42,7 @@ interface OFOption {
|
||||
peso_total?: number;
|
||||
ifc_url?: string | null;
|
||||
ifc_filename?: string | null;
|
||||
model_3d_rotation?: { x: number; y: number; z: number } | null;
|
||||
}
|
||||
|
||||
export default function Analisador3D() {
|
||||
@@ -103,7 +104,7 @@ export default function Analisador3D() {
|
||||
try {
|
||||
const { data, error } = await supabase
|
||||
.from('ordens_fabricacao' as any)
|
||||
.select('id, num_of, descritivo, peso_total, ifc_url, ifc_filename')
|
||||
.select('id, num_of, descritivo, peso_total, ifc_url, ifc_filename, model_3d_rotation')
|
||||
.order('num_of', { ascending: false });
|
||||
|
||||
if (!error && data) {
|
||||
@@ -114,6 +115,7 @@ export default function Analisador3D() {
|
||||
peso_total: Number(item.peso_total || 0),
|
||||
ifc_url: item.ifc_url || null,
|
||||
ifc_filename: item.ifc_filename || null,
|
||||
model_3d_rotation: item.model_3d_rotation || null,
|
||||
}));
|
||||
setOfs(list);
|
||||
if (list.length > 0 && !selectedOF) {
|
||||
@@ -797,6 +799,8 @@ export default function Analisador3D() {
|
||||
isFullscreen={isFullscreen}
|
||||
onToggleFullscreen={() => setIsFullscreen(!isFullscreen)}
|
||||
theme={isDarkTheme ? 'dark' : 'light'}
|
||||
selectedOF={selectedOF}
|
||||
initialRotation={currentOFObj?.model_3d_rotation || null}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user