PlanView.tsx aufgeteilt: Mathe/Overlays/Primitiv-Rendering nach src/plan/planView/.

Reine Verschiebung, keine Verhaltensänderung. PlanView.tsx (4169 → 2465
Zeilen) behält nur noch die Komponente selbst + Interaktions-Logik
(Maus/Tastatur/Griffe/Snapping/Undo).

- planView/geometry.ts: ViewBox, toScreen, Papier-Massstab-Umrechnung
  (meetScale/scaleFromView/viewForScale/printStrokeVb), Marquee-/Punkt-
  in-Polygon-Tests (pointInPolygon, marqueeHit, marqueeHitDrawings).
- planView/primitives.tsx: HatchPattern, buildDrawingRuns, DrawingRunShape,
  PrimitiveShape, renderPrimitive (der grosse Primitiv→SVG-Renderer).
- planView/overlays.tsx: DraftOverlay (Werkzeug-Vorschau, Cursor-HUD,
  Winkel-Führungslinie, Snap-Marker).
- planView/PlanRulers.tsx: die Lineale oben/links.

tsc -b sauber, vitest 891/891 grün, vite build ok.
This commit is contained in:
2026-08-19 22:54:58 +02:00
parent 1507c2bf00
commit 528f213f1f
5 changed files with 1772 additions and 1730 deletions
+25 -1730
View File
File diff suppressed because it is too large Load Diff