[181] Standort-Import: Linien als einzelne 2D-Polylinien auf der Klasse statt je Klasse ein contourSet; Tag-Namen importedMesh/terrainMesh bewusst belassen (begründet in TODO.md)
This commit is contained in:
15 files changed
+129
-88
No files matched your search
@@ -4,6 +4,7 @@
|
||||
// dann den Inline-Editor. Aufgerufen von `App.tsx`.
|
||||
|
||||
import type { ContextObject } from "../model/types";
|
||||
import type { ImportedLine } from "../io/geoContext";
|
||||
import { setFieldIfChanged } from "../core";
|
||||
import { isTauriRuntime } from "../native/projectFile";
|
||||
import { useContextImportWindowHost } from "../native/contextImportWindow";
|
||||
@@ -67,7 +68,7 @@ export function useNativeWindowHosts(opts: {
|
||||
|
||||
// Standort-Import als eigenes natives Fenster — s. native/contextImportWindow.ts.
|
||||
useContextImportWindowHost(geoAnchor, {
|
||||
onImport: (objs) => addContextObjectsAndFit(objs as ContextObject[]),
|
||||
onImport: (objs, lines) => addContextObjectsAndFit(objs as ContextObject[], lines as ImportedLine[]),
|
||||
onSetGeoAnchor: (anchor) => applyChange((p) => setFieldIfChanged(p, "geoAnchor", anchor)),
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user