Merge [207] Situation/Schwarzplan 1:500
This commit is contained in:
32 files changed
+812
-38
No files matched your search
@@ -1,12 +1,12 @@
|
||||
viewBox -4.2 0 37.045 18.478
|
||||
bytes 207135
|
||||
viewBox -25.5 0 81 18.478
|
||||
bytes 209902
|
||||
circle 4
|
||||
g 1
|
||||
line 495
|
||||
line 503
|
||||
path 3
|
||||
polygon 998
|
||||
polyline 179
|
||||
polygon 1031
|
||||
polyline 184
|
||||
rect 1
|
||||
svg 1
|
||||
text 4
|
||||
hash 7dd0774a2af69fe3
|
||||
hash d3224b3989291365
|
||||
@@ -1,5 +1,5 @@
|
||||
meshes [1962]
|
||||
meshes[].color [3] x1962
|
||||
meshes [1963]
|
||||
meshes[].color [3] x1963
|
||||
meshes[].indices [108] x6
|
||||
meshes[].indices [1152]
|
||||
meshes[].indices [1248] x3
|
||||
@@ -9,6 +9,7 @@ meshes[].indices [154014]
|
||||
meshes[].indices [1584]
|
||||
meshes[].indices [1716]
|
||||
meshes[].indices [180]
|
||||
meshes[].indices [204]
|
||||
meshes[].indices [2376]
|
||||
meshes[].indices [31104]
|
||||
meshes[].indices [348] x6
|
||||
@@ -25,6 +26,7 @@ meshes[].positions [1044] x6
|
||||
meshes[].positions [108] x30
|
||||
meshes[].positions [1188]
|
||||
meshes[].positions [120]
|
||||
meshes[].positions [132]
|
||||
meshes[].positions [16428]
|
||||
meshes[].positions [180] x9
|
||||
meshes[].positions [1890] x3
|
||||
@@ -73,4 +75,4 @@ walls[].start [2] x1273
|
||||
walls[].startCut [4] x873
|
||||
walls[].topDrop [2] x115
|
||||
walls[].topPlane [3] x271
|
||||
hash 5af7a0a70a5b3624
|
||||
hash 32750c509c57a271
|
||||
@@ -0,0 +1,11 @@
|
||||
viewBox -41.5 0 95 63.6
|
||||
bytes 3579
|
||||
g 1
|
||||
line 3
|
||||
path 1
|
||||
polygon 10
|
||||
polyline 2
|
||||
rect 1
|
||||
svg 1
|
||||
text 8
|
||||
hash c546873f54a3e7ff
|
||||
@@ -0,0 +1,11 @@
|
||||
viewBox -41.5 0 95 63.6
|
||||
bytes 3579
|
||||
g 1
|
||||
line 3
|
||||
path 1
|
||||
polygon 10
|
||||
polyline 2
|
||||
rect 1
|
||||
svg 1
|
||||
text 8
|
||||
hash c546873f54a3e7ff
|
||||
+13
-1
@@ -5,7 +5,7 @@
|
||||
// und den Diff der Dateien im Commit ansehen. Zahlen sind gerundet (Plan 1e-3 m, 3D 1e-4 m).
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { createHash } from "node:crypto";
|
||||
import { computeSection, generateElevationPlan, generatePlan, generateSectionPlan, planToSvgString, projectToModel3d } from "../core";
|
||||
import { computeSection, generateElevationPlan, generatePlan, generateSectionPlan, planToSvgString, projectToModel3d, projectWithTemplate } from "../core";
|
||||
import { sampleProject } from "../model/sampleProject";
|
||||
import { buildComplexSampleProject } from "../model/sampleProjectComplex";
|
||||
import type { Project } from "../model/types";
|
||||
@@ -77,6 +77,18 @@ for (const [name, make] of projects) {
|
||||
}
|
||||
}
|
||||
|
||||
// [207] Situationsplan 1:500 (Ansichtsvorlage „Situation WBW") und Schwarzplan.
|
||||
for (const [id, file] of [["std-vt-situation-wbw", "situation"], ["std-vt-schwarzplan", "schwarzplan"]]) {
|
||||
it(`${file} 1:500`, async () => {
|
||||
const tpl = p.viewTemplates?.find((t) => t.id === id);
|
||||
if (!tpl) return;
|
||||
const tp = projectWithTemplate(p, "eg", tpl);
|
||||
const show = new Set([...codes].filter((c) => tpl.layerVisibility?.[c] !== false));
|
||||
const svg = planToSvgString(generatePlan(tp, "eg", show, undefined, tpl.detail ?? "grob", false, true, true, 500), { scaleDenominator: 500 });
|
||||
await expect(svgDigest(svg)).toMatchFileSnapshot(`__golden__/${name}-${file}-500.txt`);
|
||||
});
|
||||
}
|
||||
|
||||
it("Schnitt", async () => {
|
||||
const sec = p.drawingLevels.find((l) => l.kind === "section");
|
||||
if (!sec) return;
|
||||
|
||||
@@ -78,7 +78,8 @@ describe("[66] Präsentationsplan", () => {
|
||||
st().undo();
|
||||
expect((st().project.layouts ?? []).length).toBe(layoutsBefore);
|
||||
expect(st().project.viewSnapshots?.some((s) => s.id.startsWith("vs-pres-"))).toBe(false);
|
||||
});
|
||||
// [207] 60 s: mit den Nachbargebäuden des Musterhauses rechnet das Blatt im Container knapp über die 30 s des Standards.
|
||||
}, 60_000);
|
||||
|
||||
it("gewählte Geschosse, ohne Ansichten/Schnitt, Skizze an, A3: kleinerer Massstab", () => {
|
||||
const floors = project.drawingLevels.filter((l) => l.kind === "floor" && !l.layoutId).slice(0, 2).map((l) => l.id);
|
||||
|
||||
Reference in new issue
Block a user