[213] Cmd+A nimmt Kameras des Geschosses mit; e2e an Situation-Vorlage [207] und ankommende Treppe ohne Loch [202] angepasst
This commit is contained in:
3 files changed
+16
-2
No files matched your search
@@ -58,7 +58,8 @@ test("Situation 1:500: erneuter Klick schaltet durch Bemassung, Schatten und Gel
|
||||
await page.mouse.click(p.x, p.y);
|
||||
await expect(hint).toContainText(`${i}/${n} Treffer`);
|
||||
seen.push((await objInfo(page).locator(".objinfo-kind").first().textContent().catch(() => "")) ?? "");
|
||||
if (await objInfo(page).getByTestId("terrain-smooth").isVisible()) seen.push("terrain");
|
||||
// [207] Die Vorlage „Situation WBW“ zeigt das Gelände als Höhenlinien (ohne Netz-Füllung): beides zählt als Gelände.
|
||||
if ((await objInfo(page).getByTestId("terrain-smooth").isVisible()) || seen[seen.length - 1].includes("Gelände")) seen.push("terrain");
|
||||
}
|
||||
expect(seen).toContain("Schatten (Sonnenstand)");
|
||||
expect(seen).toContain("terrain");
|
||||
|
||||
@@ -24,6 +24,8 @@ export function selectAllIds(project: Project, levelId: string): Partial<Selecti
|
||||
const roomIds = (project.rooms ?? []).filter((r) => r.floorId === levelId).map((r) => r.id);
|
||||
const solids = (project.extrudedSolids ?? []).filter((s) => s.levelId === levelId).map((s) => s.id);
|
||||
const columnIds = (project.columns ?? []).filter((c) => c.floorId === levelId).map((c) => c.id);
|
||||
// [213] Kameras des Geschosses (Symbol im Grundriss), gesperrte bleiben.
|
||||
const cameras = (project.cameras ?? []).filter((c) => c.floorId === levelId && !c.locked).map((c) => c.id);
|
||||
// Schnittführungs-Symbole sind projektweit (kein floorId; plan/context.rs, plan_section_lines).
|
||||
const sectionLines = project.drawingLevels
|
||||
.filter((l) => (l.kind === "section" || l.kind === "elevation") && l.linePoints)
|
||||
@@ -50,6 +52,7 @@ export function selectAllIds(project: Project, levelId: string): Partial<Selecti
|
||||
rooms: roomIds,
|
||||
solids,
|
||||
columns: columnIds,
|
||||
cameras,
|
||||
roofs: roofIds,
|
||||
contextObjects,
|
||||
sectionLines,
|
||||
|
||||
+11
-1
@@ -156,7 +156,17 @@ export function installTestHooks(): void {
|
||||
}
|
||||
};
|
||||
walk(s.project.layers);
|
||||
return generatePlan(s.project, s.activeLevelId, codes, undefined, s.detail, false, false, true, 100).primitives.filter((q) => q.kind === "polygon" && q.fill && q.fill !== "none").length;
|
||||
// Ankommende Treppen anderer Geschosse ([202]: ohne Deckenloch unbeschnitten gezeichnet) gehören nicht zum Geschoss.
|
||||
const ownStairs = new Set((s.project.stairs ?? []).filter((t) => t.floorId === s.activeLevelId).map((t) => t.id));
|
||||
return generatePlan(s.project, s.activeLevelId, codes, undefined, s.detail, false, false, true, 100).primitives.filter(
|
||||
(q) =>
|
||||
q.kind === "polygon" &&
|
||||
q.fill &&
|
||||
q.fill !== "none" &&
|
||||
(!q.stairId || ownStairs.has(q.stairId)) &&
|
||||
// nur Füllungen von Elementen (Pfeilspitzen der Schnittmarken u. ä. tragen keine Element-Id)
|
||||
Object.entries(q).some(([k, v]) => k.endsWith("Id") && !!v),
|
||||
).length;
|
||||
},
|
||||
terrainZ: () => {
|
||||
const t = (getState().project.context ?? []).find((c) => c.type === "terrainMesh");
|
||||
|
||||
Reference in new issue
Block a user