Merge [266] 3D-Dokument / Vektor-Axonometrie

This commit is contained in:
Claude committed 2026-11-17 09:27:56 +00:00
commit 2adccb8986
40 files changed
+1675 -51

No files matched your search

+3
View File
@@ -12,6 +12,7 @@ import type { DropdownItem } from "./Dropdown";
import { t } from "../i18n";
import type { View3d, ViewType } from "../model/viewTypes";
import { openRenderDialog } from "../state/renderDialogHook";
import { create3dDocument } from "../state/doc3dAction";
import { openAboutDialog } from "../state/aboutDialogHook";
import { openBugReport, openQuickGuide } from "../state/helpMenuHook";
import { openShortcutOverview } from "../state/shortcutOverviewHook";
@@ -180,6 +181,8 @@ export const AppMenuBar = memo(function AppMenuBar({
{ divider: true },
// [211] Rendering mit Blender/Cycles (Dialog in App montiert, Öffner über den Modul-Hook).
{ label: t("menu.view.image3d"), onSelect: openImageExportDialog },
// [266] 3D-Dokument: die aktuelle 3D-Kamera als Vektorzeichnung (Ausschnitt + Blatt).
{ label: t("menu.view.doc3d"), onSelect: () => void create3dDocument() },
{ label: t("menu.view.rendering"), onSelect: openRenderDialog, preview: true },
];
+2 -2
View File
@@ -27,7 +27,7 @@ import type {
Project,
Vec2,
} from "../model/types";
import { createTable, PX_PER_M, sheetTables, TABLE_SOURCES, snapshotMono, snapshotOverrideRuleIds, snapshotTemplate, tableSourceLabel, viewportLevelPlan } from "../core";
import { createTable, PX_PER_M, sheetTables, TABLE_SOURCES, tableSourceLabel, viewportSnapshotPlan } from "../core";
import type { TableOut } from "../core";
import { SheetTableHud } from "./SheetTableHud";
import { isInModalDialog } from "../state/modalScope";
@@ -111,7 +111,7 @@ export function ViewportPlanSvg({
// Massstab ZUERST: er geht in die Plan-Erzeugung ein (Bemassung in Papier-mm, s. model/dimension.ts).
const scaleN = resolveViewportScale(viewport, snap);
// Geschoss/Zeichnung wie bisher; Schnitt/Ansicht über die abgeleitete Projektion ([115], Schnitt asynchron).
void viewportLevelPlan(project, snap.activeLevelId, codes, snap.detail, scaleN, false, snapshotMono(project, snap), snapshotOverrideRuleIds(project, snap), snapshotTemplate(project, snap), snap.modelViewOptionId)
void viewportSnapshotPlan(project, snap, codes, scaleN)
.then((plan) => {
if (disposed) return;
const print = planToPrintSvg(plan, {