[146] Linienenden und -ecken einstellbar

Projekt-Einstellung lineCap/lineJoin (Standard flach + Gehrung, Grenze 4) in allen Ausgabewegen:
render2d, Metal-Chunks (gpu_compile), Plan-SVG, Druck-SVG/PDF, React-SVG-Ansicht. Volle Einzel-Linien
und Kantenläufe werden an gemeinsamen Enden zu Zügen genäht (keine Kerbe an Wandecken). UI in den
Einstellungen (Projekt), Goldens neu.
This commit is contained in:
Claude committed 2026-11-06 01:34:47 +00:00
1 parent 726904edd6
commit a5dc7a85e3
45 files changed
+558 -363

No files matched your search

+3 -1
View File
@@ -16,10 +16,12 @@ export interface SvgStringOptions {
marginM?: number;
/** Schraffurlinien ausbreiten (wie im Druck); Standard aus. */
hatch?: boolean;
/** Linienenden und -ecken ([146], `cap | join << 2`); Standard `plan.lineEnds`. */
lineEnds?: number;
}
export function planToSvgString(plan: Plan, opts: SvgStringOptions = {}): string {
const b = plan.bounds;
const o = Float64Array.from([opts.scaleDenominator ?? 100, opts.marginM ?? 0.5, b.minX, b.minY, b.maxX, b.maxY, ...(opts.hatch ? [1] : [])]);
const o = Float64Array.from([opts.scaleDenominator ?? 100, opts.marginM ?? 0.5, b.minX, b.minY, b.maxX, b.maxY, opts.hatch ? 1 : 0, opts.lineEnds ?? plan.lineEnds ?? 0]);
return withPlanParts(planParts(plan, true), (segs) => core().plan_svg_string(segs, o));
}