Merge branch 'worktree-agent-afecfaa891c365fea' into worktree-agent-aa28c2b67c2749bb1
This commit is contained in:
16 files changed
+482
-19
No files matched your search
@@ -18,6 +18,12 @@ export interface ExcavationQuantity {
|
||||
fill: number;
|
||||
/** Hinterfüllung (m³). */
|
||||
backfill: number;
|
||||
/** Arbeitsraum: verlangte Breite (m, 0 = keiner), kleinster Abstand Umriss–Sohle, eingehalten? */
|
||||
workingSpace: number;
|
||||
workingSpaceMin: number;
|
||||
workingSpaceOk: boolean;
|
||||
/** Stellen mit fehlender Arbeitsraum-Breite (Modell-x/y). */
|
||||
workingSpaceSpots: [number, number][];
|
||||
}
|
||||
|
||||
export function excavationQuantities(project: Project): ExcavationQuantity[] {
|
||||
|
||||
@@ -2410,6 +2410,12 @@ export const de = {
|
||||
"site.excavation.noTerrain": "Kein Gelände unter der Baugrube",
|
||||
"site.excavation.workingSpace": "Arbeitsraum [m]",
|
||||
"site.excavation.shoring": "Verbau (senkrecht), Kante",
|
||||
"site.excavation.shoringKind": "Verbauart",
|
||||
"site.excavation.shoringKind.sheetPile": "Spundwand (Stahl)",
|
||||
"site.excavation.shoringKind.soldierPile": "Rühlwand (Träger + Holz)",
|
||||
"site.excavation.shoringKind.borePile": "Bohrpfahlwand (Beton)",
|
||||
"site.excavation.shoringThickness": "Wanddicke [m]",
|
||||
"site.excavation.workingSpaceWarn": "Arbeitsraum zu schmal: {min} m statt {need} m an {n} Stelle(n) (rotes Kreuz im Plan)",
|
||||
"site.excavation.shoringHint": "Gewählte Kanten: senkrechte Wand (Spundwand) statt Böschung",
|
||||
"site.earthDepth": "Erdreich-Band im Schnitt [m]",
|
||||
"site.terrain.visible": "Gelände sichtbar",
|
||||
|
||||
@@ -2396,6 +2396,12 @@ export const en: Record<TranslationKey, string> = {
|
||||
"site.excavation.bermHeight": "Berm every [m]",
|
||||
"site.excavation.workingSpace": "Working space [m]",
|
||||
"site.excavation.shoring": "Shoring (vertical), edge",
|
||||
"site.excavation.shoringKind": "Shoring type",
|
||||
"site.excavation.shoringKind.sheetPile": "Sheet piling (steel)",
|
||||
"site.excavation.shoringKind.soldierPile": "Soldier pile wall (beams + timber)",
|
||||
"site.excavation.shoringKind.borePile": "Bored pile wall (concrete)",
|
||||
"site.excavation.shoringThickness": "Wall thickness [m]",
|
||||
"site.excavation.workingSpaceWarn": "Working space too narrow: {min} m instead of {need} m at {n} spot(s) (red cross in the plan)",
|
||||
"site.excavation.shoringHint": "Selected edges: vertical wall (sheet piling) instead of a slope",
|
||||
"site.earthDepth": "Earth band in section [m]",
|
||||
"site.terrain.visible": "Terrain visible",
|
||||
|
||||
@@ -822,7 +822,7 @@ export function buildComplexSampleProject(): Project {
|
||||
type: "excavation", id: "baugrube", name: "Baugrube Haupthaus", categoryCode: "07",
|
||||
// Umriss = Gebäude-Grundfläche UG (mit Erker), Arbeitsraum 0.8 m; Neigungen in Grad.
|
||||
outline: rect(-HA, -HA, 17.2, 10 + HA), bottom: -3.35, slope: 60, fillSlope: 33.7,
|
||||
edgeSlopes: [60, 50, 90, 60], edgeShoring: [false, false, true, false], workingSpace: 0.8,
|
||||
edgeSlopes: [60, 50, 90, 60], edgeShoring: [false, false, true, false], shoringKind: "soldierPile", workingSpace: 0.8,
|
||||
},
|
||||
],
|
||||
roomProgram: [
|
||||
|
||||
@@ -1279,6 +1279,13 @@ export type Excavation = {
|
||||
* [68] Senkrechter Verbau (Spundwand) je Kante (wie `edgeSlopes`): keine Böschung, Wand steht senkrecht.
|
||||
*/
|
||||
edgeShoring?: Array<boolean>;
|
||||
/**
|
||||
* [68] Art des Verbaus auf den verbauten Kanten: `sheetPile` (Spundwand, Vorgabe), `soldierPile` (Rühlwand),
|
||||
* `borePile` (Bohrpfahlwand). Bestimmt Vorgabe-Dicke und Schraffur im Schnitt und Grundriss.
|
||||
*/
|
||||
shoringKind?: string;
|
||||
/** [68] Dicke der Verbauwand in m (nach aussen von der Sohlkante); fehlt = Vorgabe der Art. */
|
||||
shoringThickness?: number;
|
||||
};
|
||||
|
||||
/** Ein extrudierter Körper: geschlossenes Profil (Modell-Meter) + Höhe. */
|
||||
|
||||
@@ -50,6 +50,11 @@ function ExcavationQty({ q }: { q: ExcavationQuantity | undefined }) {
|
||||
return (
|
||||
<div className="site-qty">
|
||||
{t("site.excavation.qty", { cut: fmt1(q.cut), fill: fmt1(q.fill), backfill: fmt1(q.backfill) })}
|
||||
{q.workingSpace > 0 && !q.workingSpaceOk && (
|
||||
<div className="site-warn" role="alert" data-testid="excavation-ws-warning">
|
||||
{t("site.excavation.workingSpaceWarn", { min: q.workingSpaceMin.toFixed(2), need: q.workingSpace.toFixed(2), n: q.workingSpaceSpots.length })}
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -182,6 +187,23 @@ export function ContextObjectProps({ obj, quantities }: { obj: ContextObject; qu
|
||||
))}
|
||||
</span>
|
||||
</div>
|
||||
{obj.edgeShoring?.some(Boolean) && (
|
||||
<>
|
||||
<label className="site-prop">
|
||||
<span>{t("site.excavation.shoringKind")}</span>
|
||||
<select
|
||||
data-testid="excavation-shoring-kind"
|
||||
value={obj.shoringKind ?? "sheetPile"}
|
||||
onChange={(e) => host.onPatchContextObject(obj.id, { shoringKind: e.target.value }, `site-${obj.id}-shoringKind`)}
|
||||
>
|
||||
<option value="sheetPile">{t("site.excavation.shoringKind.sheetPile")}</option>
|
||||
<option value="soldierPile">{t("site.excavation.shoringKind.soldierPile")}</option>
|
||||
<option value="borePile">{t("site.excavation.shoringKind.borePile")}</option>
|
||||
</select>
|
||||
</label>
|
||||
<NumField label={t("site.excavation.shoringThickness")} value={obj.shoringThickness} step={0.05} min={0.05} placeholder={obj.shoringKind === "borePile" ? "0.6" : obj.shoringKind === "soldierPile" ? "0.3" : "0.2"} onChange={patch("shoringThickness")} />
|
||||
</>
|
||||
)}
|
||||
<ExcavationQty q={quantities.find((x) => x.id === obj.id)} />
|
||||
</div>
|
||||
);
|
||||
|
||||
@@ -4962,6 +4962,9 @@ body {
|
||||
grid-column: 1 / -1;
|
||||
color: var(--text-dim, inherit);
|
||||
}
|
||||
.site-panel .site-warn {
|
||||
color: #d6001c;
|
||||
}
|
||||
.site-panel .site-check {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
Reference in new issue
Block a user