[C1][C2] DXF-/DWG-Export über acadrust: export.rs (flache Zeichnung → CadDocument → DXF R2018 ASCII / DWG R2018), TS sammelt nur noch aus dem Plan, dxfWriter.ts gelöscht; Dialog mit Formatwahl, CLI dwg; Rundreise-Tests (acadrust, libredwg, ezdxf)

This commit is contained in:
Claude committed 2026-10-28 10:06:31 +00:00
1 parent 1d6c2e7b8b
commit d7ba11b7f0
21 files changed
+1177 -417

No files matched your search

+3 -1
View File
@@ -7,7 +7,9 @@
*/
import { describe, expect, it } from "vitest";
import "../engine/fileioWasm.setup";
import { buildPlanDxf } from "./exportDxf";
import { readDxf } from "./cadReadBack.testutil";
import { sampleProject } from "../model/sampleProject";
import type { Plan } from "../plan/generatePlan";
import type { HatchRender } from "../plan/generatePlan/shared";
@@ -17,7 +19,7 @@ function planWith(primitives: Plan["primitives"]): Plan {
}
function countEntities(dxf: string, type: string): number {
return dxf.split(/\r?\n/).filter((l, i, all) => l.trim() === "0" && all[i + 1]?.trim() === type).length;
return readDxf(dxf).entities.filter((e) => e.type === type).length;
}
const SQUARE = [