[221] [225] LV95-Projekte lokal um den Projekt-Nullpunkt, Standard-Schnitt/-Ansicht folgen dem Gebäude; Kennzahlenleiste = Flächentabelle
[221] DXF/DWG-Import in Landeskoordinaten setzt ohne Standort-Bezug den Kilometerpunkt unter der Mitte als geoAnchor und importiert lokal (mit Bezug: auf dessen Ursprung). Getippte LV95-Koordinaten werden auf den Nullpunkt gerechnet, die Statusleiste zeigt LV95 des Zeigers. Schnitt A/Ansicht Süd des leeren Projekts (autoLine) führt der Kern im selben Undo-Schritt ans Gebaute bzw. die Parzelle nach, bis man sie bearbeitet (auto_lines.rs). Schnittmarken weit weg vom Gebauten zählen nicht mehr zum Ausmass. [225] kennzahlen::compute liest Flächentabelle und IVHB-Ziffern (GF = NGF + KF, ÜZ = aGbF/aGSF). e2e release10: Schritte [221]/[225] aktiv; kataster.spec auf lokale Koordinaten.
This commit is contained in:
30 files changed
+797
-139
No files matched your search
@@ -10,8 +10,8 @@ import type { DrawingLevel } from "../model/types";
|
||||
import type { SnapSettings, ToolDraft } from "../tools/types";
|
||||
import type { TransformSelection } from "../tools/transform";
|
||||
import { computeSnap } from "../tools/snapping";
|
||||
import { unitsForLevel } from "../tools/displayUnits";
|
||||
import { cmdMutation, type ProjectMutation } from "../core";
|
||||
import { MODEL_UNITS, unitsForLevel } from "../tools/displayUnits";
|
||||
import { cmdMutation, projectGeoOrigin, type ProjectMutation } from "../core";
|
||||
import { CommandEngine } from "../commands/engine";
|
||||
import type { EngineHost } from "../commands/engine";
|
||||
import type { CommandContext } from "../commands/types";
|
||||
@@ -172,6 +172,8 @@ export function useCommandEngineHost(opts: {
|
||||
notify: (key, params, kind) => notify(t(key as Parameters<typeof t>[0], params), kind ?? "info"),
|
||||
// Getippte Werte auf einem Layout-Blatt in Papier-mm, y nach unten ([93]).
|
||||
inputUnits: () => unitsForLevel(cmdLatest.current.activeLevel),
|
||||
// [221] Getippte Landeskoordinaten auf den Projekt-Nullpunkt (Standort-Bezug), nicht auf dem Layout-Blatt.
|
||||
inputGeoOrigin: () => (unitsForLevel(cmdLatest.current.activeLevel) === MODEL_UNITS ? projectGeoOrigin(getState().project) : null),
|
||||
// Frisch über `text`/`textbox` erzeugtes Element sofort inline editieren
|
||||
// (kein Lookup nötig — der Commit hat es bereits angehängt, s. engine.ts
|
||||
// applyResult-Reihenfolge commit→focusDrawing). Auswahl-Löschen wie
|
||||
|
||||
@@ -293,7 +293,10 @@ export function useProjectFileActions(
|
||||
}
|
||||
};
|
||||
|
||||
// [221] Dateiname des laufenden Imports: Bezeichnung des Standort-Bezugs, den ein Import in Landeskoordinaten setzt.
|
||||
const importFileNameRef = useRef("");
|
||||
const openImportForFile = (file: File) => {
|
||||
importFileNameRef.current = file.name;
|
||||
if (isPdfFile(file.name)) {
|
||||
openPdfImport(file);
|
||||
return;
|
||||
@@ -674,6 +677,7 @@ export function useProjectFileActions(
|
||||
importMeshes: decision.importMeshes,
|
||||
terrainContours: decision.terrainContours,
|
||||
terrainName: t("import.terrain.setName"),
|
||||
geoLabel: importFileNameRef.current,
|
||||
...(center ? { viewCenter: [center.x, center.y] as [number, number] } : {}),
|
||||
levelNameTemplate: t("default.drawingName", { n: "{n}" }),
|
||||
parentName: t("import.layers.parentName", { name: importParentName(decision) }),
|
||||
|
||||
Reference in new issue
Block a user