[157] Plan-Review Teil 2: Gelände nur im Geschoss ±0.00 (Feld „Gelände zeigen“), Schnittmarken-Beschriftung weicht aus, Schattenrest am Erker, Stempel nicht auf dem First, Achsblasen hinter den Massketten, Achsen in Schnitt/Ansicht als Stummel, Schnitte ohne verdeckte Kanten, CLI-Schnitt/-Ansicht mit Höhenkoten
- Gelände/Höhenlinien/Baugrube nur im Geschoss nächst ±0.00 und ab 1:500; showTerrain an Ebene/Vorlage - Beschriftung der Schnitt-/Ansichtsmarken weicht Masszahlen, Texten, Blasen und anderen Marken aus - kleine Schattenreste an Abdeckungen entfallen (Keil neben dem Erker) - Dachlinien sind Hindernisse der Raumstempel; Achsblasen weichen Massketten aus - Achsen in Schnitt und Ansicht nur als Stummel auf der Blasenseite - Musterhaus komplex: Schnitte ohne verdeckte Kanten, eigene Vorlage mit; Nordpfeil verschoben - CLI section/elevation über viewportLevelPlan (Höhenkoten wie die App) - ankommende Treppe und Bodenbelag nur in Geschoss-Grundrissen (nicht auf Schnitt-Ebenen) - Ansicht: Schatten mit Tiefe je Stirn-Ende, Decken-Stirnfacetten geglättet - Goldens neu, TODO nachgeführt
This commit is contained in:
36 files changed
+582
-245
No files matched your search
@@ -43,21 +43,21 @@
|
||||
<polyline points="-1,2.9725 -1,2.3725 -1,1.7725" fill="none" stroke="#1f242c" stroke-width="0.025"/>
|
||||
<line x1="-1" y1="1.7725" x2="-0.85" y2="2.0125" stroke="#1f242c" stroke-width="0.025"/>
|
||||
<line x1="-1" y1="1.7725" x2="-1.15" y2="2.0125" stroke="#1f242c" stroke-width="0.025"/>
|
||||
<text x="-1.1725" y="1.5925" font-size="0.5" fill="#1f242c" font-family="sans-serif" transform="rotate(0 -1.1725 1.5925)">A</text>
|
||||
<polyline points="6,2.9725 6,2.3725 6,1.7725" fill="none" stroke="#1f242c" stroke-width="0.025"/>
|
||||
<line x1="6" y1="1.7725" x2="6.15" y2="2.0125" stroke="#1f242c" stroke-width="0.025"/>
|
||||
<line x1="6" y1="1.7725" x2="5.85" y2="2.0125" stroke="#1f242c" stroke-width="0.025"/>
|
||||
<text x="5.8275" y="1.5925" font-size="0.5" fill="#1f242c" font-family="sans-serif" transform="rotate(0 5.8275 1.5925)">A</text>
|
||||
<polygon points="-1,2.3725 6,2.3725 6,2.9725 -1,2.9725" fill="none" stroke="none" stroke-width="0"/>
|
||||
<line x1="-1" y1="6.6725" x2="6" y2="6.6725" stroke="#1f242c" stroke-width="0.018" stroke-dasharray="0.6 0.15 0.04 0.15" stroke-dashoffset="0.09"/>
|
||||
<polyline points="-1,6.9725 -1,6.3725 -1,5.7725" fill="none" stroke="#1f242c" stroke-width="0.025"/>
|
||||
<line x1="-1" y1="5.7725" x2="-0.85" y2="6.0125" stroke="#1f242c" stroke-width="0.025"/>
|
||||
<line x1="-1" y1="5.7725" x2="-1.15" y2="6.0125" stroke="#1f242c" stroke-width="0.025"/>
|
||||
<text x="-1.46125" y="5.5925" font-size="0.5" fill="#1f242c" font-family="sans-serif" transform="rotate(0 -1.46125 5.5925)">Süd</text>
|
||||
<polyline points="6,6.9725 6,6.3725 6,5.7725" fill="none" stroke="#1f242c" stroke-width="0.025"/>
|
||||
<line x1="6" y1="5.7725" x2="6.15" y2="6.0125" stroke="#1f242c" stroke-width="0.025"/>
|
||||
<line x1="6" y1="5.7725" x2="5.85" y2="6.0125" stroke="#1f242c" stroke-width="0.025"/>
|
||||
<text x="5.53875" y="5.5925" font-size="0.5" fill="#1f242c" font-family="sans-serif" transform="rotate(0 5.53875 5.5925)">Süd</text>
|
||||
<polygon points="-1,6.3725 6,6.3725 6,6.9725 -1,6.9725" fill="none" stroke="none" stroke-width="0"/>
|
||||
<text x="-1.1725" y="1.5925" font-size="0.5" fill="#1f242c" font-family="sans-serif" transform="rotate(0 -1.1725 1.5925)">A</text>
|
||||
<text x="5.8275" y="1.5925" font-size="0.5" fill="#1f242c" font-family="sans-serif" transform="rotate(0 5.8275 1.5925)">A</text>
|
||||
<text x="-1.46125" y="5.5925" font-size="0.5" fill="#1f242c" font-family="sans-serif" transform="rotate(0 -1.46125 5.5925)">Süd</text>
|
||||
<text x="5.53875" y="5.5925" font-size="0.5" fill="#1f242c" font-family="sans-serif" transform="rotate(0 5.53875 5.5925)">Süd</text>
|
||||
</g>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 6.8 KiB After Width: | Height: | Size: 6.8 KiB |
@@ -134,6 +134,15 @@ describe("dossier-cli", () => {
|
||||
expect(bytes.length).toBeGreaterThan(10_000);
|
||||
}, 60_000);
|
||||
|
||||
it("[157] Schnitt und Ansicht mit Höhenkoten wie in der App", async () => {
|
||||
for (const kind of ["section", "elevation"] as const) {
|
||||
const lvl = sampleProject.drawingLevels.find((l) => l.kind === kind);
|
||||
if (!lvl) continue;
|
||||
const out = join(dir, `koten-${kind}.svg`);
|
||||
expect(await call(kind, lvl.name, "--out", out)).toBe(0);
|
||||
expect(readFileSync(out, "utf8")).toContain("±0.00");
|
||||
}
|
||||
}, 60_000);
|
||||
it("Schnitt und STEP über das WASM", async () => {
|
||||
const section = sampleProject.drawingLevels.find((l) => l.kind === "section");
|
||||
if (section) {
|
||||
|
||||
+6
-11
@@ -105,6 +105,7 @@ import {
|
||||
patchItem,
|
||||
generatePlan,
|
||||
generateSectionPlan,
|
||||
viewportLevelPlan,
|
||||
planToRenderScene,
|
||||
projectToModel3d,
|
||||
parseProjectFile,
|
||||
@@ -204,7 +205,7 @@ function findLevel(project: Project, kinds: string[], name: string | undefined)
|
||||
}
|
||||
|
||||
/** Ansichts-Felder einer Vorlage, die am Geschoss/Schnitt/Ansicht stehen (wie `state/viewTemplates.ts`). */
|
||||
const TEMPLATE_LEVEL_KEYS = ["cutHeight", "viewTop", "viewBottom", "viewDepth", "shadows", "hiddenLines", "sketch", "cutHatch", "floorFinish"] as const;
|
||||
const TEMPLATE_LEVEL_KEYS = ["cutHeight", "viewTop", "viewBottom", "viewDepth", "shadows", "hiddenLines", "sketch", "cutHatch", "floorFinish", "showTerrain"] as const;
|
||||
|
||||
/**
|
||||
* [33]/[34] `--template <Name|id>`: Ansichtsvorlage auf die Ebene anwenden (Override-Regeln nach
|
||||
@@ -676,16 +677,10 @@ async function execute(project: Project, file: string, command: string, rest: st
|
||||
if (!found) fail(`${command} nicht gefunden: ${name ?? "(erste)"}`);
|
||||
const sp = withSketch(withTemplate(project, found.id, args), found.id, args);
|
||||
const lvl = sp.drawingLevels.find((l) => l.id === found.id) ?? found;
|
||||
let plan;
|
||||
if (kind === "section") {
|
||||
const o = await computeSection(sp, lvl);
|
||||
if (!o) fail("keine gültige Schnittlinie");
|
||||
// Wie die App: verdeckte Kanten nach der Ebene, geschnittene Fenster/Türen.
|
||||
plan = generateSectionPlan(o, inkArg(args), { visibleCodes: allCodes, hiddenLines: lvl.hiddenLines, openings: true, scaleDenominator: scale });
|
||||
} else {
|
||||
plan = generateElevationPlan(sp, lvl, { scaleDenominator: scale, mono: inkArg(args) });
|
||||
if (!plan) fail("keine gültige Ansichtslinie");
|
||||
}
|
||||
// [157] Wie die App (`viewportLevelPlan`): verdeckte Kanten nach der Ebene, geschnittene Fenster/Türen,
|
||||
// automatische Höhenkoten (`levelMarks`) und die eigenen 2D-Elemente der Schnitt-/Ansichtsebene.
|
||||
const plan = await viewportLevelPlan(sp, lvl.id, allCodes, undefined, scale, false, inkArg(args));
|
||||
if (plan.primitives.length === 0) fail(kind === "section" ? "keine gültige Schnittlinie" : "keine gültige Ansichtslinie");
|
||||
if (args.flags.get("format") === "json") {
|
||||
out(args, JSON.stringify(planToRenderScene(plan, scale)), `${lvl.name}.scene.json`);
|
||||
return 0;
|
||||
|
||||
@@ -1162,6 +1162,7 @@ export const de = {
|
||||
"resources.viewTemplates.shadows": "Schatten",
|
||||
"resources.viewTemplates.hiddenLines": "Verdeckte Kanten",
|
||||
"resources.viewTemplates.cutHatch": "Schnittflächen 1:100 schraffiert (statt schwarz)",
|
||||
"resources.viewTemplates.showTerrain": "Gelände, Höhenlinien und Baugrube zeigen (ohne: nur Geschoss ±0.00 und Situation)",
|
||||
"resources.viewTemplates.floorFinish": "Bodenbelag zeigen (ohne: ab 1:50 bzw. „fein“)",
|
||||
"resources.viewTemplates.floorFinish.off": "aus",
|
||||
"resources.viewTemplates.floorFinish.wet": "Nassräume (Platten, gröber als 1:50)",
|
||||
|
||||
@@ -1156,6 +1156,7 @@ export const en: Record<TranslationKey, string> = {
|
||||
"resources.viewTemplates.shadows": "Shadows",
|
||||
"resources.viewTemplates.hiddenLines": "Hidden lines",
|
||||
"resources.viewTemplates.cutHatch": "Hatched cut areas at 1:100 (instead of solid black)",
|
||||
"resources.viewTemplates.showTerrain": "Show terrain, contours and excavation (unset: only the ±0.00 storey and site plan)",
|
||||
"resources.viewTemplates.floorFinish": "Show floor finish (unset: from 1:50 or “fine”)",
|
||||
"resources.viewTemplates.floorFinish.off": "off",
|
||||
"resources.viewTemplates.floorFinish.wet": "Wet rooms (tiles, coarser than 1:50)",
|
||||
|
||||
@@ -16,7 +16,8 @@ const count = (pl: { primitives: unknown[] }, cls: string) => pl.primitives.filt
|
||||
|
||||
async function probe(proj: typeof p) {
|
||||
const codes = collectVisibleCodes(proj.layers);
|
||||
const ug = generatePlan(proj, "ug", codes, undefined, "mittel", false, true, true, 100);
|
||||
// [157] Gelände im Grundriss nur im Geschoss nächst ±0.00 (EG).
|
||||
const ug = generatePlan(proj, "eg", codes, undefined, "mittel", false, true, true, 100);
|
||||
const sec = await computeSection(proj, proj.drawingLevels.find((l) => l.id === "schnitt-a")!);
|
||||
const sp = generateSectionPlan(sec!, false, { visibleCodes: codes, hiddenLines: true, openings: true, scaleDenominator: 100 });
|
||||
const ep = generateElevationPlan(proj, proj.drawingLevels.find((l) => l.id === "ansicht-sued")!, { visibleCodes: codes, scaleDenominator: 100 })!;
|
||||
|
||||
@@ -32,6 +32,12 @@ describe("Musterhaus komplex", () => {
|
||||
if (process.env.MK_OUT) writeFileSync(process.env.MK_OUT, text);
|
||||
});
|
||||
|
||||
it("[157] Schnitte ohne verdeckte Kanten (nur sichtbare Projektion); verdeckt über eine eigene Vorlage", () => {
|
||||
for (const l of p.drawingLevels.filter((l) => l.kind === "section")) expect(l.hiddenLines ?? false).toBe(false);
|
||||
expect(p.viewTemplates!.find((t) => t.id === "vt-schnitt")?.hiddenLines ?? false).toBe(false);
|
||||
expect(p.viewTemplates!.some((t) => t.hiddenLines === true)).toBe(true);
|
||||
});
|
||||
|
||||
it("enthält alle Bauteil-Arten", () => {
|
||||
expect(p.drawingLevels.filter((l) => l.kind === "floor").map((l) => l.id)).toEqual(["ug", "eg", "og", "dg"]);
|
||||
expect(p.rooms!.length).toBeGreaterThanOrEqual(20);
|
||||
|
||||
@@ -102,8 +102,8 @@ const LEVELS: DrawingLevel[] = [
|
||||
{ id: "og", name: "Obergeschoss", kind: "floor", visible: true, locked: false, floorHeight: H.og, cutHeight: 1.0, baseElevation: Z.og, viewTop: 2.8, viewBottom: 0, viewDepth: -0.3, templateId: "vt-gr100", templateLinked: false },
|
||||
{ id: "dg", name: "Dachgeschoss", kind: "floor", visible: true, locked: false, floorHeight: H.dg, cutHeight: 1.0, baseElevation: Z.dg, viewTop: 2.6, viewBottom: 0, viewDepth: -0.3, templateId: "vt-gr100", templateLinked: false },
|
||||
// Schnitte: A längs durch Schleppgaube und Dachfenster (Blick nach Westen), B quer durch Treppen und Erker (Blick nach Norden).
|
||||
{ id: "schnitt-a", name: "Schnitt A-A", kind: "section", visible: true, locked: false, linePoints: [P(3, -9), P(3, 21)], directionSign: 1, hiddenLines: true, levelMarks: true, templateId: "vt-schnitt" },
|
||||
{ id: "schnitt-b", name: "Schnitt B-B", kind: "section", visible: true, locked: false, linePoints: [P(-9, 5.6), P(20, 5.6)], directionSign: 1, hiddenLines: true, levelMarks: true, templateId: "vt-schnitt" },
|
||||
{ id: "schnitt-a", name: "Schnitt A-A", kind: "section", visible: true, locked: false, linePoints: [P(3, -9), P(3, 21)], directionSign: 1, levelMarks: true, templateId: "vt-schnitt" },
|
||||
{ id: "schnitt-b", name: "Schnitt B-B", kind: "section", visible: true, locked: false, linePoints: [P(-9, 5.6), P(20, 5.6)], directionSign: 1, levelMarks: true, templateId: "vt-schnitt" },
|
||||
// Ansichten: Linie so, dass die Blickrichtung (linke Normale der Linie) zum Haus zeigt.
|
||||
{ id: "ansicht-sued", name: "Ansicht Süd", kind: "elevation", visible: true, locked: false, linePoints: [P(-9, -10), P(20, -10)], directionSign: 1, shadows: true, levelMarks: true, templateId: "vt-ansicht" },
|
||||
{ id: "ansicht-ost", name: "Ansicht Ost", kind: "elevation", visible: true, locked: false, linePoints: [P(24, -6), P(24, 20)], directionSign: 1, shadows: true, levelMarks: true, templateId: "vt-ansicht" },
|
||||
@@ -586,7 +586,8 @@ function annotations(): Drawing2D[] {
|
||||
const cloud = [...arcPts(P(12.6, 0), 1.9, -Math.PI, Math.PI, 18).slice(0, 18)].map((q) => P(q.x, r3(q.y * 0.6)));
|
||||
add("revision-a", "eg", "90", { shape: "polyline", closed: true, pts: cloud, bulge: cloud.map(() => -0.45) }, { color: "#c0392b", weightMm: 0.35 });
|
||||
add("revision-a-text", "eg", "90", { shape: "text", at: P(14.6, -1.4), text: "△A Pfosten-Riegel statt Fenstertür", height: 0.22, angle: 0 }, { color: "#c0392b" });
|
||||
add("nordpfeil", "eg", "50", { shape: "block", blockDefId: "blk-nord", at: P(24, -10), rotation: 0, scale: 1.5 });
|
||||
// [157] Nordpfeil am Ostrand der Parzelle zwischen den Bäumen (vorher auf „Kat.-Nr. 2417“ und der Ansichtslinie Ost).
|
||||
add("nordpfeil", "eg", "50", { shape: "block", blockDefId: "blk-nord", at: P(26.8, 2.5), rotation: 0, scale: 1.2 });
|
||||
|
||||
// Detail Deckenauflager (2D, Massstab 1:10): Schichten mit SIA-Schraffuren, Achse, Bruchlinie, Beschriftung.
|
||||
const dl = "detail-traufe";
|
||||
@@ -693,7 +694,9 @@ function views(): Pick<Project, "viewTemplates" | "viewSnapshots" | "viewSnapsho
|
||||
viewTemplates: [
|
||||
{ id: "vt-gr100", name: "Grundriss 1:100", detail: "mittel", scaleDenominator: 100, scaleLineWeights: true, cutHeight: 1.0 },
|
||||
{ id: "vt-gr50", name: "Grundriss 1:50 fein", detail: "fein", scaleDenominator: 50, scaleLineWeights: true },
|
||||
{ id: "vt-schnitt", name: "Schnitt 1:100", detail: "mittel", scaleDenominator: 100, hiddenLines: true },
|
||||
// [157] Schnitte zeigen nur die sichtbare Projektion; verdeckte Kanten über die eigene Vorlage.
|
||||
{ id: "vt-schnitt", name: "Schnitt 1:100", detail: "mittel", scaleDenominator: 100 },
|
||||
{ id: "vt-schnitt-verdeckt", name: "Schnitt mit verdeckten Kanten", detail: "mittel", scaleDenominator: 100, hiddenLines: true },
|
||||
{ id: "vt-ansicht", name: "Ansicht 1:100 mit Schatten", detail: "mittel", scaleDenominator: 100, shadows: true },
|
||||
{ id: "vt-brand", name: "Brandschutzplan", detail: "grob", scaleDenominator: 100, enabledOverrideRuleIds: ["or-brand"], mono: true },
|
||||
],
|
||||
|
||||
@@ -1127,6 +1127,11 @@ export type DrawingLevel = {
|
||||
* [156] Bodenbelag-Muster im Grundriss: fehlt = automatisch (ab 1:50 bzw. Detail „fein" alle, gröber keine).
|
||||
*/
|
||||
floorFinish?: FloorFinishDisplay;
|
||||
/**
|
||||
* [157] Gelände, Höhenlinien und Baugruben im Grundriss: fehlt = automatisch (nur im Geschoss nächst ±0.00
|
||||
* und ab 1:500), `true` immer, `false` nie. Schatten der Sonnenstudie bleiben davon unberührt.
|
||||
*/
|
||||
showTerrain?: boolean;
|
||||
/**
|
||||
* Grundriss-Unterlage (nur Schnitt/Ansicht): ID eines Geschosses, dessen
|
||||
* Grundriss AUSGERICHTET unter dem Schnitt/der Ansicht gezeigt wird (Schnitt-
|
||||
@@ -3494,6 +3499,8 @@ export type ViewTemplate = {
|
||||
cutHatch?: boolean;
|
||||
/** [156] Bodenbelag-Muster im Grundriss (s. `DrawingLevel::floor_finish`). */
|
||||
floorFinish?: FloorFinishDisplay;
|
||||
/** [157] Gelände im Grundriss zeigen (s. `DrawingLevel::show_terrain`). */
|
||||
showTerrain?: boolean;
|
||||
/** Strichstärken mit dem Massstab skalieren. */
|
||||
scaleLineWeights?: boolean;
|
||||
/** Schnitthöhe über OKFF ([36]). */
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
viewBox -4.2 0 37.045 17.678
|
||||
bytes 268786
|
||||
viewBox -4.2 0 37.045 17.378
|
||||
bytes 263351
|
||||
circle 4
|
||||
g 1
|
||||
line 625
|
||||
line 561
|
||||
polygon 1563
|
||||
polyline 69
|
||||
polyline 80
|
||||
rect 1
|
||||
svg 1
|
||||
text 4
|
||||
hash 34dbec9eca04082d
|
||||
hash f8fdcf6a55c9dcde
|
||||
@@ -1,26 +1,12 @@
|
||||
<<<<<<< HEAD
|
||||
viewBox -4.243 0 23.243 18.205
|
||||
bytes 23064
|
||||
=======
|
||||
viewBox -12.8 0 37.6 33.6
|
||||
bytes 315635
|
||||
>>>>>>> bbef69e
|
||||
bytes 23004
|
||||
circle 14
|
||||
g 1
|
||||
line 91
|
||||
polygon 22
|
||||
<<<<<<< HEAD
|
||||
polyline 20
|
||||
rect 1
|
||||
svg 1
|
||||
text 36
|
||||
tspan 12
|
||||
hash 476f813f443d315d
|
||||
=======
|
||||
polyline 72
|
||||
polyline 22
|
||||
rect 1
|
||||
svg 1
|
||||
text 34
|
||||
tspan 9
|
||||
hash dc8c243d62798e55
|
||||
>>>>>>> bbef69e
|
||||
hash f0bc37741422757a
|
||||
@@ -1,25 +1,12 @@
|
||||
<<<<<<< HEAD
|
||||
viewBox -4.243 0 23.243 18.205
|
||||
bytes 307254
|
||||
=======
|
||||
viewBox -12.65 0 37.3 33.3
|
||||
bytes 326675
|
||||
>>>>>>> bbef69e
|
||||
bytes 325522
|
||||
circle 14
|
||||
g 1
|
||||
line 3202
|
||||
line 3206
|
||||
polygon 76
|
||||
<<<<<<< HEAD
|
||||
polyline 78
|
||||
=======
|
||||
polyline 77
|
||||
>>>>>>> bbef69e
|
||||
polyline 80
|
||||
rect 1
|
||||
svg 1
|
||||
text 36
|
||||
tspan 12
|
||||
<<<<<<< HEAD
|
||||
hash 24e2377802dd7bbc
|
||||
=======
|
||||
hash e1818f99b9a4f2be
|
||||
>>>>>>> bbef69e
|
||||
hash c754734e5a61a0df
|
||||
@@ -1,27 +1,13 @@
|
||||
viewBox -41.5 0 95 63.6
|
||||
<<<<<<< HEAD
|
||||
bytes 77791
|
||||
=======
|
||||
bytes 83901
|
||||
>>>>>>> bbef69e
|
||||
bytes 79943
|
||||
circle 16
|
||||
g 1
|
||||
line 158
|
||||
line 172
|
||||
path 18
|
||||
<<<<<<< HEAD
|
||||
polygon 91
|
||||
polygon 90
|
||||
polyline 124
|
||||
rect 1
|
||||
svg 1
|
||||
text 118
|
||||
tspan 26
|
||||
hash 152d5241c7868827
|
||||
=======
|
||||
polygon 106
|
||||
polyline 122
|
||||
rect 1
|
||||
svg 1
|
||||
text 116
|
||||
tspan 24
|
||||
hash 9c39493f932d8e7f
|
||||
>>>>>>> bbef69e
|
||||
hash 9dadf0534a699dd9
|
||||
@@ -1,26 +1,13 @@
|
||||
viewBox -41.5 0 95 63.6
|
||||
<<<<<<< HEAD
|
||||
bytes 128960
|
||||
=======
|
||||
bytes 112420
|
||||
>>>>>>> bbef69e
|
||||
bytes 131023
|
||||
circle 16
|
||||
g 1
|
||||
line 403
|
||||
line 419
|
||||
path 39
|
||||
<<<<<<< HEAD
|
||||
polygon 253
|
||||
polygon 252
|
||||
polyline 145
|
||||
=======
|
||||
polygon 268
|
||||
polyline 139
|
||||
>>>>>>> bbef69e
|
||||
rect 1
|
||||
svg 1
|
||||
text 121
|
||||
tspan 32
|
||||
<<<<<<< HEAD
|
||||
hash d4d84942c135622a
|
||||
=======
|
||||
hash edefcc8532eaef5a
|
||||
>>>>>>> bbef69e
|
||||
hash ff2665a76f5bbb8d
|
||||
@@ -1,27 +1,12 @@
|
||||
<<<<<<< HEAD
|
||||
viewBox -4.243 0 25.297 23.11
|
||||
bytes 49755
|
||||
viewBox -12.8 0 37.6 33.6
|
||||
bytes 51729
|
||||
circle 14
|
||||
g 1
|
||||
line 128
|
||||
line 142
|
||||
polygon 52
|
||||
polyline 111
|
||||
rect 1
|
||||
svg 1
|
||||
text 90
|
||||
tspan 22
|
||||
hash f34a5df35938ec79
|
||||
=======
|
||||
viewBox -12.8 0 37.6 33.6
|
||||
bytes 348993
|
||||
circle 14
|
||||
g 1
|
||||
line 3307
|
||||
polygon 67
|
||||
polyline 158
|
||||
rect 1
|
||||
svg 1
|
||||
text 90
|
||||
tspan 21
|
||||
hash 937c57f380dd771c
|
||||
>>>>>>> bbef69e
|
||||
text 88
|
||||
tspan 19
|
||||
hash 17f9cbe73785a7bd
|
||||
@@ -1,27 +1,13 @@
|
||||
<<<<<<< HEAD
|
||||
viewBox -4.243 0 25.297 23.11
|
||||
bytes 361442
|
||||
=======
|
||||
viewBox -12.65 0 37.3 33.3
|
||||
bytes 380024
|
||||
>>>>>>> bbef69e
|
||||
bytes 370588
|
||||
circle 14
|
||||
g 1
|
||||
line 3227
|
||||
line 3238
|
||||
path 21
|
||||
<<<<<<< HEAD
|
||||
polygon 213
|
||||
polyline 180
|
||||
=======
|
||||
polygon 228
|
||||
polyline 173
|
||||
>>>>>>> bbef69e
|
||||
rect 1
|
||||
svg 1
|
||||
text 91
|
||||
tspan 24
|
||||
<<<<<<< HEAD
|
||||
hash 4d3f45b22f1bbcc7
|
||||
=======
|
||||
hash 1db0de3a22bf58b3
|
||||
>>>>>>> bbef69e
|
||||
hash d968a9e0e5adcdd3
|
||||
@@ -1,29 +1,13 @@
|
||||
<<<<<<< HEAD
|
||||
viewBox -10.004 0 31.058 26.958
|
||||
bytes 51629
|
||||
viewBox -12.8 0 37.6 33.6
|
||||
bytes 52830
|
||||
circle 14
|
||||
g 1
|
||||
line 115
|
||||
line 121
|
||||
path 4
|
||||
polygon 44
|
||||
polyline 81
|
||||
rect 1
|
||||
svg 1
|
||||
text 75
|
||||
tspan 20
|
||||
hash c69c51600b89e05d
|
||||
=======
|
||||
viewBox -12.8 0 37.6 33.6
|
||||
bytes 48948
|
||||
circle 14
|
||||
g 1
|
||||
line 110
|
||||
path 2
|
||||
polygon 60
|
||||
polyline 83
|
||||
rect 1
|
||||
svg 1
|
||||
text 73
|
||||
tspan 18
|
||||
hash 46549da9c57b9b6d
|
||||
>>>>>>> bbef69e
|
||||
hash d87f0eaf1cd610d4
|
||||
@@ -1,28 +1,13 @@
|
||||
<<<<<<< HEAD
|
||||
viewBox -10.004 0 31.058 26.958
|
||||
bytes 61927
|
||||
viewBox -12.65 0 37.3 33.3
|
||||
bytes 62538
|
||||
circle 14
|
||||
g 1
|
||||
line 120
|
||||
line 117
|
||||
path 15
|
||||
polygon 89
|
||||
polyline 87
|
||||
=======
|
||||
viewBox -12.65 0 37.3 33.3
|
||||
bytes 59530
|
||||
circle 14
|
||||
g 1
|
||||
line 115
|
||||
path 13
|
||||
polygon 105
|
||||
polyline 89
|
||||
>>>>>>> bbef69e
|
||||
polyline 92
|
||||
rect 1
|
||||
svg 1
|
||||
text 75
|
||||
tspan 20
|
||||
<<<<<<< HEAD
|
||||
hash 313f8c57cbd6ef78
|
||||
=======
|
||||
hash d4a194ff968a66e0
|
||||
>>>>>>> bbef69e
|
||||
hash 0a0d09cb775a502b
|
||||
@@ -1,11 +1,11 @@
|
||||
viewBox 4.457 0 21.343 17.678
|
||||
bytes 42193
|
||||
viewBox 4.457 0 21.343 17.378
|
||||
bytes 34158
|
||||
circle 3
|
||||
g 1
|
||||
line 82
|
||||
line 33
|
||||
polygon 186
|
||||
polyline 26
|
||||
polyline 16
|
||||
rect 1
|
||||
svg 1
|
||||
text 3
|
||||
hash 7346479eea533389
|
||||
hash ab512b19fa3bae7c
|
||||
@@ -1,11 +1,11 @@
|
||||
viewBox -1.961 0 8.922 7.473
|
||||
bytes 8394
|
||||
bytes 6727
|
||||
g 1
|
||||
line 32
|
||||
polygon 30
|
||||
polyline 4
|
||||
line 29
|
||||
polygon 16
|
||||
polyline 5
|
||||
rect 1
|
||||
svg 1
|
||||
text 7
|
||||
tspan 3
|
||||
hash 0b2c8ae95b490985
|
||||
hash 743dc1fed14a7c7e
|
||||
@@ -1,11 +1,11 @@
|
||||
viewBox -1.731 0 8.461 7.322
|
||||
bytes 11942
|
||||
bytes 10317
|
||||
g 1
|
||||
line 33
|
||||
polygon 62
|
||||
polyline 8
|
||||
line 30
|
||||
polygon 48
|
||||
polyline 9
|
||||
rect 1
|
||||
svg 1
|
||||
text 7
|
||||
tspan 3
|
||||
hash 4fc20257396fe067
|
||||
hash 4d8c794c3190f4eb
|
||||
@@ -7,4 +7,4 @@ polyline 5
|
||||
rect 1
|
||||
svg 1
|
||||
text 4
|
||||
hash c49636d6917d117d
|
||||
hash db4a60e9ca0aace2
|
||||
@@ -7,4 +7,4 @@ polyline 5
|
||||
rect 1
|
||||
svg 1
|
||||
text 4
|
||||
hash c255eeef055bcda6
|
||||
hash aa64b436ceb679c4
|
||||
@@ -40,6 +40,11 @@ describe("viewTemplates", () => {
|
||||
const q = applyOps(p, applyToLevelOps(p, "tb", "eg", false));
|
||||
expect(q.drawingLevels.find((l) => l.id === "eg")?.floorFinish).toBe("wet");
|
||||
});
|
||||
it("[157] setzt „Gelände zeigen“ am Geschoss", () => {
|
||||
const p = applyOps(base(), addTemplateOps({ id: "tg", name: "Umgebung", showTerrain: true }));
|
||||
const q = applyOps(p, applyToLevelOps(p, "tg", "og", false));
|
||||
expect(q.drawingLevels.find((l) => l.id === "og")?.showTerrain).toBe(true);
|
||||
});
|
||||
it("erfasst Geschoss- und Anzeigewerte", () => {
|
||||
const p = base();
|
||||
const t = captureTemplate("t", "V", p.drawingLevels.find((l) => l.id === "eg"), ui);
|
||||
|
||||
@@ -29,7 +29,7 @@ export interface ViewTemplateUi {
|
||||
}
|
||||
|
||||
/** Geschoss-Felder, die eine Vorlage setzt (fehlt das Vorlagen-Feld, bleibt die Ansicht unberührt). */
|
||||
const LEVEL_KEYS = ["cutHeight", "viewTop", "viewBottom", "viewDepth", "shadows", "hiddenLines", "sketch", "cutHatch", "floorFinish"] as const;
|
||||
const LEVEL_KEYS = ["cutHeight", "viewTop", "viewBottom", "viewDepth", "shadows", "hiddenLines", "sketch", "cutHatch", "floorFinish", "showTerrain"] as const;
|
||||
|
||||
/** Teilobjekt für das Geschoss aus den gesetzten Feldern der Vorlage. */
|
||||
export function levelPatch(t: ViewTemplate): Partial<DrawingLevel> {
|
||||
|
||||
@@ -116,7 +116,7 @@ function TemplateDetail({
|
||||
<NumberField value={tpl[key] ?? dflt} step={0.1} onChange={(v) => patch({ [key]: v })} />
|
||||
</Optional>
|
||||
);
|
||||
const bool = (key: "mono" | "shadows" | "hiddenLines" | "scaleLineWeights" | "sketch" | "cutHatch", label: string) => (
|
||||
const bool = (key: "mono" | "shadows" | "hiddenLines" | "scaleLineWeights" | "sketch" | "cutHatch" | "showTerrain", label: string) => (
|
||||
<Optional label={label} on={tpl[key] !== undefined} onToggle={(on) => patch({ [key]: on ? false : null })}>
|
||||
<input type="checkbox" checked={tpl[key] === true} onChange={(e) => patch({ [key]: e.target.checked })} />
|
||||
</Optional>
|
||||
@@ -157,6 +157,7 @@ function TemplateDetail({
|
||||
{bool("scaleLineWeights", t("resources.viewTemplates.scaleLineWeights"))}
|
||||
{bool("sketch", t("resources.viewTemplates.sketch"))}
|
||||
{bool("cutHatch", t("resources.viewTemplates.cutHatch"))}
|
||||
{bool("showTerrain", t("resources.viewTemplates.showTerrain"))}
|
||||
<Optional label={t("resources.viewTemplates.floorFinish")} on={tpl.floorFinish !== undefined} onToggle={(on) => patch({ floorFinish: on ? "off" : null })}>
|
||||
<select className="res-input" aria-label={t("resources.viewTemplates.floorFinish")} value={tpl.floorFinish ?? "off"} onChange={(e) => patch({ floorFinish: e.target.value })}>
|
||||
{(["off", "wet", "all"] as const).map((v) => (
|
||||
|
||||
Reference in new issue
Block a user