2D-Plan-Renderer auf WebGL2 (GPU) + akkumulierter Funktionsstand

Neuer GPU-Renderer fuer den Grundriss (src/plan/glPlan/): Earcut-Tessellierung
(konkav-faehig), gehrte Linienzuege (Miter), echte Papier-mm-Strichbreiten im
Massstab (repliziert den SVG-printStrokeVb-Pfad), Hybrid mit scharfem SVG-Text-
Overlay. GPU ist der Standardpfad; der SVG-Renderer bleibt automatischer Fallback,
falls WebGL2/Shader nicht verfuegbar sind. Imperativer Pan (rAF + CSS-transform)
fuer fluessige Interaktion ohne React-Re-Render je Frame.

Enthaelt zudem den bisher nicht committeten Arbeitsstand des Browser-BIM
(Oeffnungen, Treppen, Raeume, Decken, DXF-Export, Materialbibliothek, Kontext-
Import, Tauri-Compute-Boundary-PoC).
This commit is contained in:
2026-07-02 00:12:39 +02:00
parent cfe5249440
commit 3d2d4d6321
184 changed files with 29421 additions and 669 deletions
+268
View File
@@ -49,6 +49,10 @@ export const de = {
"topbar.fit.hint": "Auf Plan einpassen",
"topbar.fitSelection": "Auswahl",
"topbar.fitSelection.hint": "Auf Auswahl einpassen (sonst auf Plan)",
"topbar.exportPdf": "PDF",
"topbar.exportPdf.hint": "Grundriss als Vektor-PDF exportieren",
"topbar.exportDxf": "DXF",
"topbar.exportDxf.hint": "Grundriss als DXF (Modell-Space in Metern) exportieren",
"topbar.zoom.current": "Aktueller Zoom",
"topbar.renderGroup": "Render-Modus",
@@ -68,6 +72,7 @@ export const de = {
"display.style.mono": "Schwarz-Weiss",
"display.style.shaded": "Schattiert",
"display.style.white": "Weiss",
"display.style.textured": "Texturiert",
"display.style.wireframe": "Drahtgitter",
"display.style.hidden": "Kanten",
@@ -103,12 +108,23 @@ export const de = {
"tool.group": "Werkzeuge",
"tool.select": "Auswahl",
"tool.wall": "Wand",
"tool.ceiling": "Decke",
"tool.window": "Fenster",
"tool.door": "Tür",
"tool.stair": "Treppe",
"tool.line": "Linie",
"tool.polyline": "Polylinie",
"tool.rect": "Rechteck",
"tool.select.hint": "Auswahl — Elemente klicken/aufziehen",
"tool.window.hint": "Fenster: Wand wählen, dann Position setzen",
"tool.door.hint": "Tür: Wand wählen, dann Position setzen",
"tool.stair.hint": "Treppe: Startpunkt, dann Laufrichtung/Ende setzen",
"tool.room": "Raum",
"tool.room.hint": "Raum: in umschlossenen Bereich klicken (oder Umriss zeichnen)",
"tool.wall.firstPoint": "Wand: ersten Achspunkt setzen",
"tool.wall.nextPoint": "Wand: nächsten Punkt — Doppelklick/Rechtsklick beendet",
"tool.ceiling.firstPoint": "Decke: ersten Umrisspunkt setzen",
"tool.ceiling.nextPoint": "Decke: nächster Punkt — Klick auf Start schließt, Enter beendet",
"tool.line.firstPoint": "Linie: Startpunkt setzen",
"tool.line.secondPoint": "Linie: Endpunkt setzen",
"tool.polyline.firstPoint": "Polylinie: ersten Punkt setzen",
@@ -116,6 +132,7 @@ export const de = {
"tool.rect.firstCorner": "Rechteck: erste Ecke setzen",
"tool.rect.secondCorner": "Rechteck: gegenüberliegende Ecke setzen",
"tool.wallType": "Wandtyp",
"tool.ceilingType": "Deckentyp",
"tool.layer": "Ebene",
"tool.layer.hint": "Aktive Ebene — alles Gezeichnete kommt auf diese Kategorie",
"tool.floorOnlyDisabled": "Wand nur auf einem Geschoss zeichenbar",
@@ -209,8 +226,12 @@ export const de = {
"objinfo.height": "Höhe",
"objinfo.type": "Typ",
"objinfo.kind.wall": "Wand",
"objinfo.kind.ceiling": "Decke",
"objinfo.kind.drawing2d": "2D-Objekt",
"objinfo.kind.door": "Tür",
"objinfo.kind.opening": "Öffnung",
"objinfo.kind.stair": "Treppe",
"objinfo.kind.room": "Raum",
// ── Wand-Attribute (Object-Info-Panel) ──────────────────────────────────
"objinfo.wall.section": "Wand",
"objinfo.wall.refLine": "Referenzlinie",
@@ -230,6 +251,65 @@ export const de = {
"objinfo.wall.anchorFloor": "An Geschoss gebunden",
"objinfo.wall.anchorCustom": "Eigene Höhe",
"objinfo.wall.height": "Höhe",
// ── Decken-Attribute (Object-Info-Panel) ────────────────────────────────
"objinfo.ceiling.section": "Decke",
"objinfo.ceiling.buildup": "Aufbau",
"objinfo.ceiling.thickness": "Dicke",
"objinfo.ceiling.preset": "Deckenaufbau",
"objinfo.ceiling.refFloor": "Referenzgeschoss",
"objinfo.ceiling.top": "Oberkante (OK)",
"objinfo.ceiling.bottom": "Unterkante (UK)",
"objinfo.ceiling.height": "Dicke (OKUK)",
"objinfo.ceiling.area": "Fläche",
"objinfo.ceiling.anchorFloor": "An Geschoss gebunden",
"objinfo.ceiling.anchorCustom": "Eigene Höhe",
// ── Öffnungs-Attribute (Object-Info-Panel) ──────────────────────────────
"objinfo.opening.section": "Öffnung",
"objinfo.opening.kind": "Art",
"objinfo.opening.kind.window": "Fenster",
"objinfo.opening.kind.door": "Tür",
"objinfo.opening.hostWall": "Wirts-Wand",
"objinfo.opening.position": "Position (ab Wandanfang)",
"objinfo.opening.width": "Breite",
"objinfo.opening.height": "Höhe",
"objinfo.opening.sill": "Brüstung",
"objinfo.opening.swingAngle": "Öffnungswinkel",
"objinfo.opening.hinge": "Anschlag",
"objinfo.opening.hinge.start": "Anfang",
"objinfo.opening.hinge.end": "Ende",
"objinfo.opening.swing": "Aufschlagseite",
"objinfo.opening.swing.left": "Links",
"objinfo.opening.swing.right": "Rechts",
"objinfo.opening.dir": "Richtung",
"objinfo.opening.dir.in": "Innen",
"objinfo.opening.dir.out": "Außen",
"objinfo.opening.bottom": "Unterkante (UK)",
"objinfo.opening.top": "Oberkante (OK)",
// ── Treppen-Attribute (Object-Info-Panel) ───────────────────────────────
"objinfo.stair.section": "Treppe",
"objinfo.stair.shape": "Grundform",
"objinfo.stair.shape.straight": "Gerade",
"objinfo.stair.shape.L": "L-Treppe",
"objinfo.stair.shape.spiral": "Wendel",
"objinfo.stair.width": "Laufbreite",
"objinfo.stair.steps": "Stufenanzahl",
"objinfo.stair.rise": "Steighöhe (gesamt)",
"objinfo.stair.riser": "Steigungshöhe",
"objinfo.stair.tread": "Auftrittstiefe",
"objinfo.stair.direction": "Laufrichtung",
"objinfo.stair.direction.up": "Aufwärts",
"objinfo.stair.direction.down": "Abwärts",
"objinfo.stair.refFloor": "Referenzgeschoss",
"objinfo.stair.bottom": "Unterkante (UK)",
"objinfo.stair.top": "Oberkante (OK)",
// ── Raum-Attribute (Object-Info-Panel) ──────────────────────────────────
"objinfo.room.section": "Raum",
"objinfo.room.name": "Name",
"objinfo.room.sia": "SIA-Kategorie",
"objinfo.room.area": "Fläche",
"objinfo.room.perimeter": "Umfang",
"objinfo.room.refFloor": "Referenzgeschoss",
"objinfo.room.editStamp": "Stempel bearbeiten …",
"objinfo.wall.floorAboveNone": "Kein oberes Geschoss",
"levels.addFloor": "+ Geschoss",
"levels.addDrawing": "+ Zeichnung",
@@ -280,6 +360,11 @@ export const de = {
"ctx.fitSelection": "Auf Auswahl einpassen",
"ctx.clearSelection": "Auswahl aufheben",
"ctx.fit": "Ansicht einpassen",
"ctx.union": "Vereinigen",
"ctx.subtract": "Subtrahieren",
"ctx.intersect": "Schneiden",
"ctx.boolean.disabled":
"Mindestens zwei geschlossene Flächen auswählen (Rechteck oder geschlossene Polylinie).",
"ctx.noWallHit": "Keine Wand getroffen",
"ctx.noWallHit.hint": "Rechtsklick auf eine Wand wählt sie und zeigt Wand-Aktionen.",
@@ -358,8 +443,47 @@ export const de = {
"resources.col.prio": "Prio",
"resources.col.prio.hint": "Höhere Priorität läuft am Stoß durch",
"resources.col.texture": "Textur",
"resources.col.material": "Material",
"resources.delete.component": "Bauteil „{name}\" löschen",
// 3D-Material (PBR) — Bibliotheks-Auswahl + Upload.
"material.assign": "Material …",
"material.none": "— ohne —",
"material.dialog.title": "3D-Material zuweisen",
"material.dialog.hint": "Wähle ein eingebautes Material oder lade eigene Texturen hoch. Wirkt im 3D-Modus „Texturiert\".",
"material.library": "Bibliothek (ambientCG, CC0)",
"material.upload": "Eigene Texturen",
"material.upload.hint": "Lade Bilder als Karten hoch (mindestens Farbe). Größe = physische Kachelgröße in Metern.",
"material.upload.color": "Farbe (Albedo)",
"material.upload.normal": "Normal",
"material.upload.roughness": "Rauheit",
"material.upload.displacement": "Höhe",
"material.upload.ao": "AO",
"material.upload.choose": "Bild …",
"material.upload.apply": "Zuweisen",
"material.size": "Kachelgröße (m)",
"material.current": "Aktuell",
"material.clear": "Material entfernen",
"material.close": "Schließen",
"material.uploaded": "Hochgeladen",
// ── ambientCG-Bibliothek durchsuchen (Live) ──────────────────────────────
"material.browse": "Bibliothek durchsuchen",
"material.browse.starter": "Schnellauswahl",
"material.browse.hint":
"Durchsuche die komplette CC0-Bibliothek von ambientCG (~2000+ Materialien). Ein Klick lädt die Texturen zur Laufzeit herunter und weist sie zu.",
"material.browse.search": "Suchen …",
"material.browse.searchPlaceholder": "z. B. Holz, Beton, Fliesen …",
"material.browse.category.all": "Alle Kategorien",
"material.browse.resolution": "Auflösung",
"material.browse.more": "Mehr laden",
"material.browse.loading": "Lädt …",
"material.browse.downloading": "Textur wird geladen …",
"material.browse.empty": "Keine Materialien gefunden.",
"material.browse.count": "{shown} von {total}",
"material.browse.error":
"Bibliothek nicht erreichbar. Zur Laufzeit ist ein Proxy für ambientCG nötig (Dev: Vite-Proxy aktiv; Prod: VITE_AMBIENTCG_PROXY setzen).",
"material.browse.downloadError": "Download fehlgeschlagen (CORS/Proxy prüfen).",
// Schraffuren.
"resources.hatches.hint": "Muster, Maßstab und Winkel steuern die Schnitt-Schraffur; der Linienstil bestimmt die Stärke der Musterlinien.",
"resources.hatches.empty": "Noch keine Schraffuren.",
@@ -397,6 +521,30 @@ export const de = {
"cmd.aria": "Befehlszeile",
"cmd.idle.prompt": "Befehl:",
"cmd.idle.placeholder": "Befehl eingeben … (Tab)",
"cmd.wall.label": "Wand",
"cmd.wall.start": "Startpunkt der Wand:",
"cmd.wall.next": "Nächster Punkt:",
"cmd.ceiling.label": "Decke",
"cmd.ceiling.start": "Erster Umrisspunkt der Decke:",
"cmd.ceiling.next": "Nächster Punkt ( Schliessen ):",
"cmd.opening.label": "Öffnung",
"cmd.opening.windowLabel": "Fenster",
"cmd.opening.doorLabel": "Tür",
"cmd.opening.wall": "Wand für die Öffnung wählen:",
"cmd.opening.pos": "Position entlang der Wand ( Abstand tippen ):",
"cmd.opening.kind": "Art",
"cmd.opening.hinge": "Anschlag",
"cmd.opening.side": "Seite",
"cmd.opening.dir": "Richtung",
"cmd.opening.sillField": "Brüstung",
"cmd.opening.swingField": "Winkel",
"cmd.stair.label": "Treppe",
"cmd.stair.start": "Startpunkt der Treppe:",
"cmd.stair.run": "Laufrichtung / Ende ( Grundform · Auf/Ab ):",
"cmd.stair.shape": "Grundform",
"cmd.stair.updown": "Auf/Ab",
"cmd.stair.stepsField": "Stufen",
"cmd.stair.riseField": "Steighöhe",
"cmd.line.label": "Linie",
"cmd.line.start": "Startpunkt der Linie:",
"cmd.line.end": "Endpunkt der Linie:",
@@ -405,9 +553,15 @@ export const de = {
"cmd.polyline.next": "Nächster Punkt:",
"cmd.polyline.close": "Schliessen",
"cmd.polyline.undo": "Zurück",
"cmd.polyline.closedOpt": "Geschlossen",
"cmd.rect.label": "Rechteck",
"cmd.rect.first": "Erste Ecke:",
"cmd.rect.second": "Gegenüberliegende Ecke:",
"cmd.rect.method": "Methode",
"cmd.rect.center": "Mittelpunkt:",
"cmd.rect.corner": "Ecke:",
"cmd.rect.baseEnd": "Zweite Ecke (Basiskante):",
"cmd.rect.rise": "Höhe:",
"cmd.circle.label": "Kreis",
"cmd.circle.center": "Mittelpunkt:",
"cmd.circle.radius": "Radius:",
@@ -416,6 +570,11 @@ export const de = {
"cmd.move.base": "Basispunkt:",
"cmd.move.target": "Zielpunkt:",
"cmd.move.empty": "Nichts gewählt (erst Objekte wählen).",
"cmd.mirror.label": "Spiegeln",
"cmd.mirror.first": "Erster Punkt der Spiegelachse:",
"cmd.mirror.second": "Zweiter Punkt der Spiegelachse:",
"cmd.mirror.empty": "Nichts gewählt (erst Objekte wählen).",
"cmd.join.prompt": "Verbinde gewählte Elemente …",
"cmd.copy.label": "Kopieren",
"cmd.copy.base": "Basispunkt:",
"cmd.copy.target": "Zielpunkt (Enter beendet):",
@@ -423,6 +582,9 @@ export const de = {
"cmd.offset.label": "Versatz",
"cmd.offset.pick": "Kurve wählen:",
"cmd.offset.side": "Seite oder Distanz:",
// Trim (Quick-Trim): auf den wegzuschneidenden Abschnitt klicken; wiederholend.
"cmd.trim.label": "Stutzen",
"cmd.trim.pick": "Abschnitt zum Wegschneiden anklicken (Esc beendet):",
// Editier-Werkzeuge Split / Join / Segment-Löschen (Tastatur: Ctrl+S / Ctrl+J /
// Alt+Klick). Labels für Befehlsleiste/Menüs.
"edit.split.label": "Teilen",
@@ -435,6 +597,8 @@ export const de = {
"cmd.field.height": "Höhe",
"cmd.field.radius": "Radius",
"cmd.field.distance": "Distanz",
"cmd.field.thickness": "Dicke",
"cmd.edit.point": "Griff ziehen (Tab: Länge/Winkel):",
// ── Befehle: Import / Gelände ────────────────────────────────────────────
"cmd.import.label": "Importieren",
@@ -442,6 +606,17 @@ export const de = {
"cmd.terrain.label": "Gelände",
"cmd.terrain.prompt": "Gelände aus Konturen erzeugen …",
// ── Flächenbilanz (SIA 416) ──────────────────────────────────────────────
"nav.roomBalance": "Flächenbilanz",
"balance.title": "Flächenbilanz (SIA 416)",
"balance.rooms": "Räume",
"balance.summary": "Bilanz",
"balance.export": "CSV exportieren",
"balance.empty": "Keine Räume vorhanden. Mit dem Raum-Werkzeug erstellen.",
// ── Raum-Stempel-Editor ──────────────────────────────────────────────────
"room.stamp.editTitle": "Raum-Stempel bearbeiten",
"room.stamp.close": "Schliessen",
// ── Site-/Kontext-Panel (SitePanel) ──────────────────────────────────────
"nav.site": "Gelände",
"site.title": "Gelände & Kontext",
@@ -487,6 +662,28 @@ export const de = {
"import.badge.elevation": "Ansicht",
"import.badge.drawing": "Zeichnung",
// ── PDF-Export ───────────────────────────────────────────────────────────
"export.title": "PDF exportieren",
"export.close": "Schließen",
"export.plan": "Plan",
"export.scale": "Massstab",
"export.paper": "Papierformat",
"export.orientation": "Ausrichtung",
"export.orientation.portrait": "Hochformat",
"export.orientation.landscape": "Querformat",
"export.warnFit":
"Der Plan passt im gewählten Massstab nicht ganz auf das Blatt — größeres Format oder kleineren Massstab wählen.",
"export.confirm": "Exportieren",
"export.cancel": "Abbrechen",
// ── DXF-Export ───────────────────────────────────────────────────────────
"exportDxf.title": "DXF exportieren",
"exportDxf.hatches": "Schraffuren",
"exportDxf.hatches.yes": "Mitexportieren",
"exportDxf.hatches.no": "Nur Umrisse",
"exportDxf.unitsNote":
"Modell-Space in Metern (1:1). Layer entsprechen den Ebenen des Projekts; beim Plot beliebig skalierbar.",
// ── Drag & Drop (App-weiter Datei-Drop) ──────────────────────────────────
"drop.hint": "DXF/DWG-Datei hier ablegen",
@@ -495,6 +692,77 @@ export const de = {
"error.title": "Etwas ist schiefgelaufen",
"error.body": "Ein unerwarteter Fehler ist aufgetreten. Details in der Konsole.",
"error.reload": "Neu laden",
// ── Standort-Import (geo.admin / OSM) ─────────────────────────────────────
"site.importLocation": "Standort importieren",
"ctxImport.title": "Standort importieren",
"ctxImport.close": "Schließen",
"ctxImport.location": "Ort / Adresse",
"ctxImport.searchPlaceholder": "z. B. Bundesplatz Bern",
"ctxImport.search": "Suchen",
"ctxImport.searching": "Suche…",
"ctxImport.noResults": "Keine Treffer.",
"ctxImport.searchError": "Suche fehlgeschlagen.",
"ctxImport.radius": "Radius",
"ctxImport.sources": "Quellen",
"ctxImport.src.swissBuildings": "Swisstopo-Gebäude",
"ctxImport.src.osmBuildings": "OSM-Gebäude",
"ctxImport.src.osmRoads": "OSM-Strassen",
"ctxImport.src.osmWater": "OSM-Wasser",
"ctxImport.src.osmGreen": "OSM-Grün",
"ctxImport.cancel": "Abbrechen",
"ctxImport.confirm": "Importieren",
"ctxImport.importing": "Importiere…",
"ctxImport.working": "Lade Geodaten…",
"ctxImport.empty": "Keine Geometrie im gewählten Bereich gefunden.",
"ctxImport.importError": "Import fehlgeschlagen.",
"ctxImport.imported": "{count} Objekte in {sets} Sätzen importiert.",
// ── Raum-Befehl ─────────────────────────────────────────────────────────────
"cmd.room.label": "Raum",
"cmd.room.mode": "Modus",
"cmd.room.inside": "Klick in Raum setzen:",
"cmd.room.first": "Ersten Raumpunkt setzen:",
"cmd.room.next": "Nächsten Punkt setzen ( Enter/Start schließt ):",
// ── Text-Gruppe (Oberleiste) ─────────────────────────────────────────────
"text.group": "Text",
"text.style": "Stil",
"text.style.none": "— Stil —",
"text.font": "Schrift",
"text.size": "Grösse",
"text.size.custom": "Eigene …",
"text.size.customPrompt": "Schriftgrösse in pt:",
"text.bold": "Fett",
"text.italic": "Kursiv",
"text.underline": "Unterstrichen",
"text.align.left": "Linksbündig",
"text.align.center": "Zentriert",
"text.align.right": "Rechtsbündig",
"text.add": "Text",
"text.add.hint": "Text-Werkzeug — neuen Text platzieren (bald verfügbar)",
"text.editTitle": "Text bearbeiten",
"text.apply": "Übernehmen",
"text.cancel": "Abbrechen",
"roomStamp.title": "Raumstempel bearbeiten",
"roomStamp.number": "Raumnummer",
"roomStamp.name": "Raumname",
"roomStamp.nameLine2": "Raumname Zeile 2",
"roomStamp.showFloorArea": "Bodenfläche anzeigen",
"roomStamp.floorAreaPrefix": "Präfix Bodenfläche",
"roomStamp.showUsage": "Nutzung anzeigen",
"text.selectedHint": "Formatierung wirkt auf den ausgewählten Text",
// ── Rich-Text-Editor ────────────────────────────────────────────────────────
"rt.bold": "Fett",
"rt.italic": "Kursiv",
"rt.underline": "Unterstrichen",
"rt.strike": "Durchgestrichen",
"rt.strikethrough": "Durchgestrichen",
"rt.fontSize": "Schriftgrösse",
"rt.color": "Farbe",
"rt.preset": "Vorlage",
"rt.preset.none": "— Vorlage —",
} as const;
export type TranslationKey = keyof typeof de;
+267
View File
@@ -48,6 +48,10 @@ export const en: Record<TranslationKey, string> = {
"topbar.fit.hint": "Fit to plan",
"topbar.fitSelection": "Selection",
"topbar.fitSelection.hint": "Fit to selection (otherwise to plan)",
"topbar.exportPdf": "PDF",
"topbar.exportPdf.hint": "Export the floor plan as a vector PDF",
"topbar.exportDxf": "DXF",
"topbar.exportDxf.hint": "Export the floor plan as DXF (model space in meters)",
"topbar.zoom.current": "Current zoom",
"topbar.renderGroup": "Render mode",
@@ -67,6 +71,7 @@ export const en: Record<TranslationKey, string> = {
"display.style.mono": "Black & white",
"display.style.shaded": "Shaded",
"display.style.white": "White",
"display.style.textured": "Textured",
"display.style.wireframe": "Wireframe",
"display.style.hidden": "Hidden line",
@@ -102,12 +107,23 @@ export const en: Record<TranslationKey, string> = {
"tool.group": "Tools",
"tool.select": "Select",
"tool.wall": "Wall",
"tool.ceiling": "Ceiling",
"tool.window": "Window",
"tool.door": "Door",
"tool.stair": "Stair",
"tool.line": "Line",
"tool.polyline": "Polyline",
"tool.rect": "Rectangle",
"tool.select.hint": "Select — click/drag elements",
"tool.window.hint": "Window: pick a wall, then set the position",
"tool.door.hint": "Door: pick a wall, then set the position",
"tool.stair.hint": "Stair: set start point, then run direction/end",
"tool.room": "Room",
"tool.room.hint": "Room: click inside an enclosed area (or draw an outline)",
"tool.wall.firstPoint": "Wall: set first axis point",
"tool.wall.nextPoint": "Wall: next point — double/right-click to finish",
"tool.ceiling.firstPoint": "Ceiling: set first outline point",
"tool.ceiling.nextPoint": "Ceiling: next point — click start to close, Enter finishes",
"tool.line.firstPoint": "Line: set start point",
"tool.line.secondPoint": "Line: set end point",
"tool.polyline.firstPoint": "Polyline: set first point",
@@ -115,6 +131,7 @@ export const en: Record<TranslationKey, string> = {
"tool.rect.firstCorner": "Rectangle: set first corner",
"tool.rect.secondCorner": "Rectangle: set opposite corner",
"tool.wallType": "Wall type",
"tool.ceilingType": "Ceiling type",
"tool.layer": "Layer",
"tool.layer.hint": "Active layer — everything drawn goes onto this category",
"tool.floorOnlyDisabled": "Walls can only be drawn on a floor",
@@ -208,8 +225,12 @@ export const en: Record<TranslationKey, string> = {
"objinfo.height": "Height",
"objinfo.type": "Type",
"objinfo.kind.wall": "Wall",
"objinfo.kind.ceiling": "Ceiling",
"objinfo.kind.drawing2d": "2D object",
"objinfo.kind.door": "Door",
"objinfo.kind.opening": "Opening",
"objinfo.kind.stair": "Stair",
"objinfo.kind.room": "Room",
// ── Wall attributes (object info panel) ──────────────────────────────────
"objinfo.wall.section": "Wall",
"objinfo.wall.refLine": "Reference line",
@@ -230,6 +251,64 @@ export const en: Record<TranslationKey, string> = {
"objinfo.wall.anchorCustom": "Custom height",
"objinfo.wall.height": "Height",
"objinfo.wall.floorAboveNone": "No floor above",
// ── Ceiling attributes (object info panel) ───────────────────────────────
"objinfo.ceiling.section": "Ceiling",
"objinfo.ceiling.buildup": "Build-up",
"objinfo.ceiling.thickness": "Thickness",
"objinfo.ceiling.preset": "Ceiling style",
"objinfo.ceiling.refFloor": "Reference floor",
"objinfo.ceiling.top": "Top (OK)",
"objinfo.ceiling.bottom": "Bottom (UK)",
"objinfo.ceiling.height": "Thickness (OKUK)",
"objinfo.ceiling.area": "Area",
"objinfo.ceiling.anchorFloor": "Bound to floor",
"objinfo.ceiling.anchorCustom": "Custom height",
// ── Opening attributes (object info panel) ──────────────────────────────
"objinfo.opening.section": "Opening",
"objinfo.opening.kind": "Type",
"objinfo.opening.kind.window": "Window",
"objinfo.opening.kind.door": "Door",
"objinfo.opening.hostWall": "Host wall",
"objinfo.opening.position": "Position (from wall start)",
"objinfo.opening.width": "Width",
"objinfo.opening.height": "Height",
"objinfo.opening.sill": "Sill height",
"objinfo.opening.swingAngle": "Swing angle",
"objinfo.opening.hinge": "Hinge",
"objinfo.opening.hinge.start": "Start",
"objinfo.opening.hinge.end": "End",
"objinfo.opening.swing": "Swing side",
"objinfo.opening.swing.left": "Left",
"objinfo.opening.swing.right": "Right",
"objinfo.opening.dir": "Direction",
"objinfo.opening.dir.in": "In",
"objinfo.opening.dir.out": "Out",
"objinfo.opening.bottom": "Bottom (UK)",
"objinfo.opening.top": "Top (OK)",
"objinfo.stair.section": "Stair",
"objinfo.stair.shape": "Shape",
"objinfo.stair.shape.straight": "Straight",
"objinfo.stair.shape.L": "L-shaped",
"objinfo.stair.shape.spiral": "Spiral",
"objinfo.stair.width": "Run width",
"objinfo.stair.steps": "Step count",
"objinfo.stair.rise": "Total rise",
"objinfo.stair.riser": "Riser height",
"objinfo.stair.tread": "Tread depth",
"objinfo.stair.direction": "Run direction",
"objinfo.stair.direction.up": "Upwards",
"objinfo.stair.direction.down": "Downwards",
"objinfo.stair.refFloor": "Reference floor",
"objinfo.stair.bottom": "Bottom (UK)",
"objinfo.stair.top": "Top (OK)",
// ── Room attributes (object info panel) ──────────────────────────────────
"objinfo.room.section": "Room",
"objinfo.room.name": "Name",
"objinfo.room.sia": "SIA category",
"objinfo.room.area": "Area",
"objinfo.room.perimeter": "Perimeter",
"objinfo.room.refFloor": "Reference floor",
"objinfo.room.editStamp": "Edit stamp …",
"levels.addFloor": "+ Floor",
"levels.addDrawing": "+ Drawing",
"layers.addCategory": "+ Layer",
@@ -279,6 +358,11 @@ export const en: Record<TranslationKey, string> = {
"ctx.fitSelection": "Fit to selection",
"ctx.clearSelection": "Clear selection",
"ctx.fit": "Fit view",
"ctx.union": "Union",
"ctx.subtract": "Subtract",
"ctx.intersect": "Intersect",
"ctx.boolean.disabled":
"Select at least two closed areas (rectangle or closed polyline).",
"ctx.noWallHit": "No wall hit",
"ctx.noWallHit.hint": "Right-clicking a wall selects it and shows wall actions.",
@@ -355,8 +439,47 @@ export const en: Record<TranslationKey, string> = {
"resources.col.prio": "Prio",
"resources.col.prio.hint": "Higher priority runs through at the join",
"resources.col.texture": "Texture",
"resources.col.material": "Material",
"resources.delete.component": "Delete component “{name}”",
// 3D material (PBR) — built-in library + upload.
"material.assign": "Material …",
"material.none": "— none —",
"material.dialog.title": "Assign 3D material",
"material.dialog.hint": "Pick a built-in material or upload your own textures. Applies in the 3D “Textured” mode.",
"material.library": "Library (ambientCG, CC0)",
"material.upload": "Own textures",
"material.upload.hint": "Upload images as maps (at least color). Size = physical tile size in meters.",
"material.upload.color": "Color (albedo)",
"material.upload.normal": "Normal",
"material.upload.roughness": "Roughness",
"material.upload.displacement": "Height",
"material.upload.ao": "AO",
"material.upload.choose": "Image …",
"material.upload.apply": "Assign",
"material.size": "Tile size (m)",
"material.current": "Current",
"material.clear": "Remove material",
"material.close": "Close",
"material.uploaded": "Uploaded",
// ── Browse ambientCG library (live) ──────────────────────────────────────
"material.browse": "Browse library",
"material.browse.starter": "Quick pick",
"material.browse.hint":
"Search the full CC0 ambientCG library (~2000+ materials). One click downloads the textures at runtime and assigns them.",
"material.browse.search": "Search …",
"material.browse.searchPlaceholder": "e.g. wood, concrete, tiles …",
"material.browse.category.all": "All categories",
"material.browse.resolution": "Resolution",
"material.browse.more": "Load more",
"material.browse.loading": "Loading …",
"material.browse.downloading": "Downloading texture …",
"material.browse.empty": "No materials found.",
"material.browse.count": "{shown} of {total}",
"material.browse.error":
"Library unreachable. A proxy for ambientCG is required at runtime (dev: Vite proxy active; prod: set VITE_AMBIENTCG_PROXY).",
"material.browse.downloadError": "Download failed (check CORS/proxy).",
"resources.hatches.hint": "Pattern, scale and angle drive the section hatch; the line style sets the weight of the pattern lines.",
"resources.hatches.empty": "No hatches yet.",
"resources.hatches.placeholder": "Hatch",
@@ -390,6 +513,30 @@ export const en: Record<TranslationKey, string> = {
"cmd.aria": "Command line",
"cmd.idle.prompt": "Command:",
"cmd.idle.placeholder": "Type a command … (Tab)",
"cmd.wall.label": "Wall",
"cmd.wall.start": "Start of wall:",
"cmd.wall.next": "Next point:",
"cmd.ceiling.label": "Ceiling",
"cmd.ceiling.start": "First outline point of ceiling:",
"cmd.ceiling.next": "Next point ( Close ):",
"cmd.opening.label": "Opening",
"cmd.opening.windowLabel": "Window",
"cmd.opening.doorLabel": "Door",
"cmd.opening.wall": "Pick a wall for the opening:",
"cmd.opening.pos": "Position along the wall ( type distance ):",
"cmd.opening.kind": "Type",
"cmd.opening.hinge": "Hinge",
"cmd.opening.side": "Side",
"cmd.opening.dir": "Direction",
"cmd.opening.sillField": "Sill",
"cmd.opening.swingField": "Angle",
"cmd.stair.label": "Stair",
"cmd.stair.start": "Start point of the stair:",
"cmd.stair.run": "Run direction / end ( Shape · Up/Down ):",
"cmd.stair.shape": "Shape",
"cmd.stair.updown": "Up/Down",
"cmd.stair.stepsField": "Steps",
"cmd.stair.riseField": "Rise",
"cmd.line.label": "Line",
"cmd.line.start": "Start of line:",
"cmd.line.end": "End of line:",
@@ -398,9 +545,15 @@ export const en: Record<TranslationKey, string> = {
"cmd.polyline.next": "Next point:",
"cmd.polyline.close": "Close",
"cmd.polyline.undo": "Undo",
"cmd.polyline.closedOpt": "Closed",
"cmd.rect.label": "Rectangle",
"cmd.rect.first": "First corner:",
"cmd.rect.second": "Opposite corner:",
"cmd.rect.method": "Method",
"cmd.rect.center": "Center:",
"cmd.rect.corner": "Corner:",
"cmd.rect.baseEnd": "Second corner (base edge):",
"cmd.rect.rise": "Height:",
"cmd.circle.label": "Circle",
"cmd.circle.center": "Center:",
"cmd.circle.radius": "Radius:",
@@ -408,6 +561,11 @@ export const en: Record<TranslationKey, string> = {
"cmd.move.base": "Base point:",
"cmd.move.target": "Target point:",
"cmd.move.empty": "Nothing selected (select objects first).",
"cmd.mirror.label": "Mirror",
"cmd.mirror.first": "First point of mirror axis:",
"cmd.mirror.second": "Second point of mirror axis:",
"cmd.mirror.empty": "Nothing selected (select objects first).",
"cmd.join.prompt": "Joining selected elements …",
"cmd.copy.label": "Copy",
"cmd.copy.base": "Base point:",
"cmd.copy.target": "Target point (Enter to finish):",
@@ -415,6 +573,9 @@ export const en: Record<TranslationKey, string> = {
"cmd.offset.label": "Offset",
"cmd.offset.pick": "Select curve:",
"cmd.offset.side": "Side or distance:",
// Trim (quick-trim): click the part to cut away; repeats until Esc.
"cmd.trim.label": "Trim",
"cmd.trim.pick": "Click the part to trim away (Esc to finish):",
// Edit tools Split / Join / Delete segment (keyboard: Ctrl+S / Ctrl+J /
// Alt+Click). Labels for the command line / menus.
"edit.split.label": "Split",
@@ -427,6 +588,8 @@ export const en: Record<TranslationKey, string> = {
"cmd.field.height": "Height",
"cmd.field.radius": "Radius",
"cmd.field.distance": "Distance",
"cmd.field.thickness": "Thickness",
"cmd.edit.point": "Drag grip (Tab: length/angle):",
// Commands: import / terrain.
"cmd.import.label": "Import",
@@ -434,6 +597,17 @@ export const en: Record<TranslationKey, string> = {
"cmd.terrain.label": "Terrain",
"cmd.terrain.prompt": "Generate terrain from contours …",
// Area balance (SIA 416).
"nav.roomBalance": "Area balance",
"balance.title": "Area balance (SIA 416)",
"balance.rooms": "Rooms",
"balance.summary": "Balance",
"balance.export": "Export CSV",
"balance.empty": "No rooms yet. Create one with the room tool.",
// Room stamp editor.
"room.stamp.editTitle": "Edit room stamp",
"room.stamp.close": "Close",
// Site / context panel (SitePanel).
"nav.site": "Terrain",
"site.title": "Terrain & Context",
@@ -479,6 +653,28 @@ export const en: Record<TranslationKey, string> = {
"import.badge.elevation": "Elevation",
"import.badge.drawing": "Drawing",
// PDF export.
"export.title": "Export PDF",
"export.close": "Close",
"export.plan": "Plan",
"export.scale": "Scale",
"export.paper": "Paper size",
"export.orientation": "Orientation",
"export.orientation.portrait": "Portrait",
"export.orientation.landscape": "Landscape",
"export.warnFit":
"At the chosen scale the plan does not fully fit the sheet — pick a larger format or a smaller scale.",
"export.confirm": "Export",
"export.cancel": "Cancel",
// DXF export.
"exportDxf.title": "Export DXF",
"exportDxf.hatches": "Hatches",
"exportDxf.hatches.yes": "Include",
"exportDxf.hatches.no": "Outlines only",
"exportDxf.unitsNote":
"Model space in meters (1:1). Layers mirror the project's categories; scale freely on plot.",
// Drag & drop (app-wide file drop).
"drop.hint": "Drop a DXF/DWG file here",
@@ -487,4 +683,75 @@ export const en: Record<TranslationKey, string> = {
"error.title": "Something went wrong",
"error.body": "An unexpected error occurred. Details in the console.",
"error.reload": "Reload",
// Location import (geo.admin / OSM).
"site.importLocation": "Import location",
"ctxImport.title": "Import location",
"ctxImport.close": "Close",
"ctxImport.location": "Place / address",
"ctxImport.searchPlaceholder": "e.g. Bundesplatz Bern",
"ctxImport.search": "Search",
"ctxImport.searching": "Searching…",
"ctxImport.noResults": "No matches.",
"ctxImport.searchError": "Search failed.",
"ctxImport.radius": "Radius",
"ctxImport.sources": "Sources",
"ctxImport.src.swissBuildings": "Swisstopo buildings",
"ctxImport.src.osmBuildings": "OSM buildings",
"ctxImport.src.osmRoads": "OSM roads",
"ctxImport.src.osmWater": "OSM water",
"ctxImport.src.osmGreen": "OSM greenery",
"ctxImport.cancel": "Cancel",
"ctxImport.confirm": "Import",
"ctxImport.importing": "Importing…",
"ctxImport.working": "Loading geodata…",
"ctxImport.empty": "No geometry found in the selected area.",
"ctxImport.importError": "Import failed.",
"ctxImport.imported": "Imported {count} objects in {sets} sets.",
// Room command.
"cmd.room.label": "Room",
"cmd.room.mode": "Mode",
"cmd.room.inside": "Click inside room:",
"cmd.room.first": "Set first room point:",
"cmd.room.next": "Set next point ( Enter/Start closes ):",
// Rich-text editor.
// Text group (top bar).
"text.group": "Text",
"text.style": "Style",
"text.style.none": "— Style —",
"text.font": "Font",
"text.size": "Size",
"text.size.custom": "Custom …",
"text.size.customPrompt": "Font size in pt:",
"text.bold": "Bold",
"text.italic": "Italic",
"text.underline": "Underline",
"text.align.left": "Align left",
"text.align.center": "Center",
"text.align.right": "Align right",
"text.add": "Text",
"text.add.hint": "Text tool — place new text (coming soon)",
"text.editTitle": "Edit text",
"text.apply": "Apply",
"text.cancel": "Cancel",
"roomStamp.title": "Edit room stamp",
"roomStamp.number": "Room number",
"roomStamp.name": "Room name",
"roomStamp.nameLine2": "Room name line 2",
"roomStamp.showFloorArea": "Show floor area",
"roomStamp.floorAreaPrefix": "Floor area prefix",
"roomStamp.showUsage": "Show usage",
"text.selectedHint": "Formatting applies to the selected text",
"rt.bold": "Bold",
"rt.italic": "Italic",
"rt.underline": "Underline",
"rt.strike": "Strikethrough",
"rt.strikethrough": "Strikethrough",
"rt.fontSize": "Font size",
"rt.color": "Color",
"rt.preset": "Preset",
"rt.preset.none": "— Preset —",
};