diff --git a/TODO.md b/TODO.md index 368c5d99..f3d5e63b 100644 --- a/TODO.md +++ b/TODO.md @@ -1740,7 +1740,7 @@ Reihenfolge = Abhängigkeiten. Neue Geometrie entsteht in Rust ([K]). Fläche (2D-Zeichnungen + Modellkanten des Geschosses, Kreise/Bögen als Sehnenzüge, Kreuzungen werden geteilt) → geschlossene Polylinie mit der ersten Projekt-Schraffur; Vorschau beim Überfahren. Kern `magic_wand.rs` (planarer Graph, kleinste Masche, `kernel2d::room_from_point_inside_faces`), Tests Rust + vitest. Offen: Wahl der - Schraffur/Option „nur Umriss", Inseln (Löcher) in der Fläche, Knopf in der Werkzeugleiste; nicht in der App geklickt. + Schraffur/Option „nur Umriss", Inseln (Löcher) in der Fläche; Knopf in der Werkzeugleiste (2D) seit 4.11.; nicht in der App geklickt. - ✅ **[78] Autotext im Plankopf.** Titelblock löst Projekt/Blatt/Massstab/Datum auf; Plannummer laufend oder `Layout.planNumber` (27.10.). - ◐ **[79] Publikationssätze.** (30.10.) Modell (Rust, optional): `Project.publishSets` (`PublishSet`: Layouts in Reihenfolge, diff --git a/src/i18n/de.ts b/src/i18n/de.ts index 4585ffb8..7ddfa16e 100644 --- a/src/i18n/de.ts +++ b/src/i18n/de.ts @@ -209,6 +209,8 @@ export const de = { "tool.revcloud.hint": "Revisionswolke: Punkte wie Polylinie klicken, Enter beendet offen, Klick nahe Start oder \"Schliessen\" schliesst", "tool.pointmarker": "Punktmarker", "tool.pointmarker.hint": "Punktmarker: Punkt setzen — Kreuz-in-Kreis-Symbol markiert einen Referenzpunkt", + "tool.wand": "Zauberstab", + "tool.wand.hint": "In eine umschlossene Fläche klicken: schraffierte Polylinie entlang ihres Rands", "tool.grid": "Achsraster", "tool.grid.hint": "Achsraster: Ursprung setzen, dann Feldweiten eingeben — Achsen mit Blasen in allen Plänen, Schnitten und Ansichten", "tool.wipeout": "Maskenregion", diff --git a/src/i18n/en.ts b/src/i18n/en.ts index e3fd4344..1bf18011 100644 --- a/src/i18n/en.ts +++ b/src/i18n/en.ts @@ -207,6 +207,8 @@ export const en: Record = { "tool.revcloud.hint": "Revision cloud: click points like a polyline, Enter finishes open, clicking near start or \"Close\" closes it", "tool.pointmarker": "Point marker", "tool.pointmarker.hint": "Point marker: set a point — a cross-in-circle symbol marks a reference point", + "tool.wand": "Magic wand", + "tool.wand.hint": "Click inside an enclosed area: hatched polyline along its boundary", "tool.grid": "Structural grid", "tool.grid.hint": "Structural grid: set the origin, then enter bay widths — axes with bubbles in all plans, sections and elevations", "tool.wipeout": "Mask region", diff --git a/src/panels/ToolsPanel.tsx b/src/panels/ToolsPanel.tsx index e860c62e..54441534 100644 --- a/src/panels/ToolsPanel.tsx +++ b/src/panels/ToolsPanel.tsx @@ -264,6 +264,17 @@ export const ToolIcon = memo(function ToolIcon({ id }: { id: ToolId }) { ); + case "wand": + // Zauberstab ([77]): Stab mit Funken. + return ( + + + + + + + + ); case "pointmarker": // Kreuz-in-Kreis (Punkt-/Knotenmarker). return ( @@ -360,6 +371,7 @@ const TOOLS_2D: ToolId[] = [ "pointmarker", "grid", "wipeout", + "wand", "text", "leader", "textpath", diff --git a/src/tools/tools.ts b/src/tools/tools.ts index 3f392f71..784b49c1 100644 --- a/src/tools/tools.ts +++ b/src/tools/tools.ts @@ -43,6 +43,7 @@ const TOOLS: Record = { scalebar: { labelKey: "tool.scalebar", hintKey: "tool.scalebar.hint", command: "scalebar" }, revcloud: { labelKey: "tool.revcloud", hintKey: "tool.revcloud.hint", command: "revcloud" }, pointmarker: { labelKey: "tool.pointmarker", hintKey: "tool.pointmarker.hint", command: "pointmarker" }, + wand: { labelKey: "tool.wand", hintKey: "tool.wand.hint", command: "wand" }, grid: { labelKey: "tool.grid", hintKey: "tool.grid.hint", command: "grid" }, wipeout: { labelKey: "tool.wipeout", hintKey: "tool.wipeout.hint", command: "wipeout" }, text: { labelKey: "tool.text", hintKey: "tool.text.hint", command: "text" }, diff --git a/src/tools/types.ts b/src/tools/types.ts index 507854c7..4cb11365 100644 --- a/src/tools/types.ts +++ b/src/tools/types.ts @@ -31,6 +31,7 @@ export type ToolId = | "scalebar" | "revcloud" | "pointmarker" + | "wand" | "grid" | "wipeout" | "text"