Merge branch 'worktree-agent-af84fe98126c5e7dc' into claude/practical-noether-1hb2s1
This commit is contained in:
21 files changed
+506
-67
No files matched your search
@@ -876,6 +876,17 @@ export const de = {
|
||||
"objinfo.stair.midOffset": "Versatz Mittellauf",
|
||||
"objinfo.stair.width": "Laufbreite",
|
||||
"objinfo.stair.column": "Mittelsäule (Radius)",
|
||||
"objinfo.stair.railProfile": "Handlauf-Profil",
|
||||
"objinfo.stair.railDiameter": "Handlauf Durchmesser",
|
||||
"objinfo.stair.railWidth": "Handlauf Breite",
|
||||
"objinfo.stair.railHeight": "Handlauf Höhe",
|
||||
"objinfo.stair.postProfile": "Pfosten-Profil",
|
||||
"objinfo.stair.postDiameter": "Pfosten Durchmesser",
|
||||
"objinfo.stair.postWidth": "Pfosten Breite",
|
||||
"objinfo.stair.postDepth": "Pfosten Tiefe",
|
||||
"objinfo.stair.profile.rund": "Rund",
|
||||
"objinfo.stair.profile.rechteck": "Rechteck",
|
||||
"objinfo.stair.profile.flach": "Flachstahl",
|
||||
"objinfo.stair.steps": "Stufenanzahl",
|
||||
"objinfo.stair.rise": "Steighöhe (gesamt)",
|
||||
"objinfo.stair.riser": "Steigungshöhe",
|
||||
|
||||
@@ -860,6 +860,17 @@ export const en: Record<TranslationKey, string> = {
|
||||
"objinfo.stair.shape.spiral": "Spiral",
|
||||
"objinfo.stair.width": "Run width",
|
||||
"objinfo.stair.column": "Centre column (radius)",
|
||||
"objinfo.stair.railProfile": "Handrail profile",
|
||||
"objinfo.stair.railDiameter": "Handrail diameter",
|
||||
"objinfo.stair.railWidth": "Handrail width",
|
||||
"objinfo.stair.railHeight": "Handrail height",
|
||||
"objinfo.stair.postProfile": "Post profile",
|
||||
"objinfo.stair.postDiameter": "Post diameter",
|
||||
"objinfo.stair.postWidth": "Post width",
|
||||
"objinfo.stair.postDepth": "Post depth",
|
||||
"objinfo.stair.profile.rund": "Round",
|
||||
"objinfo.stair.profile.rechteck": "Rectangular",
|
||||
"objinfo.stair.profile.flach": "Flat bar",
|
||||
"objinfo.stair.steps": "Step count",
|
||||
"objinfo.stair.rise": "Total rise",
|
||||
"objinfo.stair.riser": "Riser height",
|
||||
|
||||
@@ -3516,6 +3516,27 @@ export type Stair = {
|
||||
* ≤ 0, gibt es keine Säule.
|
||||
*/
|
||||
centerColumn?: number;
|
||||
/**
|
||||
* [T3] Handlauf-Profil (gilt für alle Treppenformen und die Absturzsicherung am Deckenloch);
|
||||
* fehlt es, ist der Handlauf ein Rundrohr von 4 cm.
|
||||
*/
|
||||
railProfile?: "rund" | "rechteck" | "flach";
|
||||
/** [T3] Handlauf-Breite in Metern (rund: Durchmesser; fehlt = 0.04). */
|
||||
railWidth?: number;
|
||||
/**
|
||||
* [T3] Handlauf-Höhe in Metern (rechteckig: fehlt = 0.04; Flachstahl: Dicke, fehlt = 0.01; rund: ohne Wirkung).
|
||||
*/
|
||||
railHeight?: number;
|
||||
/** [T3] Pfosten-Profil (fehlt = rund). */
|
||||
postProfile?: "rund" | "rechteck" | "flach";
|
||||
/**
|
||||
* [T3] Pfosten-Breite in Metern, in Richtung des Handlaufs (rund: Durchmesser; fehlt = 0.03, Flachstahl 0.04).
|
||||
*/
|
||||
postWidth?: number;
|
||||
/**
|
||||
* [T3] Pfosten-Tiefe in Metern, quer zum Handlauf (rechteckig: fehlt = 0.03; Flachstahl: Dicke, fehlt = 0.01; rund: ohne Wirkung).
|
||||
*/
|
||||
postDepth?: number;
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
+1
-1
@@ -562,7 +562,7 @@ export interface PanelHostValue {
|
||||
/** Weist der Treppe einen Treppentyp (Bibliothek) zu; "" löst die Zuweisung. */
|
||||
onSetStairType: (typeId: string) => void;
|
||||
/** [151] Lauf-/Podest-Parameter (Lauflängen, Drehsinn, Auge, Podesttiefe, Stufen je Lauf, Versatz). */
|
||||
onSetStairPatch: (patch: Partial<Pick<Stair, "runLength" | "run2Length" | "turn" | "gap" | "landingLength" | "run1Steps" | "midSteps" | "run2Offset" | "midOffset">>) => void;
|
||||
onSetStairPatch: (patch: Partial<Pick<Stair, "runLength" | "run2Length" | "turn" | "gap" | "landingLength" | "run1Steps" | "midSteps" | "run2Offset" | "midOffset" | "railProfile" | "railWidth" | "railHeight" | "postProfile" | "postWidth" | "postDepth">>) => void;
|
||||
|
||||
// ── Raum-Attribute (Object-Info-Panel; nur der selektierte Raum) ────────
|
||||
/** Setzt den Raum-Namen. */
|
||||
|
||||
@@ -14,6 +14,40 @@ import { DimensionField } from "./fields";
|
||||
* [151] Läufe und Podest einer Podesttreppe (L, U, gerade mit Podest): Lauflängen, Steigungen im ersten
|
||||
* Lauf, Drehsinn (L/U), Treppenauge, Mittellauf und Versatz (U), Podesttiefe (U, gerade mit Podest).
|
||||
*/
|
||||
type RailProfile = "rund" | "rechteck" | "flach";
|
||||
|
||||
/** [T3] Handlauf- und Pfosten-Querschnitt (gilt für alle Treppenformen und die Absturzsicherung). */
|
||||
function StairRailFields({ stair, host }: { stair: StairInfo; host: ReturnType<typeof usePanelHost> }) {
|
||||
const profiles = [
|
||||
{ value: "rund", label: t("objinfo.stair.profile.rund") },
|
||||
{ value: "rechteck", label: t("objinfo.stair.profile.rechteck") },
|
||||
{ value: "flach", label: t("objinfo.stair.profile.flach") },
|
||||
];
|
||||
const rail = stair.railProfile ?? "rund";
|
||||
const post = stair.postProfile ?? "rund";
|
||||
// Standardmasse wie im Kern (`RailSpec::decode`)
|
||||
const railH = stair.railHeight ?? (rail === "flach" ? 0.01 : 0.04);
|
||||
const postW = stair.postWidth ?? (post === "flach" ? 0.04 : 0.03);
|
||||
const postD = stair.postDepth ?? (post === "flach" ? 0.01 : 0.03);
|
||||
const set = (patch: Parameters<typeof host.onSetStairPatch>[0]) => host.onSetStairPatch(patch);
|
||||
return (
|
||||
<>
|
||||
<div className="objinfo-field">
|
||||
<span className="objinfo-flabel">{t("objinfo.stair.railProfile")}</span>
|
||||
<Dropdown value={rail} onChange={(v) => set({ railProfile: v === "rund" ? undefined : (v as RailProfile) })} options={profiles} title={t("objinfo.stair.railProfile")} width={130} />
|
||||
</div>
|
||||
<DimensionField label={rail === "rund" ? t("objinfo.stair.railDiameter") : t("objinfo.stair.railWidth")} value={stair.railWidth ?? 0.04} onCommit={(v) => set({ railWidth: v > 0 ? v : undefined })} />
|
||||
{rail !== "rund" && <DimensionField label={t("objinfo.stair.railHeight")} value={railH} onCommit={(v) => set({ railHeight: v > 0 ? v : undefined })} />}
|
||||
<div className="objinfo-field">
|
||||
<span className="objinfo-flabel">{t("objinfo.stair.postProfile")}</span>
|
||||
<Dropdown value={post} onChange={(v) => set({ postProfile: v === "rund" ? undefined : (v as RailProfile) })} options={profiles} title={t("objinfo.stair.postProfile")} width={130} />
|
||||
</div>
|
||||
<DimensionField label={post === "rund" ? t("objinfo.stair.postDiameter") : t("objinfo.stair.postWidth")} value={postW} onCommit={(v) => set({ postWidth: v > 0 ? v : undefined })} />
|
||||
{post !== "rund" && <DimensionField label={t("objinfo.stair.postDepth")} value={postD} onCommit={(v) => set({ postDepth: v > 0 ? v : undefined })} />}
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
function StairFlightFields({ stair, host }: { stair: StairInfo; host: ReturnType<typeof usePanelHost> }) {
|
||||
const isU = stair.shape === "U";
|
||||
const turn = stair.turn ?? 1;
|
||||
@@ -213,6 +247,7 @@ export function StairSection({
|
||||
onCommit={(v) => host.onSetStairColumn(v)}
|
||||
/>
|
||||
)}
|
||||
<StairRailFields stair={stair} host={host} />
|
||||
{stair.shape !== "spiral" && stair.shape !== "straight" && <StairFlightFields stair={stair} host={host} />}
|
||||
<DimensionField
|
||||
label={t("objinfo.stair.steps")}
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
viewBox -13.448 0 38.615 33.813
|
||||
bytes 20038
|
||||
bytes 20024
|
||||
circle 14
|
||||
g 1
|
||||
line 63
|
||||
polygon 29
|
||||
polyline 14
|
||||
polygon 30
|
||||
polyline 13
|
||||
rect 1
|
||||
svg 1
|
||||
text 32
|
||||
tspan 9
|
||||
hash dfd484ce590877a4
|
||||
hash 82cd80b6658fd8f2
|
||||
@@ -1,12 +1,12 @@
|
||||
viewBox -12.974 0 37.808 33.406
|
||||
bytes 318165
|
||||
bytes 318135
|
||||
circle 14
|
||||
g 1
|
||||
line 3212
|
||||
polygon 75
|
||||
polyline 72
|
||||
polygon 77
|
||||
polyline 70
|
||||
rect 1
|
||||
svg 1
|
||||
text 32
|
||||
tspan 9
|
||||
hash f65e632e02bea427
|
||||
hash 608c18c089b7cda0
|
||||
@@ -2,7 +2,7 @@ meshes [1958]
|
||||
meshes[].color [3] x1958
|
||||
meshes[].indices [108] x6
|
||||
meshes[].indices [11376]
|
||||
meshes[].indices [12888]
|
||||
meshes[].indices [12960]
|
||||
meshes[].indices [144] x55
|
||||
meshes[].indices [156642]
|
||||
meshes[].indices [1584]
|
||||
@@ -33,7 +33,7 @@ meshes[].positions [324] x6
|
||||
meshes[].positions [4128]
|
||||
meshes[].positions [4746]
|
||||
meshes[].positions [6096]
|
||||
meshes[].positions [6972]
|
||||
meshes[].positions [7050]
|
||||
meshes[].positions [72] x2
|
||||
meshes[].positions [78837]
|
||||
meshes[].positions [78] x55
|
||||
@@ -68,4 +68,4 @@ walls[].start [2] x1492
|
||||
walls[].startCut [4] x1107
|
||||
walls[].topDrop [2] x115
|
||||
walls[].topPlane [3] x271
|
||||
hash a7e38b2a054609be
|
||||
hash 11c141a0fe0852d7
|
||||
@@ -284,6 +284,13 @@ export interface StairInfo {
|
||||
referenz?: "links" | "mitte" | "rechts";
|
||||
/** Nur Wendel: Radius der Mittelsäule (Meter); fehlt → keine Säule. */
|
||||
centerColumn?: number;
|
||||
/** [T3] Handlauf-/Pfosten-Profil (rund / rechteck / flach) und Masse in Metern; fehlt → Rundrohr. */
|
||||
railProfile?: "rund" | "rechteck" | "flach";
|
||||
railWidth?: number;
|
||||
railHeight?: number;
|
||||
postProfile?: "rund" | "rechteck" | "flach";
|
||||
postWidth?: number;
|
||||
postDepth?: number;
|
||||
/** Länge des (ersten) Laufs (Meter). */
|
||||
runLength?: number;
|
||||
/** [151] L / U / gerade mit Podest: Länge des zweiten bzw. letzten Laufs; Drehsinn (+1 links, −1 rechts). */
|
||||
|
||||
Reference in new issue
Block a user