[89] Layout-Blatt: Zeichnen wie im Grundriss (Blatt-Ebene statt eigener Annotationen)
Jedes Layout hat eine Blatt-Ebene (DrawingLevel.layoutId, Papier 1:1 in Metern); ein offenes Blatt macht sie zur aktiven Ebene in derselben PlanView: gleiche Befehle, Fang, Griffe, Vorschau/HUD, Auswahl, Undo und dasselbe Rendering. Das Blatt liefert nur den Hintergrund (PlanView.backdrop) und das Platzieren der Viewports. Format 3 migriert Layout.annotations zu drawings2d. Layout-PDF legt die Blatt-Ebene über planToPrintSvg aufs Papier. Alter Annotations-Pfad gelöscht. e2e layoutSheet.spec.ts.
This commit is contained in:
43 files changed
+1245
-2756
No files matched your search
+1
-1
@@ -170,7 +170,7 @@ function loadProject(path: string): Project {
|
||||
}
|
||||
|
||||
function findLevel(project: Project, kinds: string[], name: string | undefined) {
|
||||
const levels = project.drawingLevels.filter((l) => kinds.includes(l.kind));
|
||||
const levels = project.drawingLevels.filter((l) => kinds.includes(l.kind) && !l.layoutId);
|
||||
if (!name) return levels[0];
|
||||
const n = name.toLowerCase();
|
||||
return levels.find((l) => l.id.toLowerCase() === n || l.name.toLowerCase() === n);
|
||||
|
||||
Reference in new issue
Block a user