[121] Neurendern: Panels lesen Projekt und Objekt-Info selbst aus dem Store (useSelectionInfo, inhaltlich stabil), Panel-Host ohne project/selection/contextObjects und mit stabiler Identität (Handler als Trampoline), usePanelHostBase in src/state/panelHost/ zerlegt; Docks, versteckte Datei-Felder, Zeichnungs-Reiter und Präsentations-Dialog memoisiert; Wand-Änderung 55 → 42 Renders, Schranken im e2e gesenkt; Doku und TODO nachgeführt
This commit is contained in:
48 files changed
+1981
-1711
No files matched your search
@@ -1,16 +1,17 @@
|
||||
// Versteckte Datei-Felder der App ([163], aus App.tsx herausgelöst): DXF/DWG/IFC/PDF, STEP, IFC,
|
||||
// Bild/PDF, Projektdatei und Vorlage, dazu die Hosts für Punktwolken- und Mesh-Import. Menüs, Befehle
|
||||
// und Werkzeuge öffnen den Dateidialog über die Refs (`ref.current.click()`); die gewählte Datei geht
|
||||
// an den jeweiligen Handler. Gerendert von `App.tsx` ganz oben im Editor.
|
||||
// an den jeweiligen Handler. Gerendert von `App.tsx` ganz oben im Editor; memoisiert ([121]), die
|
||||
// Handler kommen mit stabiler Identität aus dem Handler-Bündel der App.
|
||||
|
||||
import type { RefObject } from "react";
|
||||
import { memo, type RefObject } from "react";
|
||||
import { PROJECT_TEMPLATE_EXT } from "../native/projectFile";
|
||||
import type { MeshPlacement, MeshRead } from "../io/meshImport";
|
||||
import { MeshImportHost } from "./MeshImportDialog";
|
||||
import { PointCloudImportHost } from "./PointCloudImportDialog";
|
||||
import type { NotifyKind } from "../state/notifySlice";
|
||||
|
||||
export function HiddenFileInputs(props: {
|
||||
export const HiddenFileInputs = memo(function HiddenFileInputs(props: {
|
||||
dxfInputRef: RefObject<HTMLInputElement>;
|
||||
stepInputRef: RefObject<HTMLInputElement>;
|
||||
ifcInputRef: RefObject<HTMLInputElement>;
|
||||
@@ -123,4 +124,4 @@ export function HiddenFileInputs(props: {
|
||||
/>
|
||||
</>
|
||||
);
|
||||
}
|
||||
});
|
||||
Reference in new issue
Block a user