[184] Ansicht: Fenster/Türen nach Detailgrad, Storenkasten, Schnittdetail als Dreifach-Wahl
Grob: nur Öffnungsumriss mit Glas-/Blattfläche (kein Rahmen, Bank, Teilung, Laibungsschatten); mittel ohne Fensterbank; fein wie bisher. Storenkasten in der Ansicht nach windows.shadingBox. Ressourcen-Tab: Schnittdetail Wie Detailgrad / Voll / Vereinfacht.
This commit is contained in:
12 files changed
+91
-28
No files matched your search
@@ -26,8 +26,6 @@
|
||||
<polygon points="1.8,5.06564 2.7,5.06564 2.7,4.98564 1.8,4.98564" fill="#a7adb5" stroke="none" stroke-width="0"/>
|
||||
<polygon points="1.8,7.08564 1.88,7.08564 1.88,5.06564 1.8,5.06564" fill="#a7adb5" stroke="none" stroke-width="0"/>
|
||||
<polygon points="4,6.18564 5,6.18564 5,4.98564 4,4.98564" fill="#dcdcdc" stroke="#2b3039" stroke-width="0.013"/>
|
||||
<polygon points="3.98,6.22064 5.02,6.22064 5.02,6.18564 3.98,6.18564" fill="#cccccb" stroke="#2b3039" stroke-width="0.013"/>
|
||||
<polygon points="3.95,6.24564 5.05,6.24564 5.05,6.22064 3.95,6.22064" fill="#cccccb" stroke="#2b3039" stroke-width="0.013"/>
|
||||
<polygon points="4.06,6.12564 4.94,6.12564 4.94,5.04564 4.06,5.04564" fill="none" stroke="#2b3039" stroke-width="0.013"/>
|
||||
<polygon points="4.12,6.06564 4.88,6.06564 4.88,5.10564 4.12,5.10564" fill="#d3d8dd" stroke="#2b3039" stroke-width="0.013"/>
|
||||
<polygon points="4,5.06564 5,5.06564 5,4.98564 4,4.98564" fill="#a7adb5" stroke="none" stroke-width="0"/>
|
||||
|
||||
|
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 5.0 KiB |
+6
-2
@@ -1223,6 +1223,10 @@ export const de = {
|
||||
"resources.modelViews.base.view": "wie Ansicht",
|
||||
"resources.modelViews.builtin": "Eingebaute Stufe (nur Detailgrad) — zum Anpassen duplizieren.",
|
||||
"resources.modelViews.asBase": "wie Basis",
|
||||
"resources.modelViews.asDetail": "Wie Detailgrad",
|
||||
"resources.modelViews.detail.full": "Voll",
|
||||
"resources.modelViews.detail.simple": "Vereinfacht",
|
||||
"resources.modelViews.tip.sectionDetail": "Wie Fenster und Türen im Schnitt aussehen. Wie Detailgrad: grob = Strich, mittel = einfacher Rahmen, fein = volles Profil. Voll: immer volles Profil mit Sturz, Kämpfer und Bank. Vereinfacht: höchstens einfacher Rahmen.",
|
||||
"resources.modelViews.on": "an",
|
||||
"resources.modelViews.off": "aus",
|
||||
"resources.modelViews.section.doors": "Türen",
|
||||
@@ -1236,9 +1240,9 @@ export const de = {
|
||||
"resources.modelViews.section.sectionMarks": "Schnittmarken",
|
||||
"resources.modelViews.section.elevation": "Ansicht",
|
||||
"resources.modelViews.opt.doors.threshold": "Schwelle (Grundriss)",
|
||||
"resources.modelViews.opt.doors.sectionDetail": "Zarge und Sturz im Schnitt",
|
||||
"resources.modelViews.opt.doors.sectionDetail": "Schnittdetail Tür",
|
||||
"resources.modelViews.opt.windows.lintelLine": "Sturzlinie (Grundriss)",
|
||||
"resources.modelViews.opt.windows.sectionDetail": "Rahmen, Sturz, Bank im Schnitt",
|
||||
"resources.modelViews.opt.windows.sectionDetail": "Schnittdetail Fenster",
|
||||
"resources.modelViews.opt.windows.elevationDivision": "Fensterteilung (Ansicht)",
|
||||
"resources.modelViews.opt.stairs.sectionBeyond": "Treppe hinter dem Schnitt",
|
||||
"resources.modelViews.opt.stairs.runStartMm": "Lauflinie Versatz Anfang (mm Papier)",
|
||||
|
||||
+6
-2
@@ -1217,6 +1217,10 @@ export const en: Record<TranslationKey, string> = {
|
||||
"resources.modelViews.base.view": "as view",
|
||||
"resources.modelViews.builtin": "Built-in level (detail level only) — duplicate it to customise.",
|
||||
"resources.modelViews.asBase": "as base",
|
||||
"resources.modelViews.asDetail": "Same as detail level",
|
||||
"resources.modelViews.detail.full": "Full",
|
||||
"resources.modelViews.detail.simple": "Simplified",
|
||||
"resources.modelViews.tip.sectionDetail": "How windows and doors look in section. Same as detail level: coarse = single line, medium = simple frame, fine = full profile. Full: always the full profile with lintel, transom and sill. Simplified: at most a simple frame.",
|
||||
"resources.modelViews.on": "on",
|
||||
"resources.modelViews.off": "off",
|
||||
"resources.modelViews.section.doors": "Doors",
|
||||
@@ -1230,9 +1234,9 @@ export const en: Record<TranslationKey, string> = {
|
||||
"resources.modelViews.section.sectionMarks": "Section marks",
|
||||
"resources.modelViews.section.elevation": "Elevation",
|
||||
"resources.modelViews.opt.doors.threshold": "Threshold (plan)",
|
||||
"resources.modelViews.opt.doors.sectionDetail": "Frame and lintel in section",
|
||||
"resources.modelViews.opt.doors.sectionDetail": "Door section detail",
|
||||
"resources.modelViews.opt.windows.lintelLine": "Lintel line (plan)",
|
||||
"resources.modelViews.opt.windows.sectionDetail": "Frame, lintel, sill in section",
|
||||
"resources.modelViews.opt.windows.sectionDetail": "Window section detail",
|
||||
"resources.modelViews.opt.windows.elevationDivision": "Window division (elevation)",
|
||||
"resources.modelViews.opt.stairs.sectionBeyond": "Stair beyond the section",
|
||||
"resources.modelViews.opt.stairs.runStartMm": "Walking line start offset (paper mm)",
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
viewBox -4.2 0 38 18.478
|
||||
bytes 178085
|
||||
bytes 175617
|
||||
circle 4
|
||||
g 1
|
||||
line 521
|
||||
path 2
|
||||
polygon 774
|
||||
polygon 754
|
||||
polyline 161
|
||||
rect 1
|
||||
svg 1
|
||||
text 4
|
||||
hash 587f4d87add7ecf0
|
||||
hash ebd823ab8ac843c7
|
||||
@@ -1,9 +1,9 @@
|
||||
viewBox 0.1 0 6.8 7.586
|
||||
bytes 5005
|
||||
bytes 4771
|
||||
g 1
|
||||
line 7
|
||||
polygon 32
|
||||
polygon 30
|
||||
polyline 4
|
||||
rect 1
|
||||
svg 1
|
||||
hash 14856a9e9c0c8513
|
||||
hash 027bcc5f19d4d4e7
|
||||
@@ -127,7 +127,8 @@ describe("modelViews", () => {
|
||||
const elev = (q: Project) => JSON.stringify(generateElevationPlan(q, q.drawingLevels.find((l) => l.id === "ansicht-sued")!)?.primitives.length);
|
||||
const ohne = elev(noShadow(sampleProject));
|
||||
expect(ohne).not.toBe(elev(sampleProject));
|
||||
let e = noShadow(withMv());
|
||||
// [184] Basis „mittel" wie der Massstab des Musterhauses (fein zeichnet in der Ansicht zusätzlich die Fensterbank).
|
||||
let e = noShadow(applyOps(sampleProject, addModelViewOps(newModelView("mv1", "Werkplan", "mittel"))));
|
||||
e = applyOps(e, setModelViewOptionOps(e, "mv1", "elevation", "shadows", true));
|
||||
e = applyOps(e, selectModelViewOps(e, "ansicht-sued", "mv1"));
|
||||
expect(elev(e)).toBe(elev(sampleProject));
|
||||
|
||||
@@ -160,6 +160,8 @@ export interface ModelViewField {
|
||||
key: string;
|
||||
/** Werte als Liste (Auswahl) oder `"bool"`/`"number"`. */
|
||||
values: readonly (string | number)[] | "bool" | "number";
|
||||
/** [184] Dreifach-Wahl „Wie Detailgrad / Voll / Vereinfacht" statt „wie Basis / an / aus" (Beschriftung + Tooltip). */
|
||||
detailChoice?: boolean;
|
||||
}
|
||||
|
||||
export const MODEL_VIEW_FIELDS: readonly ModelViewField[] = [
|
||||
@@ -169,7 +171,7 @@ export const MODEL_VIEW_FIELDS: readonly ModelViewField[] = [
|
||||
{ section: "doors", key: "frame", values: "bool" },
|
||||
{ section: "doors", key: "leaf", values: ["line", "rect"] },
|
||||
{ section: "doors", key: "threshold", values: ["off", "liftSlide", "all"] },
|
||||
{ section: "doors", key: "sectionDetail", values: "bool" },
|
||||
{ section: "doors", key: "sectionDetail", values: "bool", detailChoice: true },
|
||||
{ section: "windows", key: "sashSymbols", values: "bool" },
|
||||
{ section: "windows", key: "planSwingArcs", values: "bool" },
|
||||
{ section: "windows", key: "sill", values: "bool" },
|
||||
@@ -177,7 +179,7 @@ export const MODEL_VIEW_FIELDS: readonly ModelViewField[] = [
|
||||
{ section: "windows", key: "simplified", values: "bool" },
|
||||
{ section: "windows", key: "shadingBox", values: "bool" },
|
||||
{ section: "windows", key: "lintelLine", values: "bool" },
|
||||
{ section: "windows", key: "sectionDetail", values: "bool" },
|
||||
{ section: "windows", key: "sectionDetail", values: "bool", detailChoice: true },
|
||||
{ section: "windows", key: "elevationDivision", values: "bool" },
|
||||
{ section: "stairs", key: "walkLine", values: "bool" },
|
||||
{ section: "stairs", key: "arrow", values: "bool" },
|
||||
|
||||
@@ -51,6 +51,7 @@ function OptionRow({ mv, f, h }: { mv: ModelViewOption; f: ModelViewField; h: Mo
|
||||
<select
|
||||
className="res-input"
|
||||
aria-label={label}
|
||||
title={f.detailChoice ? t("resources.modelViews.tip.sectionDetail") : undefined}
|
||||
data-testid={`model-view-opt-${f.section}-${f.key}`}
|
||||
value={fieldValue(mv, f)}
|
||||
disabled={!h.onSetModelViewOption}
|
||||
@@ -59,10 +60,16 @@ function OptionRow({ mv, f, h }: { mv: ModelViewOption; f: ModelViewField; h: Mo
|
||||
h.onSetModelViewOption?.(mv.id, f.section, f.key, v === undefined ? null : (v as string | number | boolean));
|
||||
}}
|
||||
>
|
||||
<option value="">{t("resources.modelViews.asBase")}</option>
|
||||
<option value="">{t(f.detailChoice ? "resources.modelViews.asDetail" : "resources.modelViews.asBase")}</option>
|
||||
{values.map((v) => (
|
||||
<option key={String(v)} value={String(v)}>
|
||||
{f.values === "bool" ? t(v === "true" ? "resources.modelViews.on" : "resources.modelViews.off") : valueLabel(f, v)}
|
||||
{f.values === "bool"
|
||||
? t(
|
||||
f.detailChoice
|
||||
? v === "true" ? "resources.modelViews.detail.full" : "resources.modelViews.detail.simple"
|
||||
: v === "true" ? "resources.modelViews.on" : "resources.modelViews.off",
|
||||
)
|
||||
: valueLabel(f, v)}
|
||||
</option>
|
||||
))}
|
||||
</select>
|
||||
|
||||
Reference in new issue
Block a user