[185] Navigation wie Archicad: Geschosswechsel behält Zoom, Cmd+5/6 Geschoss, Cmd+3/4 Auswahl im 3D

Grundriss: Geschosse teilen den Einpass-Schlüssel (planFitKey, PlanView fitKey), Wechsel behält
Ausschnitt und Massstab exakt. Cmd/Ctrl+5/6 Geschoss tiefer/höher im Grundriss- und 3D-Reiter.
Cmd/Ctrl+3 zeigt nur die Auswahl im 3D (Reiter „3D · Auswahl“, Kamera passt ein; ohne Auswahl alles),
Cmd/Ctrl+4 blendet die Auswahl im 3D aus. Zustand rein UI (state/view3dFilter.ts). Kern:
model3d::ElementSelection im ClassFilter (only/hideIds für Teile, Cache, Pick). Kürzel umbelegbar,
natives Menü Ansicht. PlanViewHandle.pxPerMeter liest die aktuelle viewBox.
This commit is contained in:
Claude committed 2026-11-11 19:39:51 +00:00
1 parent a6c302a91d
commit 5530089eea
29 files changed
+717 -42

No files matched your search

+28
View File
@@ -55,6 +55,12 @@ export interface NativeAppMenuHandlers {
onViewType: (v: ViewType) => void;
onView3d: (v: View3d) => void;
onReferenceLines: (v: boolean) => void;
/** [185] Geschoss tiefer (−1, Cmd+5) / höher (+1, Cmd+6) im Grundriss-/3D-Reiter. */
onFloorStep?: (dir: 1 | -1) => void;
/** [185] Auswahl in 3D zeigen (Cmd+3; ohne Auswahl alles). */
onShowSelection3d?: () => void;
/** [185] Auswahl im 3D ausblenden (Cmd+4). */
onHideSelection3d?: () => void;
onToggleResources: () => void;
onOpenSettings: () => void;
@@ -341,6 +347,28 @@ export function useNativeAppMenu(
...view3dItems,
await PredefinedMenuItem.new({ item: "Separator" }),
referenceLinesItem,
// [185] Navigation wie Archicad (dieselben Kürzel laufen im Browser über `useViewNavigationShortcuts`).
await PredefinedMenuItem.new({ item: "Separator" }),
await MenuItem.new({
text: t("menu.view.floorDown"),
accelerator: "CmdOrCtrl+5",
action: () => handlersRef.current.onFloorStep?.(-1),
}),
await MenuItem.new({
text: t("menu.view.floorUp"),
accelerator: "CmdOrCtrl+6",
action: () => handlersRef.current.onFloorStep?.(1),
}),
await MenuItem.new({
text: t("menu.view.showSelection3d"),
accelerator: "CmdOrCtrl+3",
action: () => handlersRef.current.onShowSelection3d?.(),
}),
await MenuItem.new({
text: t("menu.view.hideSelection3d"),
accelerator: "CmdOrCtrl+4",
action: () => handlersRef.current.onHideSelection3d?.(),
}),
],
});